Skip to content

Commit

Permalink
update fps overlay defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
griffi-gh committed Oct 8, 2023
1 parent 81f953e commit 3ff66ed
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion yarge-frontend-sdl/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,25 @@ impl UiTheme {
}
}

#[derive(Serialize, Deserialize, Default)]
#[derive(Serialize, Deserialize)]
pub struct FpsOverlayOptions {
pub enable: bool,
pub hi_contrast: bool,
pub smol: bool,
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,
Expand Down

0 comments on commit 3ff66ed

Please sign in to comment.