Use Color.foreground / Style.font.family for fallbacks
Five sites hardcoded "#cacccc" or "JetBrainsMono Nerd Font" as the fallback when no bar context was available. Those magic strings are the *current* palette defaults — they diverge silently when the theme changes. Bind to the Color / Style singletons so the fallback tracks whatever the theme says the foreground / monospace family should be. Color.qml itself keeps the literal "#cacccc" — that's the seed value the singleton is bootstrapped with before the theme loads.
This commit is contained in:
@@ -11,8 +11,8 @@ Item {
|
||||
property real step: 0.05
|
||||
property bool integer: false
|
||||
property color trackColor: bar ? Style.selectedFillFor(bar.foreground, Color.accent) : "#333"
|
||||
property color fillColor: bar ? bar.foreground : "#cacccc"
|
||||
property color knobColor: bar ? bar.foreground : "#cacccc"
|
||||
property color fillColor: bar ? bar.foreground : Color.foreground
|
||||
property color knobColor: bar ? bar.foreground : Color.foreground
|
||||
property bool dragging: false
|
||||
property real trackHeight: Math.max(4, Math.round(Style.spacing.controlHeight * 0.11))
|
||||
property real knobSize: Math.max(14, Math.round(Style.spacing.controlHeight * 0.38))
|
||||
|
||||
Reference in New Issue
Block a user