native: color theme support
This commit is contained in:
parent
c0be47c65d
commit
6834b8d6e9
3 changed files with 10 additions and 6 deletions
|
@ -2,6 +2,7 @@ import QtQuick
|
|||
import QtMultimedia
|
||||
|
||||
Item {
|
||||
SystemPalette { id: systemColors; colorGroup: SystemPalette.Active }
|
||||
id: root
|
||||
|
||||
required property int songIndex
|
||||
|
@ -50,7 +51,7 @@ Item {
|
|||
right: parent.right
|
||||
}
|
||||
|
||||
color: "white"
|
||||
color: systemColors.windowText
|
||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||
|
||||
font {
|
||||
|
@ -71,7 +72,7 @@ Item {
|
|||
right: parent.right
|
||||
}
|
||||
|
||||
color: "gray"
|
||||
color: systemColors.windowText
|
||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||
|
||||
font {
|
||||
|
|
|
@ -3,6 +3,8 @@ import QtQuick.Window
|
|||
import QtQuick.Layouts
|
||||
|
||||
Window {
|
||||
SystemPalette { id: systemColors; colorGroup: SystemPalette.Active }
|
||||
|
||||
id: root
|
||||
width: 640
|
||||
height: 480
|
||||
|
@ -20,7 +22,7 @@ Window {
|
|||
}
|
||||
|
||||
height: 50
|
||||
color: "#5F8575"
|
||||
color: systemColors.window
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
|
@ -33,7 +35,7 @@ Window {
|
|||
right: parent.right
|
||||
}
|
||||
|
||||
color: "#1e1e1e"
|
||||
color: systemColors.window
|
||||
|
||||
AudioInfoBox {
|
||||
id: firstSong
|
||||
|
@ -110,7 +112,7 @@ Window {
|
|||
}
|
||||
|
||||
height: 100
|
||||
color: "#333333"
|
||||
color: systemColors.window
|
||||
|
||||
|
||||
ImageButton {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import QtQuick
|
||||
|
||||
Item {
|
||||
SystemPalette { id: systemColors; colorGroup: SystemPalette.Active }
|
||||
id: root
|
||||
|
||||
property color color: "gray"
|
||||
property color color: systemColors.window
|
||||
property alias text: buttonText.text
|
||||
|
||||
signal clicked()
|
||||
|
|
Loading…
Reference in a new issue