Skip to content

Commit 5157cda

Browse files
committed
CustomToolButton: Improve highlighted color
1 parent d3f3500 commit 5157cda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/uicomponents/CustomToolButton.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CustomButton {
1414
signal clicked()
1515
id: control
1616
font.capitalization: Font.MixedCase
17+
Material.background: ThemeEngine.theme == ThemeEngine.DarkTheme ? (highlighted ? Qt.darker(ThemeEngine.accentColor, 2) : Qt.rgba(0.25, 0.24, 0.25, 1)) : (highlighted ? Qt.lighter(ThemeEngine.accentColor, 2) : Qt.rgba(0.84, 0.84, 0.84, 1))
1718
Material.foreground: foregroundColor
1819
icon.color: foregroundColor
1920
onReleased: clicked()

0 commit comments

Comments
 (0)