blob: 69bc5aad3b8f2c795c96904099f0f69c75428b3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From 6091a31f4cb8732252279e802c8ec9f1c3891b38 Mon Sep 17 00:00:00 2001
From: Romeo Calota <kicsyromy@gmail.com>
Date: Mon, 25 Dec 2017 15:20:25 +0200
Subject: [PATCH] Issue #110: Fix icons vertically stretched
---
appIndicator.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/appIndicator.js b/appIndicator.js
index fe629c2..46f01eb 100644
--- a/appIndicator.js
+++ b/appIndicator.js
@@ -227,7 +227,7 @@ var IconActor = new Lang.Class({
this.height = icon_size * scale_factor
this._indicator = indicator
- this._iconSize = icon_size * scale_factor
+ this._iconSize = icon_size
this._iconCache = new IconCache.IconCache()
this._mainIcon = new St.Bin()
@@ -335,6 +335,8 @@ var IconActor = new Lang.Class({
},
_createIconFromPixmap: function(iconSize, iconPixmapArray) {
+ let scale_factor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
+ iconSize = iconSize * scale_factor
// the pixmap actually is an array of pixmaps with different sizes
// we use the one that is smaller or equal the iconSize
|