Codebase list xapp / 2735709
mate-xapp-status-applet.py: Hardcode symbolic icons to 22px. Michael Webster 3 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2323
2424 ICON_SIZE_REDUCTION = 2
2525 VISIBLE_LABEL_MARGIN = 5 # When an icon has a label, add a margin between icon and label
26 SYMBOLIC_ICON_SIZE = 22
2627
2728 statusicon_css_string = """
2829 .statuswidget-horizontal {
139140 self.label.set_margin_start(0)
140141
141142 def set_icon(self, string):
142 size = self.size - ICON_SIZE_REDUCTION
143 if "symbolic" in string:
144 size = SYMBOLIC_ICON_SIZE
145 else:
146 size = self.size - ICON_SIZE_REDUCTION
143147
144148 self.image.set_pixel_size(size)
145149