feat(dock): replace MAX_SCALE constant with config-backed max_scale() function

This commit is contained in:
sankalp committed 2026-07-30 22:51:54 +05:45
1 parent 0195971eba
commit 1f24c5c3e8
1 file changed
+6 -1
+6 -1
View File
@@ -1,3 +1,4 @@
from services.config import config
from utils.gtk_utils import toml_file
PINNED_APPS_FILE = toml_file("dock.toml")
@@ -7,7 +8,11 @@ IDLE_THRESHOLD = 0.0005
ANIM_FPS = 60
ANIM_INTERVAL_MS = 1000 // ANIM_FPS
MAX_SCALE = 2.0
def max_scale() -> float:
return float(config().get("dock.hover_scale", 2.0))
MIN_SCALE = 1.0
SIGMA_FACTOR = 1.3