diff --git a/yarge-frontend-sdl/src/config.rs b/yarge-frontend-sdl/src/config.rs index 0cffb7f..9228911 100644 --- a/yarge-frontend-sdl/src/config.rs +++ b/yarge-frontend-sdl/src/config.rs @@ -136,7 +136,7 @@ impl UiTheme { } } -#[derive(Serialize, Deserialize, Default)] +#[derive(Serialize, Deserialize)] pub struct FpsOverlayOptions { pub enable: bool, pub hi_contrast: bool, @@ -144,6 +144,17 @@ pub struct FpsOverlayOptions { pub round: bool, } +impl Default for FpsOverlayOptions { + fn default() -> Self { + Self { + enable: false, + hi_contrast: true, + smol: false, + round: true, + } + } +} + #[derive(Serialize, Deserialize)] pub struct Configuration { pub palette: Palette,