1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-18 08:22:33 +02:00

Change many dark and light theming issues

This commit is contained in:
Elias Steurer 2020-05-03 13:59:20 +02:00
parent 49a33fad52
commit d4812e476c
12 changed files with 22 additions and 21 deletions

View File

@ -45,7 +45,7 @@ Item {
Rectangle {
id: rectangle
color: "#F0F0F0"
color: Material.background
radius: 3
clip: true
anchors {
@ -137,9 +137,9 @@ Item {
Button {
id: btnClear
text: qsTr("Clear")
Material.background: Material.Grey
Material.background: Material.theme === Material.Light ? Qt.lighter(Material.accent) : Qt.darker(Material.accent)
Material.foreground: "white"
font.family: ScreenPlay.settings.font
anchors {
top: parent.top
right: btnOpen.left
@ -152,7 +152,7 @@ Item {
Button {
id: btnOpen
text: qsTr("Select Preview Image")
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
font.family: ScreenPlay.settings.font
anchors {

View File

@ -15,13 +15,14 @@ Item {
Rectangle {
id: rectangle
radius: 3
color: Qt.lighter(Material.background)
anchors.fill: parent
Text {
id: txt
text: _name
color: Material.color(Material.Grey)
color: Material.theme === Material.Light ? Qt.lighter(Material.foreground) : Qt.darker(Material.foreground)
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
anchors.fill: parent

View File

@ -26,7 +26,7 @@ Item {
Rectangle {
id: rectangle
color: "#F0F0F0"
color: Material.background
radius: 3
clip: true
anchors {

View File

@ -108,7 +108,7 @@ Item {
bottomMargin: 30
horizontalCenter: parent.horizontalCenter
}
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
icon.source: "qrc:/assets/icons/icon_share.svg"

View File

@ -81,7 +81,7 @@ Item {
bottom: parent.bottom
bottomMargin: 20
}
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
icon.source: "qrc:/assets/icons/icon_upload.svg"
icon.color: "white"
@ -168,7 +168,7 @@ Item {
bottom: parent.bottom
bottomMargin: 20
}
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
icon.source: "qrc:/assets/icons/icon_upload.svg"
icon.color: "white"
@ -248,7 +248,7 @@ Item {
Button {
text: qsTr("Upload Exsisting Project to Steam")
anchors.centerIn: parent
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
icon.source: "qrc:/assets/icons/icon_steam.svg"
icon.color: "white"

View File

@ -227,7 +227,7 @@ Item {
id: btnSave
text: qsTr("Save")
enabled: false
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
font.family: ScreenPlay.settings.font
onClicked: {

View File

@ -177,7 +177,7 @@ Item {
id: btnSave
text: qsTr("Save")
enabled: false
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
font.family: ScreenPlay.settings.font

View File

@ -86,7 +86,7 @@ Item {
Button {
id: btnBack
text: qsTr("Back to create and send an error report!")
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
font.family: ScreenPlay.settings.font
anchors {

View File

@ -320,7 +320,7 @@ Item {
id: btnSave
text: qsTr("Save")
enabled: false
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
font.family: ScreenPlay.settings.font

View File

@ -319,8 +319,7 @@ Item {
Button {
id: btnSetWallpaper
text: qsTr("Set wallpaper")
Material.accent: Material.Orange
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
font.family: ScreenPlay.settings.font
icon.source: "qrc:/assets/icons/icon_plus.svg"

View File

@ -6,7 +6,8 @@ import ScreenPlay 1.0
Rectangle {
id: rect
color: Qt.darker(Material.background)
color: Material.theme === Material.Light ? Qt.darker(Material.background) : Qt.lighter(Material.background)
height: availableHeight
width: availableWidth

View File

@ -127,7 +127,7 @@ Item {
Button {
id: btnRemoveSelectedWallpaper
text: qsTr("Remove selected")
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
font.family: ScreenPlay.settings.font
enabled: monitorSelection.activeMonitors.length == 1
@ -139,7 +139,7 @@ Item {
Button {
id: btnRemoveAllWallpaper
text: qsTr("Remove all Wallpapers")
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
font.family: ScreenPlay.settings.font
enabled: ScreenPlay.screenPlayManager.activeWallpaperCounter > 0
@ -151,7 +151,7 @@ Item {
Button {
id: btnRemoveAllWidgets
text: qsTr("Remove all Widgets")
Material.background: Material.Orange
Material.background: Material.accent
Material.foreground: "white"
font.family: ScreenPlay.settings.font
enabled: ScreenPlay.screenPlayManager.activeWidgetsCounter > 0