feat: preconnect dialog fields (WIP)

This commit is contained in:
aclist committed 2026-05-05 21:40:04 +09:00
1 parent dcbc1fa716
commit 5f8795acf7
7 files changed
+144 -82

No files matched your search

+11
View File
@@ -21,3 +21,14 @@ class LeftLabel(Gtk.Label):
halign=Gtk.Align.START,
)
self.set_tooltip_text(tooltip)
class IconLabel(Gtk.Box):
def __init__(self, text: str, label: str) -> None:
super().__init__(
orientation=Gtk.Orientation.HORIZONTAL, spacing=10, margin_start=10
)
self.label = Gtk.Label(label=text, halign=Gtk.Align.START, margin_bottom=2)
self.icon = Gtk.Image.new_from_icon_name(label, Gtk.IconSize.BUTTON)
for el in self.icon, self.label:
self.add(el)