Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions qt6/src/qml/Slider.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ T.Slider {

property alias handleType: __handle.type
property real dashOffset: 0.0
// Dash length matches the logical stroke width, producing square blocks.
property var dashPattern: [1, 1]
// Design spec: 2px dash, 1px gap. Pattern values are in strokeWidth units (2),
// so 1.0 -> 2px dash, 0.5 -> 1px gap.
property var dashPattern: [1, 0.5]
property bool highlightedPassedGroove: false
property bool alignToTicks: false

Expand Down Expand Up @@ -137,6 +138,7 @@ T.Slider {
shadowColor: control.palette.highlight
rotation: control.horizontal ? 0 : 180
opacity: 0.25
visible: D.DTK.themeType === D.ApplicationHelper.DarkType

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Light-theme sliders show shadow

When the project is built with DTK5, uses a light theme, and highlightedPassedGroove is enabled, src/qml/Slider.qml leaves the highlighted-groove BoxShadow without a theme-dependent visible binding, so the shadow remains visible.

Add a theme-dependent visible binding to the highlighted-groove BoxShadow in src/qml/Slider.qml.

Prompt for AI agents
In `qt6/src/qml/Slider.qml` at line 141:

**Light-theme sliders show shadow**

When the project is built with DTK5, uses a light theme, and `highlightedPassedGroove` is enabled, `src/qml/Slider.qml` leaves the highlighted-groove `BoxShadow` without a theme-dependent `visible` binding, so the shadow remains visible.

Add a theme-dependent `visible` binding to the highlighted-groove `BoxShadow` in `src/qml/Slider.qml`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Window theme shows wrong shadow

When a window’s theme is overridden independently of the application-wide theme, the visibility binding reads the application-wide theme instead of the slider’s controlTheme, so a light-themed window under a globally dark theme still shows the shadow.

Bind visibility to control.D.ColorSelector.controlTheme === D.ApplicationHelper.DarkType so it follows the slider’s effective theme.

Prompt for AI agents
In `qt6/src/qml/Slider.qml` at line 141:

**Window theme shows wrong shadow**

When a window’s theme is overridden independently of the application-wide theme, the visibility binding reads the application-wide theme instead of the slider’s `controlTheme`, so a light-themed window under a globally dark theme still shows the shadow.

Bind visibility to `control.D.ColorSelector.controlTheme === D.ApplicationHelper.DarkType` so it follows the slider’s effective theme.

}
}
}
Expand Down
Loading