From 144660e5b53794f5d107ad4f774099d4b5ac102d Mon Sep 17 00:00:00 2001 From: Black Hat Date: Thu, 20 Sep 2018 16:58:28 +0800 Subject: [PATCH] Fix dark theme. How did that even break? --- qml/component/MaterialIcon.qml | 1 + qml/main.qml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/qml/component/MaterialIcon.qml b/qml/component/MaterialIcon.qml index 9e7a1d9..2730a2e 100644 --- a/qml/component/MaterialIcon.qml +++ b/qml/component/MaterialIcon.qml @@ -8,6 +8,7 @@ Text { id: materialLabel + color: MSettings.darkTheme ? "white" : "dark" font.pointSize: 16 font.family: materialFont.name horizontalAlignment: Text.AlignHCenter diff --git a/qml/main.qml b/qml/main.qml index 19497f2..43c382a 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -61,7 +61,7 @@ ApplicationWindow { id: errorDialog title: error + " Error" - contentItem: Label { text: errorDialog.detail } + contentItem: Label { text: errorDialog.detail } } Component {