chore: move ShortHBox to generics
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled

This commit is contained in:
aclist committed 2026-08-12 00:54:14 +09:00
1 parent fc28d419bf
commit 9d8d37e110
2 files changed
+8 -8

No files matched your search

+7
View File
@@ -23,3 +23,10 @@ class HBox(GenericBox):
class VBox(GenericBox):
def __init__(self, spacing: int = 0) -> None:
super().__init__(orientation=Gtk.Orientation.VERTICAL, spacing=spacing)
class ShortHBox(HBox):
def __init__(self, widget: Gtk.Widget) -> None:
super().__init__(spacing=5)
self.set_halign(Gtk.Align.START)
self.pack_start(widget, expand=False, fill=False, padding=0)