1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-24 17:33:50 +03:00

fixes badges from applets

--fix for binding loop for applets badges
--dont hide applets number badges on hovering
This commit is contained in:
Michail Vourlakos 2018-07-23 20:17:44 +03:00
parent 3ea01dfafc
commit e908c1207c
2 changed files with 24 additions and 24 deletions

View File

@ -590,6 +590,29 @@ Item{
}
}
BrightnessContrast{
id:hoveredImage
anchors.fill: _wrapperContainer
source: _wrapperContainer
enabled: opacity != 0 ? true : false
opacity: appletMouseArea.containsMouse ? 1 : 0
brightness: 0.25
contrast: 0.15
Behavior on opacity {
NumberAnimation { duration: root.durationTime*units.longDuration }
}
}
BrightnessContrast {
id: _clickedEffect
anchors.fill: _wrapperContainer
source: _wrapperContainer
visible: clickedAnimation.running
}
/// START Applets Number
Loader{
id: appletNumberLoader
@ -704,29 +727,6 @@ Item{
//END of Applets number
BrightnessContrast{
id:hoveredImage
anchors.fill: _wrapperContainer
source: _wrapperContainer
enabled: opacity != 0 ? true : false
opacity: appletMouseArea.containsMouse ? 1 : 0
brightness: 0.25
contrast: 0.15
Behavior on opacity {
NumberAnimation { duration: root.durationTime*units.longDuration }
}
}
BrightnessContrast {
id: _clickedEffect
anchors.fill: _wrapperContainer
source: _wrapperContainer
visible: clickedAnimation.running
}
/* onHeightChanged: {
if ((index == 1)|| (index==3)){
console.log("H: "+index+" ("+zoomScale+"). "+currentLayout.children[1].height+" - "+currentLayout.children[3].height+" - "+(currentLayout.children[1].height+currentLayout.children[3].height));

View File

@ -136,7 +136,7 @@ Rectangle {
return "";
}
font.pixelSize: 0.55 * parent.height
font.pixelSize: Math.max(0.55 * parent.minimumWidth, theme.defaultFont.pixelSize)
font.bold: true
color: textWithBackgroundColor ? theme.backgroundColor : theme.textColor
visible: showNumber || showText