This commit is contained in:
Piyush मिश्रः 2022-01-14 16:53:43 +05:30
parent 5b71bdbee6
commit 329a1f857e
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,5 @@
//! load, save configuration and parse cli args
use clap::{ArgEnum, Parser};
use fltk::dialog;
use fltk_theme::ThemeType;
@ -57,6 +59,7 @@ impl Into<ThemeType> for Themes {
}
}
/// Configuation file
#[derive(Debug, Serialize, Deserialize)]
pub struct ConfigFile {
pub quote_font_ttf: String,

View File

@ -1,3 +1,5 @@
//! Window to edit configuration
use std::{cell::RefCell, rc::Rc};
use fltk::{

View File

@ -24,10 +24,15 @@ use crate::utils::{ImageContainer, ImageProperties};
#[derive(Debug, Clone)]
pub(crate) enum DrawMessage {
Open, // Open file or cropped file
/// Open file or cropped file
Open,
/// Load file with specific cropped size
ChangeCrop((f64, f64)),
/// Recalculate and draw on buffer image in Container
Recalc,
/// Flush buffer to u8 vector present in main, to draw on screen
Flush,
/// Save to file
Save,
}