[gnome-music/gbsneto/toolbar-improvements: 4/5] playertoolbar: Improve title and artist label styles
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/gbsneto/toolbar-improvements: 4/5] playertoolbar: Improve title and artist label styles
- Date: Fri, 13 Aug 2021 14:25:32 +0000 (UTC)
commit fd3b2434bd8e3294d6495b3094a7bc041a56ea55
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 | 8 ++++----
2 files changed, 4 insertions(+), 13 deletions(-)
---
diff --git a/data/org.gnome.Music.css b/data/org.gnome.Music.css
index 99bca0f24..e1486880f 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 f324f94df..b28d5cd3a 100644
--- a/data/ui/PlayerToolbar.ui
+++ b/data/ui/PlayerToolbar.ui
@@ -63,9 +63,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>
@@ -79,7 +79,7 @@
<property name="width_chars">28</property>
<property name="max_width_chars">28</property>
<style>
- <class name="player-artist-label"/>
+ <class name="dim-label"/>
</style>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]