filechooserwidget: Improve grid cell visuals

Use a GtkLabel instead of a GtkInscription to get filenames better
displayed within the available space.
This commit is contained in:
Georges Basile Stavracas Neto
2022-10-26 17:48:00 -03:00
parent 358d9d72d1
commit f0a76f2ca8
2 changed files with 14 additions and 7 deletions

View File

@@ -3591,6 +3591,10 @@ filechooser {
&:selected:active {
background-color: gtkalpha($selected_bg_color, .25);
}
& filethumbnail image {
filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.3));
}
}
}

View File

@@ -731,13 +731,16 @@
</object>
</child>
<child>
<object class="GtkInscription">
<property name="hexpand">1</property>
<property name="yalign">0.0</property>
<property name="xalign">0.5</property>
<property name="min-chars">12</property>
<property name="min-lines">2</property>
<binding name="text">
<object class="GtkLabel">
<property name="lines">3</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="ellipsize">middle</property>
<property name="justify">center</property>
<attributes>
<attribute name="insert-hyphens" value="false"></attribute>
</attributes>
<binding name="label">
<closure type="gchararray" function="column_view_get_file_display_name">
<lookup name="item">GtkListItem</lookup>
</closure>