1
0
Fork 0

[UI] More user customizable colours.

This commit is contained in:
NamedKitten 2018-11-19 13:01:38 +00:00
parent b07f27f040
commit bd41d19d24
2 changed files with 11 additions and 11 deletions

View file

@ -158,7 +158,7 @@ Item {
id: progressLength
width: progressBar.visualPosition * parent.width
height: parent.height
color: "red"
color: appearance.progressSliderColor
opacity: 1
radius: height
anchors.leftMargin: 100
@ -197,8 +197,7 @@ Item {
implicitHeight: radius
implicitWidth: radius
radius: 12 + (progressBackground.height / 2)
color: fun.nyanCat ? "transparent" : "red"
//border.color: "red"
color: fun.nyanCat ? "transparent" : appearance.progressSliderColor
AnimatedImage {
visible: fun.nyanCat
paused: progressBar.pressed
@ -215,7 +214,7 @@ Item {
id: playlistPrevButton
objectName: "playlistPrevButton"
icon.source: "icons/prev.svg"
icon.color: "white"
icon.color: appearance.buttonColor
display: AbstractButton.IconOnly
anchors.top: parent.top
anchors.bottom: parent.bottom
@ -239,7 +238,7 @@ Item {
Button {
id: playPauseButton
icon.source: "icons/pause.svg"
icon.color: "white"
icon.color: appearance.buttonColor
display: AbstractButton.IconOnly
anchors.top: parent.top
anchors.bottom: parent.bottom
@ -263,7 +262,7 @@ Item {
id: playlistNextButton
//icon.name: "next"
icon.source: "icons/next.svg"
icon.color: "white"
icon.color: appearance.buttonColor
display: AbstractButton.IconOnly
anchors.top: parent.top
anchors.bottom: parent.bottom
@ -278,7 +277,7 @@ Item {
id: volumeButton
objectName: "volumeButton"
icon.source: "icons/volume-up.svg"
icon.color: "white"
icon.color: appearance.buttonColor
display: AbstractButton.IconOnly
anchors.top: parent.top
anchors.bottom: parent.bottom
@ -376,7 +375,7 @@ Item {
id: settingsButton
//icon.name: "settings"
icon.source: "icons/settings.svg"
icon.color: "white"
icon.color: appearance.buttonColor
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
anchors.right: fullscreenButton.left
anchors.top: parent.top
@ -392,7 +391,7 @@ Item {
id: fullscreenButton
//icon.name: "fullscreen"
icon.source: "icons/fullscreen.svg"
icon.color: "white"
icon.color: appearance.buttonColor
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
anchors.right: parent.right
anchors.top: parent.top

View file

@ -27,6 +27,8 @@ ApplicationWindow {
property bool useMpvSubs: false
property string fontName: "Roboto"
property string mainBackground: "#9C000000"
property string buttonColor: "white"
property string progressSliderColor: "red"
}
Settings {
id: i18n
@ -212,8 +214,7 @@ ApplicationWindow {
MouseArea {
id: mouseAreaBar
x: 0
y: parent.height
width: parent.width
height: (controlsBar.controls.height * 2) + controlsBar.progress.height
anchors.bottom: parent.bottom