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
|
import QtMultimedia
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
SystemPalette { id: systemColors; colorGroup: SystemPalette.Active }
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
required property int songIndex
|
required property int songIndex
|
||||||
|
@ -50,7 +51,7 @@ Item {
|
||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
|
|
||||||
color: "white"
|
color: systemColors.windowText
|
||||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
|
|
||||||
font {
|
font {
|
||||||
|
@ -71,7 +72,7 @@ Item {
|
||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
|
|
||||||
color: "gray"
|
color: systemColors.windowText
|
||||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
|
|
||||||
font {
|
font {
|
||||||
|
|
|
@ -3,6 +3,8 @@ import QtQuick.Window
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
Window {
|
Window {
|
||||||
|
SystemPalette { id: systemColors; colorGroup: SystemPalette.Active }
|
||||||
|
|
||||||
id: root
|
id: root
|
||||||
width: 640
|
width: 640
|
||||||
height: 480
|
height: 480
|
||||||
|
@ -20,7 +22,7 @@ Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
height: 50
|
height: 50
|
||||||
color: "#5F8575"
|
color: systemColors.window
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
@ -33,7 +35,7 @@ Window {
|
||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
|
|
||||||
color: "#1e1e1e"
|
color: systemColors.window
|
||||||
|
|
||||||
AudioInfoBox {
|
AudioInfoBox {
|
||||||
id: firstSong
|
id: firstSong
|
||||||
|
@ -110,7 +112,7 @@ Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
height: 100
|
height: 100
|
||||||
color: "#333333"
|
color: systemColors.window
|
||||||
|
|
||||||
|
|
||||||
ImageButton {
|
ImageButton {
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
SystemPalette { id: systemColors; colorGroup: SystemPalette.Active }
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property color color: "gray"
|
property color color: systemColors.window
|
||||||
property alias text: buttonText.text
|
property alias text: buttonText.text
|
||||||
|
|
||||||
signal clicked()
|
signal clicked()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue