1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-24 18:03:53 +03:00

add showGlow property to GlowPoints

This commit is contained in:
Michail Vourlakos 2017-11-17 18:27:30 +02:00
parent c3a9d09ecf
commit 6b34a5118e
4 changed files with 7 additions and 2 deletions

View File

@ -48,6 +48,7 @@ Item{
basicColor: theme.buttonFocusColor
roundCorners: true
showGlow: root.showGlow
opacity:{
if ( (!vertical && width <= glowFrame.size)

View File

@ -30,6 +30,7 @@ Item{
property bool roundCorners: true
property bool showAttention: false
property bool showGlow: false
property int animation: Math.max(1.65*3*units.longDuration,root.durationTime*3*units.longDuration)
@ -98,7 +99,7 @@ Item{
spread: 0.2
color: smallCircle.color
opacity: root.showBarLine ? 0.25 : 0.45
visible: mimicPlasmaPanel ? false : root.showGlow
visible: mimicPlasmaPanel ? false : glowItem.showGlow
}
}
}

View File

@ -31,6 +31,7 @@ Item{
property bool roundCorners: true
property bool showAttention: false
property bool showGlow: false
property int animation: Math.max(1.65*3*units.longDuration,root.durationTime*3*units.longDuration)
property color attentionColor: colorScopePalette.negativeTextColor // "#ffff1717"
@ -98,7 +99,7 @@ Item{
spread: 0.2
color: glowItem.showAttention ? smallCircleInAttention.color : smallCircle.color
opacity: root.showBarLine ? 0.25 : 0.45
visible: root.showGlow
visible: glowItem.showGlow
}
}
}

View File

@ -66,6 +66,7 @@ Item{
roundCorners: true
showAttention: mainItemContainer.showAttention
showGlow: root.showGlow
opacity: (!mainItemContainer.hasActive && root.showPreviews
&& windowsPreviewDlg.activeItem && (windowsPreviewDlg.activeItem === mainItemContainer)) ? 0.4 : 1
@ -165,6 +166,7 @@ Item{
basicColor: state2Color //mainItemContainer.hasActive ? state2Color : state1Color
roundCorners: true
showGlow: root.showGlow
visible: ( mainItemContainer.isGroupParent && root.dotsOnActive )
|| (mainItemContainer.isGroupParent && !mainItemContainer.hasActive)? true: false