fix bug with title when scrolling

make bluetooth ui more in line with wifi
This commit is contained in:
takotori 2023-11-02 11:47:46 +01:00
parent ee3ee7010e
commit 538b14c9f8
2 changed files with 62 additions and 50 deletions

View file

@ -9,38 +9,52 @@
<property name="valign">start</property> <property name="valign">start</property>
<property name="width-request">400</property> <property name="width-request">400</property>
<child> <child>
<object class="GtkBox"> <object class="GtkListBox" id="resetBluetoothDetails">
<property name="margin-bottom">5</property> <property name="margin-bottom">10</property>
<property name="show-separators">True</property>
<property name="valign">start</property>
<child> <child>
<object class="GtkLabel"> <object class="GtkListBoxRow" id="resetBluetoothSwitchRow">
<property name="label">Bluetooth</property> <property name="selectable">False</property>
</object> <child>
</child> <object class="GtkBox">
<child> <property name="height-request">40</property>
<object class="GtkSwitch" id="resetBluetoothSwitch"> <child>
<property name="halign">end</property> <object class="GtkLabel">
<property name="hexpand">True</property> <property name="label">Bluetooth</property>
<property name="valign">end</property> <property name="margin-start">5</property>
</object>
</child>
<child>
<object class="GtkSwitch" id="resetBluetoothSwitch">
<property name="active">True</property>
<property name="halign">end</property>
<property name="hexpand">True</property>
<property name="margin-end">5</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
</object> </object>
</child> </child>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkScrolledWindow"> <object class="GtkBox">
<property name="propagate-natural-height">True</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkViewport"> <object class="GtkLabel">
<property name="halign">start</property>
<property name="justify">right</property>
<property name="label">Available device</property>
</object>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="propagate-natural-height">True</property>
<child> <child>
<object class="GtkBox"> <object class="GtkViewport">
<property name="orientation">vertical</property>
<property name="valign">start</property>
<child>
<object class="GtkLabel">
<property name="halign">start</property>
<property name="justify">right</property>
<property name="label">Available device</property>
</object>
</child>
<child> <child>
<object class="GtkListBox" id="resetBluetoothAvailableDevices"> <object class="GtkListBox" id="resetBluetoothAvailableDevices">
<property name="show-separators">True</property> <property name="show-separators">True</property>
@ -54,22 +68,21 @@
</object> </object>
</child> </child>
<child> <child>
<object class="GtkScrolledWindow"> <object class="GtkBox">
<property name="margin-top">10</property> <property name="margin-top">10</property>
<property name="propagate-natural-height">True</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkViewport"> <object class="GtkLabel">
<property name="halign">start</property>
<property name="justify">right</property>
<property name="label">Connected devices</property>
</object>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="propagate-natural-height">True</property>
<child> <child>
<object class="GtkBox"> <object class="GtkViewport">
<property name="orientation">vertical</property>
<property name="valign">start</property>
<child>
<object class="GtkLabel">
<property name="halign">start</property>
<property name="justify">right</property>
<property name="label">Connected devices</property>
</object>
</child>
<child> <child>
<object class="GtkListBox" id="resetBluetoothConnectedDevices"> <object class="GtkListBox" id="resetBluetoothConnectedDevices">
<property name="show-separators">True</property> <property name="show-separators">True</property>

View file

@ -65,21 +65,20 @@
</object> </object>
</child> </child>
<child> <child>
<object class="GtkScrolledWindow"> <object class="GtkBox">
<property name="propagate-natural-height">True</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkViewport"> <object class="GtkLabel">
<property name="halign">start</property>
<property name="justify">right</property>
<property name="label">Available networks</property>
</object>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="propagate-natural-height">True</property>
<child> <child>
<object class="GtkBox"> <object class="GtkViewport">
<property name="orientation">vertical</property>
<property name="valign">start</property>
<child>
<object class="GtkLabel">
<property name="halign">start</property>
<property name="justify">right</property>
<property name="label">Available networks</property>
</object>
</child>
<child> <child>
<object class="GtkListBox" id="resetWifiList"> <object class="GtkListBox" id="resetWifiList">
<property name="show-separators">True</property> <property name="show-separators">True</property>