Skip to content

Commit 4a60c11

Browse files
committed
Read accent color from ThemeEngine
1 parent 5f9239e commit 4a60c11

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/app/qml/main.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ApplicationWindow {
1717
visible: true
1818
title: Qt.application.displayName
1919
color: Material.background
20-
Material.accent: "orange"
20+
Material.accent: ThemeEngine.accentColor
2121
Material.theme: ThemeEngine.theme == ThemeEngine.DarkTheme ? Material.Dark : Material.Light
2222
onActiveFocusItemChanged: UiEngine.activeFocusItem = activeFocusItem
2323

src/uicomponents/CustomDialog.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,9 @@ Item {
123123
property alias contentsLoader: contentsLoader
124124
property alias buttonBoxLoader: buttonBoxLoader
125125
anchors.fill: parent
126-
// TODO: Read colors from ThemeEngine
127126
color: ThemeEngine.bgColor
128127
Material.background: ThemeEngine.bgColor
129-
//Material.accent: ThemeEngine.currentAccentColor
128+
Material.accent: ThemeEngine.accentColor
130129
Material.theme: ThemeEngine.theme === ThemeEngine.DarkTheme ? Material.Dark : Material.Light
131130

132131
ColumnLayout {

0 commit comments

Comments
 (0)