HACK TO avoid pixelixation in TASKS

pull/5/head
Michail Vourlakos 6 years ago
parent af77263d9a
commit 215d74092f

@ -151,13 +151,14 @@ Item{
anchors.centerIn: parent anchors.centerIn: parent
//! HACK TO AVOID PIXELIZATION
//! WORKAROUND: When the parabolic effect is disabled zoom=1.0 and no //! WORKAROUND: When the parabolic effect is disabled zoom=1.0 and no
//! Shadows are enabled for Items then many task icons look pixelated. //! Shadows are enabled for Items then many task icons look pixelated.
//! I dont know how multiplying the width *1.002 helps the situation //! I dont know how multiplying the width *1.0002 helps the situation
//! but it does. After adding any multipier e.g. *1.002 the pixelated //! but it does. After adding any multipier e.g. *1.0002 the pixelated
//! icons are gone //! icons are gone
width: Math.round(newTempSize)*1.002 width: Math.round(newTempSize) * 1.0002
height: Math.round(width) height: Math.round(width) * 1.0002
source: decoration source: decoration
smooth: root.zoomFactor === 1 ? true : false smooth: root.zoomFactor === 1 ? true : false
providesColors: indicators.info.needsIconColors providesColors: indicators.info.needsIconColors
@ -486,7 +487,11 @@ Item{
//! moved out of badgeVisualsLoader in order to avoid crashes //! moved out of badgeVisualsLoader in order to avoid crashes
//! when the latte view is removed //! when the latte view is removed
Loader { Loader {
anchors.fill: iconImageBuffer //! HACK TO AVOID PIXELIZATION
width: iconImageBuffer.width * 1.0002
height: iconImageBuffer.height * 1.0002
anchors.centerIn: iconImageBuffer
active: badgeVisualsLoader.active active: badgeVisualsLoader.active
sourceComponent: Colorize{ sourceComponent: Colorize{
source: badgeVisualsLoader.item source: badgeVisualsLoader.item
@ -502,7 +507,11 @@ Item{
//! Effects //! Effects
Colorize{ Colorize{
id: stateColorizer id: stateColorizer
anchors.fill: iconImageBuffer //! HACK TO AVOID PIXELIZATION
width: iconImageBuffer.width * 1.0002
height: iconImageBuffer.height * 1.0002
anchors.centerIn: iconImageBuffer
source: badgesLoader.active ? badgesLoader : iconImageBuffer source: badgesLoader.active ? badgesLoader : iconImageBuffer
visible: !isSeparator visible: !isSeparator
@ -515,7 +524,11 @@ Item{
BrightnessContrast{ BrightnessContrast{
id:hoveredImage id:hoveredImage
anchors.fill: iconImageBuffer //! HACK TO AVOID PIXELIZATION
width: iconImageBuffer.width * 1.0002
height: iconImageBuffer.height * 1.0002
anchors.centerIn: iconImageBuffer
source: badgesLoader.active ? badgesLoader : iconImageBuffer source: badgesLoader.active ? badgesLoader : iconImageBuffer
visible: !isSeparator visible: !isSeparator
@ -530,7 +543,11 @@ Item{
BrightnessContrast { BrightnessContrast {
id: brightnessTaskEffect id: brightnessTaskEffect
anchors.fill: iconImageBuffer //! HACK TO AVOID PIXELIZATION
width: iconImageBuffer.width * 1.0002
height: iconImageBuffer.height * 1.0002
anchors.centerIn: iconImageBuffer
source: badgesLoader.active ? badgesLoader : iconImageBuffer source: badgesLoader.active ? badgesLoader : iconImageBuffer
visible: clickedAnimation.running && !isSeparator visible: clickedAnimation.running && !isSeparator

Loading…
Cancel
Save