Various wayland fixes, ghostty, updates etcetera.

This commit is contained in:
Kevin Alberts 2025-07-25 12:36:49 +02:00
parent 5501824875
commit 737800806d
5 changed files with 25 additions and 14 deletions

View file

@ -201,18 +201,18 @@ class DualPaneTextboxBase(base._Widget):
self.changed = False
@expose_command()
def set_font(self, font=base.UNSPECIFIED, fontsize_left=base.UNSPECIFIED, fontsize_right=base.UNSPECIFIED, fontshadow=base.UNSPECIFIED):
def set_font(self, font=None, fontsize_left=0, fontsize_right=0, fontshadow=""):
"""
Change the font used by this widget. If font is None, the current
font is used.
"""
if font is not base.UNSPECIFIED:
if font is not None:
self.font = font
if fontsize_left is not base.UNSPECIFIED:
if fontsize_left != 0:
self.fontsize_left = fontsize_left
if fontsize_right is not base.UNSPECIFIED:
if fontsize_right != 0:
self.fontsize_right = fontsize_right
if fontshadow is not base.UNSPECIFIED:
if fontshadow != "":
self.fontshadow = fontshadow
self.bar.draw()