Changeset View
Changeset View
Standalone View
Standalone View
containment/package/contents/ui/main.qml
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 71 | property bool behaveAsPlasmaPanel: { | |||
---|---|---|---|---|---|
72 | if (!latteView || !latteView.visibility) | 72 | if (!latteView || !latteView.visibility) | ||
73 | return false; | 73 | return false; | ||
74 | 74 | | |||
75 | return (visibilityManager.panelIsBiggerFromIconSize && (zoomFactor === 1.0) | 75 | return (visibilityManager.panelIsBiggerFromIconSize && (zoomFactor === 1.0) | ||
76 | && (latteView.visibility.mode === Latte.Types.AlwaysVisible || latteView.visibility.mode === Latte.Types.WindowsGoBelow) | 76 | && (latteView.visibility.mode === Latte.Types.AlwaysVisible || latteView.visibility.mode === Latte.Types.WindowsGoBelow) | ||
77 | && (plasmoid.configuration.panelPosition === Latte.Types.Justify) && !(root.solidStylePanel && panelShadowsActive)); | 77 | && (plasmoid.configuration.panelPosition === Latte.Types.Justify) && !(root.solidStylePanel && panelShadowsActive)); | ||
78 | } | 78 | } | ||
79 | 79 | | |||
80 | property int viewType: { | ||||
81 | if ((plasmoid.configuration.panelPosition === Latte.Types.Justify) | ||||
82 | && (plasmoid.configuration.useThemePanel) | ||||
83 | && (plasmoid.configuration.panelSize === 100) | ||||
84 | && (plasmoid.configuration.zoomLevel === 0)) { | ||||
85 | return Latte.Types.PanelView; | ||||
86 | } | ||||
87 | | ||||
88 | return Latte.Types.DockView; | ||||
89 | } | ||||
90 | | ||||
80 | property bool blurEnabled: plasmoid.configuration.blurEnabled && (!root.forceTransparentPanel || root.forcePanelForBusyBackground) | 91 | property bool blurEnabled: plasmoid.configuration.blurEnabled && (!root.forceTransparentPanel || root.forcePanelForBusyBackground) | ||
81 | //|| (hasExpandedApplet && zoomFactor===1 && plasmoid.configuration.panelSize===100) | 92 | //|| (hasExpandedApplet && zoomFactor===1 && plasmoid.configuration.panelSize===100) | ||
82 | 93 | | |||
83 | property bool confirmedDragEntered: false | 94 | property bool confirmedDragEntered: false | ||
84 | property bool containsOnlyPlasmaTasks: false //this is flag to indicate when from tasks only a plasma based one is found | 95 | property bool containsOnlyPlasmaTasks: false //this is flag to indicate when from tasks only a plasma based one is found | ||
85 | property bool dockContainsMouse: latteView && latteView.visibility ? latteView.visibility.containsMouse : false | 96 | property bool dockContainsMouse: latteView && latteView.visibility ? latteView.visibility.containsMouse : false | ||
86 | 97 | | |||
87 | property bool disablePanelShadowMaximized: plasmoid.configuration.disablePanelShadowForMaximized && Latte.WindowSystem.compositingActive | 98 | property bool disablePanelShadowMaximized: plasmoid.configuration.disablePanelShadowForMaximized && Latte.WindowSystem.compositingActive | ||
▲ Show 20 Lines • Show All 1775 Lines • Show Last 20 Lines |