[gnome-music/wip/mschraal/default-icon-cleanups: 16/25] ui/PlayerToolbar: Use Hdy.Clamp to limit progress size
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/default-icon-cleanups: 16/25] ui/PlayerToolbar: Use Hdy.Clamp to limit progress size
- Date: Fri, 27 Aug 2021 20:46:39 +0000 (UTC)
commit 9bd0122fbe57eeeb7052191e224962ed8f1abcd7
Author: Marinus Schraal <mschraal gnome org>
Date: Wed Aug 25 12:15:08 2021 +0200
ui/PlayerToolbar: Use Hdy.Clamp to limit progress size
data/ui/PlayerToolbar.ui | 78 ++++++++++++++++++++++++++----------------------
1 file changed, 42 insertions(+), 36 deletions(-)
---
diff --git a/data/ui/PlayerToolbar.ui b/data/ui/PlayerToolbar.ui
index 4522b3572..fe73ce709 100644
--- a/data/ui/PlayerToolbar.ui
+++ b/data/ui/PlayerToolbar.ui
@@ -150,46 +150,52 @@
</object>
</child>
<child>
- <object class="GtkBox" id="scale_and_timer">
+ <object class="HdyClamp">
+ <property name="maximum-size">1000</property>
<property name="visible">True</property>
- <property name="orientation">horizontal</property>
- <property name="can_focus">False</property>
- <property name="margin_top">12</property>
<child>
- <object class="GtkLabel" id="_progress_time_label">
+ <object class="GtkBox" id="scale_and_timer">
<property name="visible">True</property>
+ <property name="orientation">horizontal</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>
- <property name="can_focus">True</property>
- <property name="valign">center</property>
- <property name="hexpand">True</property>
- <property name="draw_value">False</property>
- <signal name = "value-changed" handler="_on_progress_value_changed" swapped="no"/>
- <style>
- <class name="smooth-scale"/>
- </style>
- </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>
+ <property name="margin_top">12</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>
+ <property name="can_focus">True</property>
+ <property name="valign">center</property>
+ <property name="hexpand">True</property>
+ <property name="draw_value">False</property>
+ <signal name = "value-changed" handler="_on_progress_value_changed" swapped="no"/>
+ <style>
+ <class name="smooth-scale"/>
+ </style>
+ </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>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]