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:
@@ -54,8 +54,8 @@ class PowerPanel(ScreenPanel):
|
||||
switch.set_hexpand(False)
|
||||
switch.set_active(True if self._screen.printer.get_power_device_status(device) == "on" else False)
|
||||
switch.connect("notify::active", self.on_switch, device)
|
||||
switch.set_property("width-request", 150)
|
||||
switch.set_property("height-request", 80)
|
||||
switch.set_property("width-request", round(self._gtk.get_image_width()*2.5))
|
||||
switch.set_property("height-request", round(self._gtk.get_image_height()*1.25))
|
||||
|
||||
labels = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
labels.add(name)
|
||||
|
Reference in New Issue
Block a user