feat(dock): call max_scale() instead of MAX_SCALE constant in layout

This commit is contained in:
sankalp committed 2026-07-30 22:51:59 +05:45
1 parent 1f24c5c3e8
commit c94dbff55e
1 file changed
+2 -2
+2 -2
View File
@@ -5,9 +5,9 @@ from .constants import (
BG_PADDING_V, BG_PADDING_V,
ICON_GAP, ICON_GAP,
INDICATOR_H, INDICATOR_H,
MAX_SCALE,
MIN_SCALE, MIN_SCALE,
SIGMA_FACTOR, SIGMA_FACTOR,
max_scale,
) )
from .items import DockItem from .items import DockItem
@@ -27,7 +27,7 @@ class DockLayout:
return return
sigma = base_icon_size * SIGMA_FACTOR sigma = base_icon_size * SIGMA_FACTOR
amplitude = MAX_SCALE - MIN_SCALE amplitude = max_scale() - MIN_SCALE
n = len(items) n = len(items)
base_w = base_icon_size + ICON_GAP base_w = base_icon_size + ICON_GAP