[gnome-music/gbsneto/toolbar-improvements: 14/15] playertoolbar: Improve title and artist label styles




commit 31abed9b71de0490e6921d7850ec190f18fcd17e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Aug 13 10:53:48 2021 -0300

    playertoolbar: Improve title and artist label styles
    
    In the mockup, the artist name is has the same font size of the song
    title. Use attributes and cleanup the CSS stylesheet a bit.

 data/org.gnome.Music.css | 9 ---------
 data/ui/PlayerToolbar.ui | 9 +++------
 2 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/data/org.gnome.Music.css b/data/org.gnome.Music.css
index 058a3ff8c..18c01ddaf 100644
--- a/data/org.gnome.Music.css
+++ b/data/org.gnome.Music.css
@@ -34,15 +34,6 @@ box#ArtistAlbumsWidget .artist-label {
 }
 
 /* PlayerToolbar */
-.player-title-label {
-    font-weight: bold;
-    font-size: smaller;
-}
-
-.player-artist-label {
-    font-size: smaller;
-}
-
 .border-solid {
     border-style: solid;
 }
diff --git a/data/ui/PlayerToolbar.ui b/data/ui/PlayerToolbar.ui
index 8987c1caa..2ffccdc4c 100644
--- a/data/ui/PlayerToolbar.ui
+++ b/data/ui/PlayerToolbar.ui
@@ -61,9 +61,9 @@
                 <property name="ellipsize">middle</property>
                 <property name="width_chars">28</property>
                 <property name="max_width_chars">28</property>
-                <style>
-                  <class name="player-title-label"/>
-                </style>
+                <attributes>
+                  <attribute name="weight" value="bold" />
+                </attributes>
               </object>
             </child>
             <child>
@@ -76,9 +76,6 @@
                 <property name="ellipsize">middle</property>
                 <property name="width_chars">28</property>
                 <property name="max_width_chars">28</property>
-                <style>
-                  <class name="player-artist-label"/>
-                </style>
               </object>
             </child>
           </object>


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