layout: fix indent when using word_char wrap
This commit is contained in:
@@ -210,7 +210,7 @@ class ScreenPanel:
|
|||||||
return
|
return
|
||||||
name = Gtk.Label(
|
name = Gtk.Label(
|
||||||
hexpand=True, vexpand=True, halign=Gtk.Align.START, valign=Gtk.Align.CENTER,
|
hexpand=True, vexpand=True, halign=Gtk.Align.START, valign=Gtk.Align.CENTER,
|
||||||
wrap=True, wrap_mode=Pango.WrapMode.CHAR)
|
wrap=True, wrap_mode=Pango.WrapMode.WORD_CHAR, xalign=0)
|
||||||
name.set_markup(f"<big><b>{option['name']}</b></big>")
|
name.set_markup(f"<big><b>{option['name']}</b></big>")
|
||||||
|
|
||||||
labels = Gtk.Box(spacing=0, orientation=Gtk.Orientation.VERTICAL, valign=Gtk.Align.CENTER)
|
labels = Gtk.Box(spacing=0, orientation=Gtk.Orientation.VERTICAL, valign=Gtk.Align.CENTER)
|
||||||
@@ -219,7 +219,7 @@ class ScreenPanel:
|
|||||||
tooltip = Gtk.Label(
|
tooltip = Gtk.Label(
|
||||||
label=option['tooltip'],
|
label=option['tooltip'],
|
||||||
hexpand=True, vexpand=True, halign=Gtk.Align.START, valign=Gtk.Align.CENTER,
|
hexpand=True, vexpand=True, halign=Gtk.Align.START, valign=Gtk.Align.CENTER,
|
||||||
wrap=True, wrap_mode=Pango.WrapMode.CHAR)
|
wrap=True, wrap_mode=Pango.WrapMode.WORD_CHAR, xalign=0)
|
||||||
labels.add(tooltip)
|
labels.add(tooltip)
|
||||||
|
|
||||||
row_box = Gtk.Box(spacing=5, valign=Gtk.Align.CENTER, hexpand=True, vexpand=False)
|
row_box = Gtk.Box(spacing=5, valign=Gtk.Align.CENTER, hexpand=True, vexpand=False)
|
||||||
|
@@ -143,7 +143,10 @@ class Panel(ScreenPanel):
|
|||||||
if self.list_mode:
|
if self.list_mode:
|
||||||
label = Gtk.Label(label=basename, hexpand=True, vexpand=False)
|
label = Gtk.Label(label=basename, hexpand=True, vexpand=False)
|
||||||
format_label(label)
|
format_label(label)
|
||||||
info = Gtk.Label(hexpand=True, halign=Gtk.Align.START, wrap=True, wrap_mode=Pango.WrapMode.WORD_CHAR)
|
info = Gtk.Label(
|
||||||
|
hexpand=True, halign=Gtk.Align.START, xalign=0,
|
||||||
|
wrap=True, wrap_mode=Pango.WrapMode.WORD_CHAR,
|
||||||
|
)
|
||||||
info.get_style_context().add_class("print-info")
|
info.get_style_context().add_class("print-info")
|
||||||
info.set_markup(self.get_info_str(item, path))
|
info.set_markup(self.get_info_str(item, path))
|
||||||
delete = Gtk.Button(hexpand=False, vexpand=False, can_focus=False, always_show_image=True)
|
delete = Gtk.Button(hexpand=False, vexpand=False, can_focus=False, always_show_image=True)
|
||||||
|
Reference in New Issue
Block a user