job_status and splash: fixup image size on ultrawide

This commit is contained in:
alfrix 2022-11-01 20:34:23 -03:00
parent 79c858ded6
commit 38d006c8a7
2 changed files with 3 additions and 4 deletions

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)

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)