Skip to content

Commit

Permalink
Make the welcome screen theme friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 4, 2024
1 parent 1bf811e commit 3d76e80
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/qml/WelcomeScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ Page {
gradient: Gradient {
GradientStop {
position: 0.0
color: "#4480cc28"
color: Qt.hsla(Theme.mainColor.hslHue, Theme.mainColor.hslSaturation, Theme.mainColor.hslLightness, 0.26)
}
GradientStop {
position: 0.88
color: "#0580cc28"
color: Qt.hsla(Theme.mainColor.hslHue, Theme.mainColor.hslSaturation, Theme.mainColor.hslLightness, 0.02)
}
}

Expand Down Expand Up @@ -167,11 +167,11 @@ Page {
gradient: Gradient {
GradientStop {
position: 0.0
color: "#4480cc28"
color: Qt.hsla(Theme.mainColor.hslHue, Theme.mainColor.hslSaturation, Theme.mainColor.hslLightness, 0.26)
}
GradientStop {
position: 0.88
color: "#0580cc28"
color: Qt.hsla(Theme.mainColor.hslHue, Theme.mainColor.hslSaturation, Theme.mainColor.hslLightness, 0.02)
}
}

Expand All @@ -198,6 +198,7 @@ Page {
Layout.bottomMargin: 10
QfToolButton {
iconSource: Theme.getThemeVectorIcon('ic_dissatisfied_white_24dp')
iconColor: Theme.mainOverlayColor
bgcolor: Theme.mainColor
round: true

Expand All @@ -207,6 +208,7 @@ Page {
}
QfToolButton {
iconSource: Theme.getThemeVectorIcon('ic_satisfied_white_24dp')
iconColor: Theme.mainOverlayColor
bgcolor: Theme.mainColor
round: true

Expand All @@ -229,11 +231,11 @@ Page {
gradient: Gradient {
GradientStop {
position: 0.0
color: "#4480cc28"
color: Qt.hsla(Theme.mainColor.hslHue, Theme.mainColor.hslSaturation, Theme.mainColor.hslLightness, 0.26)
}
GradientStop {
position: 0.88
color: "#0580cc28"
color: Qt.hsla(Theme.mainColor.hslHue, Theme.mainColor.hslSaturation, Theme.mainColor.hslLightness, 0.02)
}
}

Expand Down Expand Up @@ -311,11 +313,11 @@ Page {
gradient: Gradient {
GradientStop {
position: 0.0
color: "#4480cc28"
color: Qt.hsla(Theme.mainColor.hslHue, Theme.mainColor.hslSaturation, Theme.mainColor.hslLightness, 0.26)
}
GradientStop {
position: 0.88
color: "#0580cc28"
color: Qt.hsla(Theme.mainColor.hslHue, Theme.mainColor.hslSaturation, Theme.mainColor.hslLightness, 0.02)
}
}

Expand Down Expand Up @@ -346,11 +348,11 @@ Page {
gradient: Gradient {
GradientStop {
position: 0.0
color: "#4480cc28"
color: Qt.hsla(Theme.mainColor.hslHue, Theme.mainColor.hslSaturation, Theme.mainColor.hslLightness, 0.26)
}
GradientStop {
position: 0.88
color: "#0580cc28"
color: Qt.hsla(Theme.mainColor.hslHue, Theme.mainColor.hslSaturation, Theme.mainColor.hslLightness, 0.02)
}
}

Expand Down

0 comments on commit 3d76e80

Please sign in to comment.