job_status and splash: fixup image size on ultrawide
This commit is contained in:
parent
79c858ded6
commit
38d006c8a7
@ -826,11 +826,11 @@ class JobStatusPanel(ScreenPanel):
|
|||||||
def show_file_thumbnail(self):
|
def show_file_thumbnail(self):
|
||||||
if self._files.has_thumbnail(self.filename):
|
if self._files.has_thumbnail(self.filename):
|
||||||
if self._screen.vertical_mode:
|
if self._screen.vertical_mode:
|
||||||
width = -1
|
width = self._screen.width * 0.9
|
||||||
height = self._screen.height / 4
|
height = self._screen.height / 4
|
||||||
else:
|
else:
|
||||||
width = self._screen.width / 3
|
width = self._screen.width / 3
|
||||||
height = -1
|
height = self._gtk.get_content_height() * 0.48
|
||||||
pixbuf = self.get_file_image(self.filename, width, height)
|
pixbuf = self.get_file_image(self.filename, width, height)
|
||||||
if pixbuf is not None:
|
if pixbuf is not None:
|
||||||
self.labels['thumbnail'].set_from_pixbuf(pixbuf)
|
self.labels['thumbnail'].set_from_pixbuf(pixbuf)
|
||||||
|
@ -20,8 +20,7 @@ class SplashScreenPanel(ScreenPanel):
|
|||||||
|
|
||||||
def initialize(self, panel_name):
|
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'] = Gtk.Label(_("Initializing printer..."))
|
||||||
self.labels['text'].set_line_wrap(True)
|
self.labels['text'].set_line_wrap(True)
|
||||||
self.labels['text'].set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
self.labels['text'].set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user