on xenial help sign in
Merge pull request #439 from ubports/xenial_-_unity8indicatormonitors

IndicatorItem: Workaround for stretched/squished icons

commit80a00d760d40b1a00b2fac2373c144e36825a159 authorFlorian Leeber <florian@ubports.com> dateMon 30 May 2022, 23:20 (4 years ago) parente47230e5479a86
1 file changed+6
qml/Panel/Indicators/IndicatorItem.qml+6
qml/Panel/Indicators/IndicatorItem.qml+6
@@ -117,6 +117,12 @@ IndicatorDelegate {
117117 source: modelData
118118 color: root.color
119119 Behavior on color { ColorAnimation { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing } }
120+
121+ // Workaround indicators getting stretched/squished when (un)plugging external/virtual monitor
122+ onHeightChanged: {
123+ source = ""
124+ source = modelData
125+ }
120126 }
121127 }
122128 }