[gnome-music/wip/mschraal/default-icon-cleanups: 17/24] 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: 17/24] ui/PlayerToolbar: Use Hdy.Clamp to limit progress size
- Date: Thu, 26 Aug 2021 23:57:26 +0000 (UTC)
commit 866b27b0d460ab209eb123c10201c00a4db5d208
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]