Skip to content
Snippets Groups Projects
Commit 2bc9f743 authored by Dicson's avatar Dicson
Browse files

Fix ugly statusicon in MATE desktop.Set statusicon_size to 16 if MATE session detected.

parent f4a79d88
No related branches found
No related tags found
No related merge requests found
......@@ -118,13 +118,16 @@ class StatusIcon:
def on_status_icon_size_changed(self, statusicon, size):
if size > 31:
self.statusicon_size = '32'
elif size > 23:
elif size > 23:
self.statusicon_size = '24'
else:
self.statusicon_size = '16'
if os.environ.get('KDE_FULL_SESSION') == 'true':
# detect KDE session. see #5476
self.statusicon_size = '32'
if os.environ.get('MATE_DESKTOP_SESSION_ID'):
# detect MATE session.
self.statusicon_size = '16'
self.set_img()
def set_img(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment