fixes badges from applets

--fix for binding loop for applets badges
--dont hide applets number badges on hovering
pull/2/head
Michail Vourlakos 7 years ago
parent 3ea01dfafc
commit e908c1207c

@ -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 /// START Applets Number
Loader{ Loader{
id: appletNumberLoader id: appletNumberLoader
@ -704,29 +727,6 @@ Item{
//END of Applets number //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: { /* onHeightChanged: {
if ((index == 1)|| (index==3)){ 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)); console.log("H: "+index+" ("+zoomScale+"). "+currentLayout.children[1].height+" - "+currentLayout.children[3].height+" - "+(currentLayout.children[1].height+currentLayout.children[3].height));

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

Loading…
Cancel
Save