mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 08:22:33 +02:00
Fix more theming stuff for light and dark mode
This commit is contained in:
parent
b868be7fbe
commit
8da12bb89c
@ -48,7 +48,7 @@ ApplicationWindow {
|
||||
function setTheme(theme){
|
||||
switch (theme) {
|
||||
case Settings.System:
|
||||
window.Material.theme = Material.Light
|
||||
window.Material.theme = Material.System
|
||||
break
|
||||
case Settings.Dark:
|
||||
window.Material.theme = Material.Dark
|
||||
|
@ -35,7 +35,7 @@ Item {
|
||||
}
|
||||
Connections {
|
||||
target: ScreenPlay.installedListModel
|
||||
function onInstalledLoadingFinished(){
|
||||
function onInstalledLoadingFinished() {
|
||||
checkIsContentInstalled()
|
||||
}
|
||||
function onCountChanged(count) {
|
||||
@ -90,7 +90,7 @@ Item {
|
||||
opacity: 0
|
||||
onIsVisibleChanged: {
|
||||
if (isVisible) {
|
||||
txtHeader.color = Material.accent
|
||||
txtHeader.color = Material.accent
|
||||
txtHeader.text = qsTr("Refreshing!")
|
||||
} else {
|
||||
txtHeader.color = "gray"
|
||||
@ -242,11 +242,10 @@ Item {
|
||||
icon.height: 16
|
||||
icon.width: 16
|
||||
height: parent.height
|
||||
|
||||
width: implicitWidth
|
||||
background: Item {}
|
||||
font.weight: Font.Thin
|
||||
icon.source: "qrc:/assets/icons/icon_installed.svg"
|
||||
|
||||
onClicked: {
|
||||
setSidebarActive(false)
|
||||
ScreenPlay.installedListFilter.sortByRoleType("All")
|
||||
@ -260,6 +259,7 @@ Item {
|
||||
width: implicitWidth
|
||||
height: parent.height
|
||||
background: Item {}
|
||||
font.weight: Font.Thin
|
||||
icon.source: "qrc:/assets/icons/icon_code.svg"
|
||||
onClicked: {
|
||||
setSidebarActive(false)
|
||||
@ -274,6 +274,7 @@ Item {
|
||||
height: parent.height
|
||||
width: implicitWidth
|
||||
background: Item {}
|
||||
font.weight: Font.Thin
|
||||
icon.source: "qrc:/assets/icons/icon_movie.svg"
|
||||
onClicked: {
|
||||
setSidebarActive(false)
|
||||
@ -288,6 +289,7 @@ Item {
|
||||
height: parent.height
|
||||
width: implicitWidth
|
||||
background: Item {}
|
||||
font.weight: Font.Thin
|
||||
icon.source: "qrc:/assets/icons/icon_widgets.svg"
|
||||
onClicked: {
|
||||
setSidebarActive(false)
|
||||
|
@ -6,7 +6,7 @@ import ScreenPlay 1.0
|
||||
|
||||
Rectangle {
|
||||
id: rect
|
||||
color: Material.theme === Material.Light ? Qt.darker(Material.background) : Qt.lighter(Material.background)
|
||||
color: Material.theme === Material.Light ? Material.background : Qt.darker(Material.background)
|
||||
|
||||
height: availableHeight
|
||||
width: availableWidth
|
||||
|
Loading…
Reference in New Issue
Block a user