sound: Make the panel adaptive
Use a HdyColumn and ellipsize same labels so the panel can fit in narrower windows.
This commit is contained in:
parent
82191ca285
commit
c74d28009c
4 changed files with 21 additions and 15 deletions
|
@ -12,7 +12,9 @@
|
||||||
</attributes>
|
</attributes>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText"/>
|
<object class="GtkCellRendererText">
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
|
</object>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="text">0</attribute>
|
<attribute name="text">0</attribute>
|
||||||
</attributes>
|
</attributes>
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
<object class="GtkLabel" id="label">
|
<object class="GtkLabel" id="label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="wrap">True</property>
|
<property name="wrap">True</property>
|
||||||
|
<property name="wrap_mode">word-char</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
|
@ -8,19 +8,18 @@
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="hscrollbar_policy">never</property>
|
<property name="hscrollbar_policy">never</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox">
|
<object class="HdyColumn">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<child>
|
<property name="maximum_width">600</property>
|
||||||
<object class="GtkBox">
|
<property name="linear_growth_width">400</property>
|
||||||
<property name="visible">True</property>
|
<property name="margin_top">32</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="margin_bottom">32</property>
|
||||||
</object>
|
<property name="margin_start">12</property>
|
||||||
</child>
|
<property name="margin_end">12</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="main_box">
|
<object class="GtkBox" id="main_box">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<property name="margin">32</property>
|
|
||||||
<property name="spacing">12</property>
|
<property name="spacing">12</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<child>
|
<child>
|
||||||
|
@ -90,6 +89,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="output_device_label">
|
<object class="GtkLabel" id="output_device_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="label" translatable="yes">Output Device</property>
|
<property name="label" translatable="yes">Output Device</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -143,6 +143,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="output_configuration_label">
|
<object class="GtkLabel" id="output_configuration_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="label" translatable="yes">Configuration</property>
|
<property name="label" translatable="yes">Configuration</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -175,6 +176,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="output_balance_label">
|
<object class="GtkLabel" id="output_balance_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="label" translatable="yes">Balance</property>
|
<property name="label" translatable="yes">Balance</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -201,6 +203,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="output_fade_label">
|
<object class="GtkLabel" id="output_fade_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="label" translatable="yes">Fade</property>
|
<property name="label" translatable="yes">Fade</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -227,6 +230,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="output_subwoofer_label">
|
<object class="GtkLabel" id="output_subwoofer_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="label" translatable="yes">Subwoofer</property>
|
<property name="label" translatable="yes">Subwoofer</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -275,6 +279,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="input_device_label">
|
<object class="GtkLabel" id="input_device_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="label" translatable="yes">Input Device</property>
|
<property name="label" translatable="yes">Input Device</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -315,6 +320,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="input_configuration_label">
|
<object class="GtkLabel" id="input_configuration_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="label" translatable="yes">Configuration</property>
|
<property name="label" translatable="yes">Configuration</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -347,6 +353,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="input_volume_label">
|
<object class="GtkLabel" id="input_volume_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="label" translatable="yes">Volume</property>
|
<property name="label" translatable="yes">Volume</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -384,12 +391,6 @@
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<object class="GtkBox">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="hexpand">True</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="name_label">
|
<object class="GtkLabel" id="name_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue