mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-20 06:50:28 +03:00
fix #495,Disable panel shadow for maximized windows
This commit is contained in:
parent
4381384d20
commit
162d84e31d
@ -48,6 +48,9 @@
|
||||
<entry name="panelShadows" type="Bool">
|
||||
<default>true</default>
|
||||
</entry>
|
||||
<entry name="disablePanelShadowForMaximized" type="Bool">
|
||||
<default>false</default>
|
||||
</entry>
|
||||
<entry name="panelTransparency" type="Int">
|
||||
<default>100</default>
|
||||
</entry>
|
||||
|
@ -69,7 +69,7 @@ DragDrop.DropArea {
|
||||
property bool confirmedDragEntered: false
|
||||
property bool dockContainsMouse: dock && dock.visibility ? dock.visibility.containsMouse : false
|
||||
|
||||
|
||||
property bool disablePanelShadowMaximized: plasmoid.configuration.disablePanelShadowForMaximized
|
||||
property bool drawShadowsExternal: panelShadowsActive && behaveAsPlasmaPanel
|
||||
property bool editMode: plasmoid.userConfiguring
|
||||
property bool exposeAltSession: globalSettings ? globalSettings.exposeAltSession : false
|
||||
@ -131,8 +131,11 @@ DragDrop.DropArea {
|
||||
|
||||
property int panelEdgeSpacing: iconSize / 3
|
||||
property int panelTransparency: plasmoid.configuration.panelTransparency
|
||||
property bool panelShadowsActive: (plasmoid.configuration.panelShadows && !root.backgroundOnlyOnMaximized)
|
||||
|| (plasmoid.configuration.panelShadows && root.backgroundOnlyOnMaximized && !root.forceTransparentPanel)
|
||||
property bool panelShadowsActive: ( (plasmoid.configuration.panelShadows && !root.backgroundOnlyOnMaximized)
|
||||
|| (plasmoid.configuration.panelShadows && root.backgroundOnlyOnMaximized && !root.forceTransparentPanel))
|
||||
&& !(disablePanelShadowMaximized && windowsModel.hasMaximizedWindow)
|
||||
|
||||
|
||||
|
||||
property int totalPanelEdgeSpacing: 0 //this is set by PanelBox
|
||||
//FIXME: this is not needed any more probably
|
||||
@ -217,6 +220,7 @@ DragDrop.DropArea {
|
||||
// TO BE DELETED, if not needed: property int counter:0;
|
||||
|
||||
///BEGIN properties provided to Latte Plasmoid
|
||||
//shadows for applets, it should be removed as the appleitems dont need it any more
|
||||
property bool enableShadows: plasmoid.configuration.shadows || root.forceTransparentPanel
|
||||
property bool dockIsHidden: dock ? dock.visibility.isHidden : true
|
||||
property bool dotsOnActive: plasmoid.configuration.dotsOnActive
|
||||
@ -1164,7 +1168,7 @@ DragDrop.DropArea {
|
||||
Loader{
|
||||
id: windowsModel
|
||||
|
||||
active: plasmoid.configuration.backgroundOnlyOnMaximized
|
||||
active: plasmoid.configuration.backgroundOnlyOnMaximized || root.disablePanelShadowMaximized
|
||||
|
||||
property bool hasMaximizedWindow: active && item ? item.maximizedWindowOnScreen : false
|
||||
sourceComponent: WindowsModel{}
|
||||
|
@ -80,7 +80,22 @@ PlasmaComponents.Page {
|
||||
tooltip: i18n("The panel background becomes transparent and is shown only\nwhen there is a maximized window")
|
||||
|
||||
onClicked: {
|
||||
plasmoid.configuration.backgroundOnlyOnMaximized = checked
|
||||
plasmoid.configuration.backgroundOnlyOnMaximized = checked;
|
||||
plasmoid.configuration.disablePanelShadowForMaximized = false;
|
||||
hideShadowsOnMaximizedChk.checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
PlasmaComponents.CheckBox {
|
||||
id: hideShadowsOnMaximizedChk
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
text: i18n("Hide panel shadow for maximized windows")
|
||||
checked: plasmoid.configuration.disablePanelShadowForMaximized
|
||||
|
||||
onClicked: {
|
||||
plasmoid.configuration.disablePanelShadowForMaximized = checked;
|
||||
plasmoid.configuration.backgroundOnlyOnMaximized = false;
|
||||
onlyOnMaximizedChk.checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user