job_status and splash: fixup image size on ultrawide

This commit is contained in:
alfrix committed 2022-11-02 11:13:16 -03:00
1 parent 79c858ded6
commit 38d006c8a7
2 files changed
+3 -4

No files matched your search

+2 -2
View File
@@ -826,11 +826,11 @@ class JobStatusPanel(ScreenPanel):
def show_file_thumbnail(self):
if self._files.has_thumbnail(self.filename):
if self._screen.vertical_mode:
width = -1
width = self._screen.width * 0.9
height = self._screen.height / 4
else:
width = self._screen.width / 3
height = -1
height = self._gtk.get_content_height() * 0.48
pixbuf = self.get_file_image(self.filename, width, height)
if pixbuf is not None:
self.labels['thumbnail'].set_from_pixbuf(pixbuf)
+1 -2
View File
@@ -20,8 +20,7 @@ class SplashScreenPanel(ScreenPanel):
def initialize(self, panel_name):
image = self._gtk.Image("klipper", self._screen.width / 5, -1)
image = self._gtk.Image("klipper", self._screen.width / 5, self._screen.height * .5)
self.labels['text'] = Gtk.Label(_("Initializing printer..."))
self.labels['text'].set_line_wrap(True)
self.labels['text'].set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)