Skip to content

Commit

Permalink
clamped between 0.1 and 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
casperstorm committed Feb 25, 2024
1 parent 34b33c9 commit 6e0b3de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ impl Config {
.map_err(|e| Error::Parse(e.to_string()))?;

let themes = Self::load_themes(&theme).unwrap_or_default();
let scale_factor = scale_factor.clamp(0.1, 2.0);

Ok(Config {
themes,
Expand Down

0 comments on commit 6e0b3de

Please sign in to comment.