[gnome-music/wip/jfelder/new-playertoolbar: 6/14] playertoolbar: Split the time in two parts




commit 19daa3c0eddbaf0c7f35786c421bb44d7b6f3c9b
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Jan 28 16:44:59 2021 +0100

    playertoolbar: Split the time in two parts
    
    The progress time label is now displayed before the progress scale and
    the duration is displayed after the progress scale.

 data/ui/PlayerToolbar.ui | 52 ++++++++++++++++--------------------------------
 1 file changed, 17 insertions(+), 35 deletions(-)
---
diff --git a/data/ui/PlayerToolbar.ui b/data/ui/PlayerToolbar.ui
index 24018d444..cff98abc3 100644
--- a/data/ui/PlayerToolbar.ui
+++ b/data/ui/PlayerToolbar.ui
@@ -169,6 +169,18 @@
             <property name="visible">True</property>
             <property name="orientation">horizontal</property>
             <property name="can_focus">False</property>
+            <child>
+              <object class="GtkLabel" id="_progress_time_label">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="halign">start</property>
+                <property name="valign">center</property>
+                <property name="label">0:00</property>
+                <attributes>
+                  <attribute name="font-features" value="tnum=1"/>
+                </attributes>
+              </object>
+            </child>
             <child>
               <object class="SmoothScale" id="_progress_scale">
                 <property name="visible">True</property>
@@ -180,45 +192,15 @@
               </object>
             </child>
             <child>
-              <object class="GtkBox" id="timer">
+              <object class="GtkLabel" id="_duration_label">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="halign">start</property>
                 <property name="valign">center</property>
-                <property name="spacing">6</property>
-                <child>
-                  <object class="GtkLabel" id="_progress_time_label">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="halign">start</property>
-                    <property name="valign">center</property>
-                    <property name="label">0:00</property>
-                    <attributes>
-                      <attribute name="font-features" value="tnum=1"/>
-                    </attributes>
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkLabel" id="separator">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="halign">start</property>
-                    <property name="valign">center</property>
-                    <property name="label">/</property>
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkLabel" id="_duration_label">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="halign">start</property>
-                    <property name="valign">center</property>
-                    <property name="label">0:00</property>
-                    <attributes>
-                      <attribute name="font-features" value="tnum=1"/>
-                    </attributes>
-                  </object>
-                </child>
+                <property name="label">0:00</property>
+                <attributes>
+                  <attribute name="font-features" value="tnum=1"/>
+                </attributes>
               </object>
             </child>
           </object>


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