From 6e0b3de1f0e36288f2f2df8ba931ecd827db7d91 Mon Sep 17 00:00:00 2001 From: Casper Rogild Storm Date: Sun, 25 Feb 2024 08:36:45 +0100 Subject: [PATCH] clamped between 0.1 and 2.0 --- data/src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/data/src/config.rs b/data/src/config.rs index 4e340f897..d1a13908a 100644 --- a/data/src/config.rs +++ b/data/src/config.rs @@ -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,