Skip to content

Commit

Permalink
more song style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
xou816 committed Mar 4, 2021
1 parent 0c7cb03 commit b891440
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 31 deletions.
11 changes: 7 additions & 4 deletions src/app/components/playlist/song.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
.song .song__index {
font-size: 11px;
font-size: 12px;
margin: 4px 12px;
padding: 0;
}

.song label.song__title {
font-size: 16px;
}

.song--playing label.song__title {
.song--playing label.song__title, .song--playing label.song__index {
font-weight: bold;
color: @theme_selected_bg_color;
}

.song--playing label.song__title, .song--playing label.song__artist, .song--playing label.song__index {
.song--playing label.song__artist {
color: @theme_selected_bg_color;
}

.song label.song__artist {
font-size: 14px;
font-size: 12px;
}

.song label.song__duration {
Expand Down
66 changes: 39 additions & 27 deletions src/app/components/playlist/song.ui
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<object class="GtkLabel" id="song_index">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-start">8</property>
<property name="label" translatable="yes">1</property>
<style>
<class name="song__index"/>
Expand All @@ -29,16 +28,47 @@
</packing>
</child>
<child>
<object class="GtkLabel" id="song_title">
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Title</property>
<property name="ellipsize">middle</property>
<property name="max-width-chars">50</property>
<property name="xalign">0</property>
<style>
<class name="song__title"/>
</style>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkLabel" id="song_title">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Title</property>
<property name="ellipsize">middle</property>
<property name="max-width-chars">50</property>
<property name="xalign">0</property>
<style>
<class name="song__title"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="song_artist">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Artist</property>
<property name="ellipsize">middle</property>
<property name="max-width-chars">35</property>
<property name="xalign">0</property>
<style>
<class name="song__artist"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
Expand Down Expand Up @@ -71,24 +101,6 @@
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="song_artist">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Artist</property>
<property name="ellipsize">middle</property>
<property name="max-width-chars">35</property>
<property name="xalign">0</property>
<style>
<class name="song__artist"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="song_length">
<property name="visible">True</property>
Expand Down

0 comments on commit b891440

Please sign in to comment.