UI gradient background, adjust some colors

This commit is contained in:
miruka
2019-08-28 19:34:50 -04:00
parent 1806ac6ac0
commit ff9f8127d7
3 changed files with 36 additions and 12 deletions

View File

@@ -7,7 +7,8 @@ import "SidePane"
Rectangle {
id: mainUI
color: theme.ui.background
color: "transparent"
Component.onCompleted: window.mainUI = mainUI
property alias shortcuts: shortcuts
@@ -43,6 +44,20 @@ Rectangle {
asynchronous: false
}
Rectangle {
id: mainUIGradient
anchors.fill: parent
scale: Math.max(
1.6, Math.ceil(parent.parent.width / parent.parent.height)
)
rotation: theme.ui.gradientRotation
gradient: Gradient {
GradientStop { position: 0.0; color: theme.ui.gradientLeft }
GradientStop { position: 1.0; color: theme.ui.gradientRight }
}
}
HSplitView {
id: uiSplitView
anchors.fill: parent