[gnome-music/wip/jfelder/searchview-new-style: 5/7] searchview: Add search results headers



commit ba31c561550ac36d44cfe7aa35c3a7a89f2178d6
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Aug 1 00:24:27 2019 +0200

    searchview: Add search results headers

 data/org.gnome.Music.css |  5 +++++
 data/ui/SearchView.ui    | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)
---
diff --git a/data/org.gnome.Music.css b/data/org.gnome.Music.css
index dd4e166e..72bc50aa 100644
--- a/data/org.gnome.Music.css
+++ b/data/org.gnome.Music.css
@@ -155,3 +155,8 @@ padding: 0px;
 .playlistdialog-row:selected label {
     color: @theme_text_color;
 }
+
+/* SearchView */
+.search-header {
+  font-weight: bold;
+}
diff --git a/data/ui/SearchView.ui b/data/ui/SearchView.ui
index a919f25e..8f5e8bb3 100644
--- a/data/ui/SearchView.ui
+++ b/data/ui/SearchView.ui
@@ -11,11 +11,37 @@
           <object class="GtkBox" id="container">
             <property name="orientation">vertical</property>
             <property name="visible">True</property>
+            <child>
+              <object class="GtkLabel" id="artist_label">
+                <property name="halign">start</property>
+                <property name="hexpand">True</property>
+                <property name="label" translatable="yes">Artists</property>
+                <property name="margin-bottom">12</property>
+                <property name="margin-top">12</property>
+                <property name="visible">True</property>
+                <style>
+                  <class name="search-header"/>
+                </style>
+              </object>
+            </child>
             <child>
               <object class="GtkFlowBox" id="_artist_listbox">
                 <property name="visible">True</property>
               </object>
             </child>
+            <child>
+              <object class="GtkLabel" id="album_label">
+                <property name="halign">start</property>
+                <property name="hexpand">True</property>
+                <property name="label" translatable="yes">Albums</property>
+                <property name="margin-bottom">12</property>
+                <property name="margin-top">12</property>
+                <property name="visible">True</property>
+                <style>
+                  <class name="search-header"/>
+                </style>
+              </object>
+            </child>
             <child>
               <object class="GtkFlowBox" id="_album_flowbox">
                 <property name="halign">fill</property>
@@ -35,6 +61,19 @@
                 </style>
               </object>
             </child>
+            <child>
+              <object class="GtkLabel" id="songs_label">
+                <property name="halign">start</property>
+                <property name="hexpand">True</property>
+                <property name="label" translatable="yes">Songs</property>
+                <property name="margin-bottom">12</property>
+                <property name="margin-top">12</property>
+                <property name="visible">True</property>
+                <style>
+                  <class name="search-header"/>
+                </style>
+              </object>
+            </child>
             <child>
               <object class="GtkListBox" id="_songs_listbox">
                 <property name="visible">True</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]