diff --git a/src/main.rs b/src/main.rs index 2ad86de..0e71075 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,20 +39,20 @@ fn main() { #[derive(Serialize, Deserialize)] struct JuliaGUI { color: (u8, u8, u8), + settings: RenderOptions, + export_res_power: u8, + export_max_iter: u16, + preview_point: bool, #[serde(skip)] preview: Option, - settings: RenderOptions, #[serde(skip)] preview_render_ms: f64, #[serde(skip)] export_render_ms: Option, - export_res_power: u8, - export_max_iter: u16, #[serde(skip)] export_path: PathBuf, #[serde(skip)] settings_changed: bool, - preview_point: bool, #[serde(skip)] render_thread_handle: Option>, #[serde(skip)] @@ -257,6 +257,10 @@ impl eframe::App for JuliaGUI { self.color = (5, 2, 11); self.settings_changed = true; } + if ui.button("yellow").clicked() { + self.color = (9, 6, 1); + self.settings_changed = true; + } if ui.button("randomise").clicked() { self.color = ( rand::random::() & 15,