Commit 0c3b152f authored by Marco Martin's avatar Marco Martin

color panel when startupfeedback is used

parent a9a9e13a
......@@ -49,7 +49,8 @@ Item {
property bool reorderingApps: false
property var layoutManager: LayoutManager
readonly property bool showingApp: !MobileShell.HomeScreenControls.homeScreenVisible//!plasmoid.nativeInterface.showDesktop && (hasTasks || NanoShell.StartupFeedback.visible)
readonly property color backgroundColor: NanoShell.StartupFeedback.visible ? NanoShell.StartupFeedback.backgroundColor : icons.backgroundColor
readonly property bool showingApp: !MobileShell.HomeScreenControls.homeScreenVisible
readonly property bool hasTasks: tasksModel.count > 0
......@@ -178,11 +179,11 @@ Item {
gradient: Gradient {
GradientStop {
position: 1.0
color: showingApp ? icons.backgroundColor : "transparent"
color: showingApp ? root.backgroundColor : "transparent"
}
GradientStop {
position: 0.0
color: showingApp ? icons.backgroundColor : Qt.rgba(0, 0, 0, 0.1)
color: showingApp ? root.backgroundColor : Qt.rgba(0, 0, 0, 0.1)
}
}
}
......
......@@ -39,7 +39,8 @@ PlasmaCore.ColorScope {
Plasmoid.backgroundHints: PlasmaCore.Types.NoBackground
readonly property bool showingApp: !plasmoid.nativeInterface.allMinimized// !plasmoid.nativeInterface.showDesktop && (hasTasks || NanoShell.StartupFeedback.visible)
readonly property color backgroundColor: NanoShell.StartupFeedback.visible ? NanoShell.StartupFeedback.backgroundColor : PlasmaCore.ColorScope.backgroundColor
readonly property bool showingApp: !plasmoid.nativeInterface.allMinimized
readonly property bool hasTasks: tasksModel.count > 0
......@@ -167,32 +168,17 @@ PlasmaCore.ColorScope {
anchors.fill: parent
visible: plasmoid.configuration.PanelButtonsVisible
/*
Rectangle {
anchors.fill: parent
color: root.backgroundColor
opacity: showingApp ? 1 : 0
Rectangle {
anchors {
left: parent.left
right: parent.right
top: parent.top
}
height: 1
color: PlasmaCore.ColorScope.textColor
opacity: 0.2
}
}*/
Rectangle {
anchors.fill: parent
gradient: Gradient {
GradientStop {
position: 0
color: showingApp ? PlasmaCore.ColorScope.backgroundColor : "transparent"
color: showingApp ? root.backgroundColor : "transparent"
}
GradientStop {
position: 1
color: showingApp ? PlasmaCore.ColorScope.backgroundColor : Qt.rgba(0, 0, 0, 0.05)
color: showingApp ? root.backgroundColor : Qt.rgba(0, 0, 0, 0.1)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment