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: 5 additions & 1 deletion qt6/src/qml/SliderTipItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 +72 to +74

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 · Highlight differs from flat buttons

When a highlighted slider tick is compared with a checked ToolButton, an active tick uses DS.Style.checkedButton palettes, while ToolButton is flat and uses DS.Style.toolButton.checkedBackground and checkedShadow when 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
In `qt6/src/qml/SliderTipItem.qml` at lines 72-74:

**Highlight differs from flat buttons**

When a highlighted slider tick is compared with a checked `ToolButton`, an active tick uses `DS.Style.checkedButton` palettes, while `ToolButton` is flat and uses `DS.Style.toolButton.checkedBackground` and `checkedShadow` when 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.

Comment on lines +73 to +74

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 · 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.

Prompt for AI agents
In `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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚪ Low · 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.

Prompt for AI agents
In `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.

}
}
}
Expand Down
Loading