mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-06 16:58:17 +03:00
support solid background with opacity for maximized
--the user may prefer solid background with opacity when using the maximized windows functionality. This patch enables this
This commit is contained in:
parent
65c50e4200
commit
f22d5c85b2
@ -259,7 +259,7 @@ Item{
|
|||||||
anchors.bottomMargin: Latte.WindowSystem.compositingActive ? shadowsSvgItem.margins.bottom - bottomIncreaser : 0
|
anchors.bottomMargin: Latte.WindowSystem.compositingActive ? shadowsSvgItem.margins.bottom - bottomIncreaser : 0
|
||||||
anchors.fill:parent
|
anchors.fill:parent
|
||||||
|
|
||||||
opacity: root.solidPanel || root.forceSolidPanel
|
opacity: (root.solidPanel && !plasmoid.configuration.solidBackgroundForMaximized) || root.forceSolidPanel
|
||||||
|| (root.hasExpandedApplet && root.zoomFactor===1 && plasmoid.configuration.panelSize===100) ?
|
|| (root.hasExpandedApplet && root.zoomFactor===1 && plasmoid.configuration.panelSize===100) ?
|
||||||
1 : plasmoid.configuration.panelTransparency / 100
|
1 : plasmoid.configuration.panelTransparency / 100
|
||||||
|
|
||||||
|
@ -464,13 +464,16 @@ PlasmaComponents.Page {
|
|||||||
PlasmaComponents.Label {
|
PlasmaComponents.Label {
|
||||||
text: i18n("Opacity: ")
|
text: i18n("Opacity: ")
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
enabled: showBackground.checked && !solidBackground.checked
|
enabled: transparencySlider.enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
PlasmaComponents.Slider {
|
PlasmaComponents.Slider {
|
||||||
id: transparencySlider
|
id: transparencySlider
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
enabled: showBackground.checked && !solidBackground.checked
|
//! transparency can be set when the user doesnt want solidness all the time
|
||||||
|
//! or when the user wants solidness only for maximized windows
|
||||||
|
enabled: showBackground.checked &&
|
||||||
|
(!solidBackground.checked || plasmoid.configuration.solidBackgroundForMaximized)
|
||||||
|
|
||||||
value: plasmoid.configuration.panelTransparency
|
value: plasmoid.configuration.panelTransparency
|
||||||
minimumValue: 0
|
minimumValue: 0
|
||||||
@ -496,7 +499,7 @@ PlasmaComponents.Page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PlasmaComponents.Label {
|
PlasmaComponents.Label {
|
||||||
enabled: showBackground.checked && !solidBackground.checked
|
enabled: transparencySlider.enabled
|
||||||
text: transparencySlider.value + " %"
|
text: transparencySlider.value + " %"
|
||||||
horizontalAlignment: Text.AlignRight
|
horizontalAlignment: Text.AlignRight
|
||||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user