remove default images from ImageUI

This commit is contained in:
2022-01-25 14:32:01 +01:00
parent de86d381e5
commit 3ced071617

View File

@@ -72,77 +72,17 @@ struct ImageUI {
impl ImageUI { impl ImageUI {
pub fn new() -> ImageUI { pub fn new() -> ImageUI {
let individual = std::sync::Arc::new( let individual = std::sync::Arc::new(Image::builder().vexpand(true).hexpand(true).build());
Image::builder() let center = std::sync::Arc::new(Image::builder().vexpand(true).hexpand(true).build());
.file("/var/home/hannes/Downloads/test/I12982_X022_Y029_Z5048.jpg")
.vexpand(true)
.hexpand(true)
.build(),
);
let center = std::sync::Arc::new(
Image::builder()
.vexpand(true)
.hexpand(true)
.file("/var/home/hannes/Downloads/test/I12982_X022_Y029_Z5048.jpg")
.build(),
);
let neighbours = [ let neighbours = [
std::sync::Arc::new( std::sync::Arc::new(Image::builder().vexpand(true).hexpand(true).build()),
Image::builder() std::sync::Arc::new(Image::builder().vexpand(true).hexpand(true).build()),
.vexpand(true) std::sync::Arc::new(Image::builder().vexpand(true).hexpand(true).build()),
.hexpand(true) std::sync::Arc::new(Image::builder().vexpand(true).hexpand(true).build()),
.file("/var/home/hannes/Downloads/test/I12982_X022_Y029_Z5048.jpg") std::sync::Arc::new(Image::builder().vexpand(true).hexpand(true).build()),
.build(), std::sync::Arc::new(Image::builder().vexpand(true).hexpand(true).build()),
), std::sync::Arc::new(Image::builder().vexpand(true).hexpand(true).build()),
std::sync::Arc::new( std::sync::Arc::new(Image::builder().vexpand(true).hexpand(true).build()),
Image::builder()
.vexpand(true)
.hexpand(true)
.file("/var/home/hannes/Downloads/test/I12982_X022_Y029_Z5048.jpg")
.build(),
),
std::sync::Arc::new(
Image::builder()
.vexpand(true)
.hexpand(true)
.file("/var/home/hannes/Downloads/test/I12982_X022_Y029_Z5048.jpg")
.build(),
),
std::sync::Arc::new(
Image::builder()
.vexpand(true)
.hexpand(true)
.file("/var/home/hannes/Downloads/test/I12982_X022_Y029_Z5048.jpg")
.build(),
),
std::sync::Arc::new(
Image::builder()
.vexpand(true)
.hexpand(true)
.file("/var/home/hannes/Downloads/test/I12982_X022_Y029_Z5048.jpg")
.build(),
),
std::sync::Arc::new(
Image::builder()
.vexpand(true)
.hexpand(true)
.file("/var/home/hannes/Downloads/test/I12982_X022_Y029_Z5048.jpg")
.build(),
),
std::sync::Arc::new(
Image::builder()
.vexpand(true)
.hexpand(true)
.file("/var/home/hannes/Downloads/test/I12982_X022_Y029_Z5048.jpg")
.build(),
),
std::sync::Arc::new(
Image::builder()
.vexpand(true)
.hexpand(true)
.file("/var/home/hannes/Downloads/test/I12982_X022_Y029_Z5048.jpg")
.build(),
),
]; ];
ImageUI { ImageUI {