mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 17:08:11 +08:00
New demo artwork: "Parametric Dunescape"
This commit is contained in:
@@ -5,10 +5,11 @@ use crate::messages::prelude::*;
|
||||
pub struct DemoArtworkDialog;
|
||||
|
||||
/// `(name, thumbnail, filename)`
|
||||
pub const ARTWORK: [(&str, &str, &str); 6] = [
|
||||
pub const ARTWORK: [(&str, &str, &str); 7] = [
|
||||
("Isometric Fountain", "ThumbnailIsometricFountain", "isometric-fountain.graphite"),
|
||||
("Changing Seasons", "ThumbnailChangingSeasons", "changing-seasons.graphite"),
|
||||
("Painted Dreams", "ThumbnailPaintedDreams", "painted-dreams.graphite"),
|
||||
("Parametric Dunescape", "ThumbnailParametricDunescape", "parametric-dunescape.graphite"),
|
||||
("Red Dress", "ThumbnailRedDress", "red-dress.graphite"),
|
||||
("Procedural String Lights", "ThumbnailProceduralStringLights", "procedural-string-lights.graphite"),
|
||||
("Valley of Spires", "ThumbnailValleyOfSpires", "valley-of-spires.graphite"),
|
||||
@@ -28,7 +29,7 @@ impl DialogLayoutHolder for DemoArtworkDialog {
|
||||
impl LayoutHolder for DemoArtworkDialog {
|
||||
fn layout(&self) -> Layout {
|
||||
let mut rows_of_images_with_buttons: Vec<_> = ARTWORK
|
||||
.chunks(3)
|
||||
.chunks(4)
|
||||
.flat_map(|chunk| {
|
||||
fn make_dialog(name: &str, filename: &str) -> Message {
|
||||
DialogMessage::CloseDialogAndThen {
|
||||
|
||||
Reference in New Issue
Block a user