expose items shadow through MyView Ability

work/spdx
Michail Vourlakos 4 years ago
parent 1dfabeac2a
commit f09a6e0026

@ -22,9 +22,9 @@ import org.kde.plasma.plasmoid 2.0
import org.kde.latte.core 0.2 as LatteCore import org.kde.latte.core 0.2 as LatteCore
import org.kde.latte.abilities.host 0.1 as AbilityHost import "./privates" as Ability
AbilityHost.MyView { Ability.MyViewPrivate {
view: latteView view: latteView
isReady: latteView isReady: latteView
@ -45,7 +45,14 @@ AbilityHost.MyView {
lastUsedActivity: view && view.layout ? view.layout.lastUsedActivity : "" lastUsedActivity: view && view.layout ? view.layout.lastUsedActivity : ""
screenGeometry: view ? view.screenGeometry : plasmoid.screenGeometry
containmentActions: isReady ? view.containmentActions : [] containmentActions: isReady ? view.containmentActions : []
itemShadow.isEnabled: plasmoid.configuration.appletShadowsEnabled
itemShadow.size: itemShadow.isEnabled ? (0.5*metrics.iconSize) * (plasmoid.configuration.shadowSize/100) : 0
itemShadow.shadowColor: "#" + myView.decimalToHex(appShadowOpacity) + myView.itemShadowOpacity
itemShadow.shadowSolidColor: "#" + myView.itemShadowCurrentColor
} }

@ -72,7 +72,7 @@ AbilityHost.Metrics {
} }
//! 45% of max shadow size in px. //! 45% of max shadow size in px.
var shadowMaxNeededMargin = 0.45 * root.appShadowSizeOriginal; var shadowMaxNeededMargin = 0.45 * root.myView.itemShadow.maxSize;
var shadowOpacity = (plasmoid.configuration.shadowOpacity) / 100; var shadowOpacity = (plasmoid.configuration.shadowOpacity) / 100;
//! +40% of shadow opacity in percentage //! +40% of shadow opacity in percentage
shadowOpacity = shadowOpacity + shadowOpacity*0.4; shadowOpacity = shadowOpacity + shadowOpacity*0.4;
@ -82,7 +82,7 @@ AbilityHost.Metrics {
shadowMaxNeededMargin = (shadowMaxNeededMargin * shadowOpacity); shadowMaxNeededMargin = (shadowMaxNeededMargin * shadowOpacity);
//! give some more space when items shadows are enabled and extremely big //! give some more space when items shadows are enabled and extremely big
if (root.enableShadows && metrics.margin.maxThickness < shadowMaxNeededMargin) { if (root.myView.itemShadow.isEnabled && metrics.margin.maxThickness < shadowMaxNeededMargin) {
return shadowMaxNeededMargin - metrics.margin.maxThickness; return shadowMaxNeededMargin - metrics.margin.maxThickness;
} }

@ -0,0 +1,55 @@
/*
* Copyright 2021 Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock
*
* Latte-Dock is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* Latte-Dock is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.7
import org.kde.plasma.plasmoid 2.0
import org.kde.latte.core 0.2 as LatteCore
import org.kde.latte.abilities.host 0.1 as AbilityHost
import org.kde.latte.private.containment 0.1 as LatteContainment
AbilityHost.MyView {
readonly property int itemShadowOpacity: (plasmoid.configuration.shadowOpacity/100) * 255
readonly property int itemShadowMaxSize: itemShadow.isEnabled ? (0.5*metrics.maxIconSize) * (plasmoid.configuration.shadowSize/100) : 0
readonly property string itemShadowCurrentColor: {
if (plasmoid.configuration.shadowColorType === LatteContainment.Types.ThemeColorShadow) {
var strC = String(theme.textColor);
return strC.indexOf("#") === 0 ? strC.substr(1) : strC;
} else if (plasmoid.configuration.shadowColorType === LatteContainment.Types.UserColorShadow) {
return plasmoid.configuration.shadowColor;
}
return "080808"; // default
}
function decimalToHex(d, padding) {
var hex = Number(d).toString(16);
padding = typeof (padding) === "undefined" || padding === null ? padding = 2 : padding;
while (hex.length < padding) {
hex = "0" + hex;
}
return hex;
}
}

@ -772,7 +772,7 @@ Item {
scaleFactor: appletItem.wrapper.zoomScale scaleFactor: appletItem.wrapper.zoomScale
panelOpacity: root.background.currentOpacity panelOpacity: root.background.currentOpacity
shadowColor: root.appShadowColorSolid shadowColor: appletItem.myView.itemShadow.shadowSolidColor
palette: colorizerManager.applyTheme palette: colorizerManager.applyTheme

@ -584,7 +584,7 @@ Item{
active: appletItem.applet active: appletItem.applet
&& graphicsSystem.isAccelerated && graphicsSystem.isAccelerated
&& !appletColorizer.mustBeShown && !appletColorizer.mustBeShown
&& (root.enableShadows && applet.pluginName !== root.plasmoidName) && (appletItem.myView.itemShadow.isEnabled && !appletItem.communicator.indexerIsSupported)
onActiveChanged: { onActiveChanged: {
if (active && !isSeparator && graphicsSystem.isAccelerated) { if (active && !isSeparator && graphicsSystem.isAccelerated) {
@ -598,14 +598,14 @@ Item{
sourceComponent: DropShadow{ sourceComponent: DropShadow{
anchors.fill: parent anchors.fill: parent
color: root.appShadowColor //"#ff080808" color: appletItem.myView.itemShadow.shadowColor
fast: true fast: true
samples: 2 * radius samples: 2 * radius
source: appletItem.applet source: appletItem.applet
radius: shadowSize radius: shadowSize
verticalOffset: root.forceTransparentPanel || root.forcePanelForBusyBackground ? 0 : 2 verticalOffset: root.forceTransparentPanel || root.forcePanelForBusyBackground ? 0 : 2
property int shadowSize : root.appShadowSize property int shadowSize : appletItem.myView.itemShadow.size
} }
} }

@ -80,14 +80,14 @@ Loader{
sourceComponent: Item{ sourceComponent: Item{
Loader{ Loader{
anchors.fill: appletNumber anchors.fill: appletNumber
active: root.enableShadows && graphicsSystem.isAccelerated active: appletItem.myView.itemShadow.isEnabled && graphicsSystem.isAccelerated
sourceComponent: DropShadow{ sourceComponent: DropShadow{
color: root.appShadowColor color: appletItem.myView.itemShadow.shadowColor
fast: true fast: true
samples: 2 * radius samples: 2 * radius
source: appletNumber source: appletNumber
radius: root.appShadowSize/2 radius: appletItem.myView.itemShadow.size/2
verticalOffset: 2 verticalOffset: 2
} }
} }

@ -40,14 +40,14 @@ Item {
sourceComponent: DropShadow{ sourceComponent: DropShadow{
anchors.fill: parent anchors.fill: parent
color: root.appShadowColor color: appletItem.myView.itemShadow.shadowColor
fast: true fast: true
samples: 2 * radius samples: 2 * radius
source: colorizer source: colorizer
radius: shadowSize radius: shadowSize
verticalOffset: forcedShadow ? 0 : 2 verticalOffset: forcedShadow ? 0 : 2
readonly property int shadowSize : root.appShadowSize readonly property int shadowSize : appletItem.myView.itemShadow.size
readonly property bool forcedShadow: root.forceTransparentPanel && plasmoid.configuration.appletShadowsEnabled readonly property bool forcedShadow: root.forceTransparentPanel && plasmoid.configuration.appletShadowsEnabled
&& applet && applet.pluginName !== root.plasmoidName ? true : false && applet && applet.pluginName !== root.plasmoidName ? true : false

@ -418,10 +418,10 @@ MouseArea {
opacity: 0.9 opacity: 0.9
layer.enabled: graphicsSystem.isAccelerated layer.enabled: graphicsSystem.isAccelerated
layer.effect: DropShadow { layer.effect: DropShadow {
radius: root.appShadowSize radius: root.myView.itemShadow.size
fast: true fast: true
samples: 2 * radius samples: 2 * radius
color: root.appShadowColor color: root.myView.itemShadow.shadowColor
verticalOffset: 2 verticalOffset: 2
} }

@ -227,7 +227,7 @@ Loader {
isEmptySpace: true isEmptySpace: true
isPressed: mainArea.pressed isPressed: mainArea.pressed
panelOpacity: root.background.currentOpacity panelOpacity: root.background.currentOpacity
shadowColor: root.appShadowColorSolid shadowColor: root.myView.itemShadow.shadowSolidColor
palette: colorizerManager.applyTheme palette: colorizerManager.applyTheme
iconBackgroundColor: "brown" iconBackgroundColor: "brown"

@ -250,7 +250,7 @@ Item {
property int scrollAction: plasmoid.configuration.scrollAction property int scrollAction: plasmoid.configuration.scrollAction
property bool panelOutline: plasmoid.configuration.panelOutline property bool panelOutline: plasmoid.configuration.panelOutline
property int panelEdgeSpacing: Math.max(background.lengthMargins, 1.5*appShadowSize) property int panelEdgeSpacing: Math.max(background.lengthMargins, 1.5*myView.itemShadow.size)
property int panelTransparency: plasmoid.configuration.panelTransparency //user set property int panelTransparency: plasmoid.configuration.panelTransparency //user set
property bool backgroundShadowsInRegularStateEnabled: LatteCore.WindowSystem.compositingActive property bool backgroundShadowsInRegularStateEnabled: LatteCore.WindowSystem.compositingActive
@ -293,25 +293,6 @@ Item {
return false; return false;
} }
property int appShadowOpacity: (plasmoid.configuration.shadowOpacity/100) * 255
property int appShadowSize: enableShadows ? (0.5*metrics.iconSize) * (plasmoid.configuration.shadowSize/100) : 0
property int appShadowSizeOriginal: enableShadows ? (0.5*metrics.maxIconSize) * (plasmoid.configuration.shadowSize/100) : 0
property string appChosenShadowColor: {
if (plasmoid.configuration.shadowColorType === LatteContainment.Types.ThemeColorShadow) {
var strC = String(theme.textColor);
return strC.indexOf("#") === 0 ? strC.substr(1) : strC;
} else if (plasmoid.configuration.shadowColorType === LatteContainment.Types.UserColorShadow) {
return plasmoid.configuration.shadowColor;
}
// default shadow color
return "080808";
}
property string appShadowColor: "#" + decimalToHex(appShadowOpacity) + appChosenShadowColor
property string appShadowColorSolid: "#" + appChosenShadowColor
property int offset: { property int offset: {
if (behaveAsPlasmaPanel) { if (behaveAsPlasmaPanel) {
return 0; return 0;
@ -388,7 +369,6 @@ Item {
///BEGIN properties provided to Latte Plasmoid ///BEGIN properties provided to Latte Plasmoid
//shadows for applets, it should be removed as the appleitems don't need it any more //shadows for applets, it should be removed as the appleitems don't need it any more
property bool badges3DStyle: universalSettings ? universalSettings.badges3DStyle : true property bool badges3DStyle: universalSettings ? universalSettings.badges3DStyle : true
property bool enableShadows: plasmoid.configuration.appletShadowsEnabled
property bool titleTooltips: { property bool titleTooltips: {
if (behaveAsPlasmaPanel) { if (behaveAsPlasmaPanel) {
@ -840,17 +820,6 @@ Item {
} }
} }
function decimalToHex(d, padding) {
var hex = Number(d).toString(16);
padding = typeof (padding) === "undefined" || padding === null ? padding = 2 : padding;
while (hex.length < padding) {
hex = "0" + hex;
}
return hex;
}
function internalViewSplittersCount(){ function internalViewSplittersCount(){
var splitters = 0; var splitters = 0;
for (var container in layoutsContainer.startLayout.children) { for (var container in layoutsContainer.startLayout.children) {

@ -42,8 +42,12 @@ AbilityDefinition.MyView {
lastUsedActivity: ref.myView.lastUsedActivity lastUsedActivity: ref.myView.lastUsedActivity
screenGeometry: ref.myView.screenGeometry
containmentActions: ref.myView.containmentActions containmentActions: ref.myView.containmentActions
itemShadow: ref.myView.itemShadow
readonly property AbilityDefinition.MyView local: AbilityDefinition.MyView {} readonly property AbilityDefinition.MyView local: AbilityDefinition.MyView {}
Item { Item {

@ -21,6 +21,8 @@ import QtQuick 2.0
import org.kde.latte.core 0.2 as LatteCore import org.kde.latte.core 0.2 as LatteCore
import "./myview" as MyViewTypes
Item { Item {
property bool isReady: false property bool isReady: false
@ -40,7 +42,16 @@ Item {
property string lastUsedActivity: "" property string lastUsedActivity: ""
property rect screenGeometry: Qt.rect(0, 0, 1600, 1080)
property var containmentActions: [] property var containmentActions: []
property MyViewTypes.ItemShadow itemShadow: MyViewTypes.ItemShadow {
isEnabled: true
size: 6
shadowColor: "#ff080808"
shadowSolidColor: "#ff080808"
}
//function inCurrentLayout(); //function inCurrentLayout();
} }

@ -0,0 +1,28 @@
/*
* Copyright 2021 Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock
*
* Latte-Dock is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* Latte-Dock is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.7
Item {
property bool isEnabled: true
property int size: 6
property string shadowColor: "#ff080808"
property string shadowSolidColor: "#ff080808"
}

@ -47,8 +47,12 @@ AbilityDefinition.MyView {
readonly property alias alignment: apis.alignment readonly property alias alignment: apis.alignment
readonly property alias visibilityMode: apis.visibilityMode readonly property alias visibilityMode: apis.visibilityMode
readonly property alias screenGeometry: apis.screenGeometry
readonly property alias containmentActions: apis.containmentActions readonly property alias containmentActions: apis.containmentActions
readonly property alias itemShadow: apis.itemShadow
function inCurrentLayout() { function inCurrentLayout() {
return apis.inCurrentLayout(); return apis.inCurrentLayout();
} }

@ -128,7 +128,6 @@ Item {
//BEGIN Latte Dock properties //BEGIN Latte Dock properties
property bool badges3DStyle: latteView ? latteView.badges3DStyle : true property bool badges3DStyle: latteView ? latteView.badges3DStyle : true
property bool enableShadows: latteView ? latteView.enableShadows > 0 : plasmoid.configuration.showShadows
property bool forceHidePanel: false property bool forceHidePanel: false
property bool disableLeftSpacer: false property bool disableLeftSpacer: false
@ -192,10 +191,6 @@ Item {
readonly property real currentPanelOpacity: latteView ? latteView.currentPanelTransparency / 100 : 1 readonly property real currentPanelOpacity: latteView ? latteView.currentPanelTransparency / 100 : 1
property int appShadowSize: latteView ? latteView.appShadowSize : Math.ceil(0.12*appletAbilities.metrics.iconSize)
property string appShadowColor: latteView ? latteView.appShadowColor : "#ff080808"
property string appShadowColorSolid: latteView ? latteView.appShadowColorSolid : "#ff080808"
property alias tasksCount: tasksModel.count property alias tasksCount: tasksModel.count
readonly property real screenGeometryHeightRatio: screenGeometry.height / screenGeometry.width readonly property real screenGeometryHeightRatio: screenGeometry.height / screenGeometry.width
@ -750,6 +745,9 @@ Item {
launchers.isStealingDroppedLaunchers: plasmoid.configuration.isPreferredForDroppedLaunchers launchers.isStealingDroppedLaunchers: plasmoid.configuration.isPreferredForDroppedLaunchers
launchers.syncer.isBlocked: inDraggingPhase launchers.syncer.isBlocked: inDraggingPhase
myView.local.itemShadow.isEnabled: plasmoid.configuration.showShadows
myView.local.itemShadow.size: Math.ceil(0.12*appletAbilities.metrics.iconSize)
parabolic.itemsCount: tasksModel.count parabolic.itemsCount: tasksModel.count
parabolic.local.isEnabled: parabolic.factor.zoom > 1 parabolic.local.isEnabled: parabolic.factor.zoom > 1
parabolic.local.restoreZoomIsBlocked: root.contextMenu || windowsPreviewDlg.containsMouse parabolic.local.restoreZoomIsBlocked: root.contextMenu || windowsPreviewDlg.containsMouse

@ -60,7 +60,7 @@ Item{
// property int shadowInterval: firstDrawed ? firstDrawedInterval : 250 // property int shadowInterval: firstDrawed ? firstDrawedInterval : 250
property int shadowInterval: firstDrawed ? 1000 : 250 property int shadowInterval: firstDrawed ? 1000 : 250
property int shadowSize : root.appShadowSize property int shadowSize : taskItem.abilities.myView.itemShadow.size
readonly property bool smartLauncherEnabled: ((taskItem.isStartup === false) && (root.showInfoBadge || root.showProgressBadge)) readonly property bool smartLauncherEnabled: ((taskItem.isStartup === false) && (root.showInfoBadge || root.showProgressBadge))
readonly property variant iconDecoration: decoration readonly property variant iconDecoration: decoration
@ -162,7 +162,7 @@ Item{
smooth: taskItem.abilities.parabolic.factor.zoom === 1 ? true : false smooth: taskItem.abilities.parabolic.factor.zoom === 1 ? true : false
providesColors: taskItem.abilities.indicators.info.needsIconColors providesColors: taskItem.abilities.indicators.info.needsIconColors
opacity: root.enableShadows opacity: taskItem.abilities.myView.itemShadow.isEnabled
&& taskWithShadow.active && taskWithShadow.active
&& graphicsSystem.isAccelerated ? 0 : 1 && graphicsSystem.isAccelerated ? 0 : 1
visible: !taskItem.isSeparator && (!badgesLoader.active || !graphicsSystem.isAccelerated) visible: !taskItem.isSeparator && (!badgesLoader.active || !graphicsSystem.isAccelerated)
@ -262,15 +262,15 @@ Item{
Loader{ Loader{
id: taskWithShadow id: taskWithShadow
anchors.fill: iconImageBuffer anchors.fill: iconImageBuffer
active: root.enableShadows && !taskItem.isSeparator && graphicsSystem.isAccelerated active: taskItem.abilities.myView.itemShadow.isEnabled && !taskItem.isSeparator && graphicsSystem.isAccelerated
sourceComponent: DropShadow{ sourceComponent: DropShadow{
anchors.fill: parent anchors.fill: parent
color: root.appShadowColor color: taskItem.abilities.myView.itemShadow.shadowColor
fast: true fast: true
samples: 2 * radius samples: 2 * radius
source: badgesLoader.active ? badgesLoader.item : iconImageBuffer source: badgesLoader.active ? badgesLoader.item : iconImageBuffer
radius: root.appShadowSize radius: taskItem.abilities.myView.itemShadow.size
verticalOffset: 2 verticalOffset: 2
} }
} }
@ -458,13 +458,13 @@ Item{
opacity: badgesLoader.activateProgress opacity: badgesLoader.activateProgress
visible: badgesLoader.showInfo || badgesLoader.showProgress visible: badgesLoader.showInfo || badgesLoader.showProgress
layer.enabled: root.enableShadows && graphicsSystem.isAccelerated layer.enabled: taskItem.abilities.myView.itemShadow.isEnabled && graphicsSystem.isAccelerated
layer.effect: DropShadow { layer.effect: DropShadow {
color: root.appShadowColor color: taskItem.abilities.myView.itemShadow.shadowColor
fast: true fast: true
samples: 2 * radius samples: 2 * radius
source: infoBadge source: infoBadge
radius: root.appShadowSize radius: taskItem.abilities.myView.itemShadow.size
verticalOffset: 2 verticalOffset: 2
} }
} }
@ -475,13 +475,13 @@ Item{
opacity: badgesLoader.activateProgress opacity: badgesLoader.activateProgress
visible: badgesLoader.showAudio visible: badgesLoader.showAudio
layer.enabled: root.enableShadows && graphicsSystem.isAccelerated layer.enabled: taskItem.abilities.myView.itemShadow.isEnabled && graphicsSystem.isAccelerated
layer.effect: DropShadow { layer.effect: DropShadow {
color: root.appShadowColor color: taskItem.abilities.myView.itemShadow.shadowColor
fast: true fast: true
samples: 2 * radius samples: 2 * radius
source: audioStreamBadge source: audioStreamBadge
radius: root.appShadowSize radius: taskItem.abilities.myView.itemShadow.size
verticalOffset: 2 verticalOffset: 2
} }
} }

@ -63,7 +63,7 @@ Item {
if (showsAudioBadge) { if (showsAudioBadge) {
return height; return height;
} else if ( index === taskItem.abilities.indexer.firstVisibleItemIndex && !taskItem.containsMouse) { } else if ( index === taskItem.abilities.indexer.firstVisibleItemIndex && !taskItem.containsMouse) {
return (wrapper.mScale * (taskItem.abilities.metrics.iconSize - (root.enableShadows ? shadowSize/2 : 0))); return (wrapper.mScale * (taskItem.abilities.metrics.iconSize - (taskItem.abilities.myView.itemShadow.isEnabled ? shadowSize/2 : 0)));
} else { } else {
return 999999; return 999999;
} }

@ -51,14 +51,14 @@ Loader{
sourceComponent: Item{ sourceComponent: Item{
Loader{ Loader{
anchors.fill: taskNumber anchors.fill: taskNumber
active: root.enableShadows && graphicsSystem.isAccelerated active: taskItem.abilities.myView.itemShadow.isEnabled && graphicsSystem.isAccelerated
sourceComponent: DropShadow{ sourceComponent: DropShadow{
color: root.appShadowColor color: taskItem.abilities.myView.itemShadow.shadowColor
fast: true fast: true
samples: 2 * radius samples: 2 * radius
source: taskNumber source: taskNumber
radius: root.appShadowSize/2 radius: taskItem.abilities.myView.itemShadow.size/2
verticalOffset: 2 verticalOffset: 2
} }
} }

@ -462,7 +462,7 @@ Item {
Loader{ Loader{
id: separatorShadow id: separatorShadow
anchors.fill: separatorItem anchors.fill: separatorItem
active: root.enableShadows && isSeparator && graphicsSystem.isAccelerated active: taskItem.abilities.myView.itemShadow.isEnabled && isSeparator && graphicsSystem.isAccelerated
opacity: separatorItem.forceHiddenState ? 0 : 0.4 opacity: separatorItem.forceHiddenState ? 0 : 0.4
Behavior on opacity { Behavior on opacity {
@ -471,11 +471,11 @@ Item {
sourceComponent: DropShadow{ sourceComponent: DropShadow{
anchors.fill: parent anchors.fill: parent
color: root.appShadowColor color: taskItem.abilities.myView.itemShadow.shadowColor
fast: true fast: true
samples: 2 * radius samples: 2 * radius
source: separatorItem source: separatorItem
radius: root.appShadowSize radius: taskItem.abilities.myView.itemShadow.size
verticalOffset: 2 verticalOffset: 2
} }
} }
@ -538,7 +538,7 @@ Item {
scaleFactor: taskItem.wrapper.mScale scaleFactor: taskItem.wrapper.mScale
panelOpacity: root.currentPanelOpacity panelOpacity: root.currentPanelOpacity
shadowColor: root.appShadowColorSolid shadowColor: taskItem.abilities.myView.itemShadow.shadowColorSolid
progressVisible: wrapper.progressVisible /*since 0.9.2*/ progressVisible: wrapper.progressVisible /*since 0.9.2*/
progress: wrapper.progress /*since 0.9.2*/ progress: wrapper.progress /*since 0.9.2*/

@ -81,7 +81,7 @@ Item{
width: iconImageBuffer.width width: iconImageBuffer.width
height: width height: width
visible: root.enableShadows ? false : true visible: taskItem.abilities.myView.itemShadow.isEnabled ? false : true
source: iconImageBuffer.lastValidSourceName source: iconImageBuffer.lastValidSourceName
} }
@ -89,7 +89,7 @@ Item{
Loader{ Loader{
id: tempTaskShadow id: tempTaskShadow
anchors.fill: tempRemoveIcon anchors.fill: tempRemoveIcon
active: root.enableShadows && graphicsSystem.isAccelerated active: taskItem.abilities.myView.itemShadow.isEnabled && graphicsSystem.isAccelerated
sourceComponent: DropShadow{ sourceComponent: DropShadow{
anchors.fill: parent anchors.fill: parent

@ -28,7 +28,7 @@ Item {
readonly property int gradientLength: appletAbilities.metrics.iconSize / 3 readonly property int gradientLength: appletAbilities.metrics.iconSize / 3
readonly property int thickness: appletAbilities.metrics.backgroundThickness readonly property int thickness: appletAbilities.metrics.backgroundThickness
readonly property color appliedColor: root.appShadowColorSolid readonly property color appliedColor: root.abilities.myView.itemShadow.shadowSolidColor
property Item flickable property Item flickable

Loading…
Cancel
Save