Repository navigation
fix(slider): align tick highlight background with checked button style #755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,7 +68,11 @@ Control { | |
| palette.windowText: control.D.ColorSelector.textColor | ||
| background: Loader { | ||
| active: highlight | ||
| sourceComponent: HighlightPanel { } | ||
| sourceComponent: HighlightPanel { | ||
| backgroundColor: DS.Style.checkedButton.background | ||
| outerShadowColor: DS.Style.checkedButton.dropShadow | ||
| innerShadowColor: DS.Style.checkedButton.innerShadow | ||
|
Comment on lines
+73
to
+74
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Medium · Selected tick misses button shading When the checked-button style has visible shadow layers, including in dark mode, Render the outer shadow and the checked style’s second inner-shadow layer in Prompt for AI agentsIn `qt6/src/qml/SliderTipItem.qml` at lines 73-74:
**Selected tick misses button shading**
When the checked-button style has visible shadow layers, including in dark mode, `HighlightPanel.outerShadowColor` is not rendered because its `BoxShadow` is commented out, and the panel receives only `checkedButton.innerShadow`, not the checked button’s separate `innerShadow2`. The selected tick therefore lacks shading that the checked button renders, so the two appearances still differ.
Render the outer shadow and the checked style’s second inner-shadow layer in `HighlightPanel`, and bind the corresponding checked-button palettes. |
||
| } | ||
|
Comment on lines
+72
to
+75
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Low · Selected tick corners remain larger When a highlighted tick is displayed, Set the Prompt for AI agentsIn `qt6/src/qml/SliderTipItem.qml` at lines 72-75:
**Selected tick corners remain larger**
When a highlighted tick is displayed, `HighlightPanel.radius` retains `DS.Style.highlightPanel.radius` (8), while checked buttons use `DS.Style.button.radius` (6). The selected tick therefore keeps visibly rounder corners instead of matching the checked button.
Set the `HighlightPanel` radius to the checked button radius. |
||
| } | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium · Highlight differs from flat buttons
When a highlighted slider tick is compared with a checked
ToolButton, an active tick usesDS.Style.checkedButtonpalettes, whileToolButtonis flat and usesDS.Style.toolButton.checkedBackgroundandcheckedShadowwhen checked. The tick highlight therefore does not match the checked appearance of those flat buttons.Use the same checked palette tokens as the flat button style the tick is meant to match.
Prompt for AI agents