mirror of
https://github.com/aclist/dztui.git
synced 2026-11-03 16:42:13 +01:00
chore: revert IconButton alignment changes
This commit is contained in:
1 parent
978edc5f5f
commit
4506a0cfda
3 files changed
+20
-12
No files matched your search
@@ -48,10 +48,8 @@ class LargeIcon(Gtk.Image):
|
||||
|
||||
|
||||
class IconButton(Gtk.Button):
|
||||
def __init__(
|
||||
self, icon: str, margin: int = 0, halign: Gtk.Align = Gtk.Align.START
|
||||
) -> None:
|
||||
super().__init__(halign=halign)
|
||||
def __init__(self, icon: str, margin: int = 0) -> None:
|
||||
super().__init__()
|
||||
self.icon = Icon(icon, l_margin=margin)
|
||||
self.set_image(self.icon)
|
||||
self.set_image_position(Gtk.PositionType.RIGHT)
|
||||
@@ -59,10 +57,8 @@ class IconButton(Gtk.Button):
|
||||
|
||||
|
||||
class IconTextButton(IconButton):
|
||||
def __init__(
|
||||
self, icon: str, label: str, halign: Gtk.Align = Gtk.Align.START
|
||||
) -> None:
|
||||
super().__init__(icon, margin=5, halign=halign)
|
||||
def __init__(self, icon: str, label: str) -> None:
|
||||
super().__init__(icon, margin=5)
|
||||
self.set_label(label)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user