UI scaling (#28)

* Initial UI scaling commit

* temperature: updates to styling

* screen: fix dialog creation

* bed_level: scale images

* job_status: updates to scaling
This commit is contained in:
jordanruthe
2020-12-07 15:44:03 -05:00
committed by GitHub
parent ea465b0f4d
commit 238badb110
24 changed files with 518 additions and 547 deletions

View File

@@ -3,12 +3,10 @@ import logging
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk, GLib
from ks_includes.KlippyGtk import KlippyGtk
from ks_includes.screen_panel import ScreenPanel
from jinja2 import Template
from ks_includes.screen_panel import ScreenPanel
logger = logging.getLogger("KlipperScreen.MenuPanel")
def create_panel(*args):
@@ -59,7 +57,7 @@ class MenuPanel(ScreenPanel):
for i in range(len(self.items)):
key = list(self.items[i])[0]
item = self.items[i][key]
b = KlippyGtk.ButtonImage(
b = self._gtk.ButtonImage(
item['icon'], item['name'], "color"+str((i%4)+1)
)
if item['panel'] != False: