Use color palette.

This commit is contained in:
Black Hat
2018-12-16 10:47:58 +08:00
parent df045a786f
commit 0d06498467
10 changed files with 34 additions and 13 deletions

View File

@@ -14,7 +14,8 @@ import Spectral 0.1
import Spectral.Setting 0.1
ApplicationWindow {
Material.theme: MSettings.darkTheme ? Material.Dark : Material.Light
Material.theme: MPalette.theme
Material.background: MPalette.background
width: 960
height: 640
@@ -26,6 +27,10 @@ ApplicationWindow {
visible: true
title: qsTr("Spectral")
background: Rectangle {
color: MSettings.darkTheme ? "#303030" : "#FFFFFF"
}
Platform.SystemTrayIcon {
visible: MSettings.showTray
iconSource: "qrc:/assets/img/icon.png"