mirror of
https://gitlab.gnome.org/julianschacher/top-bar-organizer.git
synced 2025-10-27 15:19:09 +00:00
Refactor: Simplify PrefsPage UI file and get rid of InternalChildren
This commit is contained in:
parent
503fdcb90d
commit
f7309e7f65
@ -6,56 +6,41 @@
|
|||||||
<property name="title">Item Order</property>
|
<property name="title">Item Order</property>
|
||||||
<property name="description">Simply use drag and drop to order the items any way you want.</property>
|
<property name="description">Simply use drag and drop to order the items any way you want.</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="left-box">
|
<object class="GtkLabel">
|
||||||
<property name="orientation">vertical</property>
|
<property name="label">Left Top Bar Box</property>
|
||||||
<child>
|
<property name="halign">start</property>
|
||||||
<object class="GtkLabel">
|
<property name="margin-bottom">12</property>
|
||||||
<property name="label">Left Top Bar Box</property>
|
|
||||||
<property name="halign">start</property>
|
|
||||||
<property name="margin-bottom">12</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="PrefsBoxOrderListBox">
|
|
||||||
<property name="box-order">left-box-order</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="center-box">
|
<object class="PrefsBoxOrderListBox">
|
||||||
<property name="orientation">vertical</property>
|
<property name="box-order">left-box-order</property>
|
||||||
<child>
|
|
||||||
<object class="GtkLabel">
|
|
||||||
<property name="label">Center Top Bar Box</property>
|
|
||||||
<property name="halign">start</property>
|
|
||||||
<property name="margin-top">12</property>
|
|
||||||
<property name="margin-bottom">12</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="PrefsBoxOrderListBox">
|
|
||||||
<property name="box-order">center-box-order</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="right-box">
|
<object class="GtkLabel">
|
||||||
<property name="orientation">vertical</property>
|
<property name="label">Center Top Bar Box</property>
|
||||||
<child>
|
<property name="halign">start</property>
|
||||||
<object class="GtkLabel">
|
<property name="margin-top">12</property>
|
||||||
<property name="label">Right Top Bar Box</property>
|
<property name="margin-bottom">12</property>
|
||||||
<property name="halign">start</property>
|
</object>
|
||||||
<property name="margin-top">12</property>
|
</child>
|
||||||
<property name="margin-bottom">12</property>
|
<child>
|
||||||
</object>
|
<object class="PrefsBoxOrderListBox">
|
||||||
</child>
|
<property name="box-order">center-box-order</property>
|
||||||
<child>
|
</object>
|
||||||
<object class="PrefsBoxOrderListBox">
|
</child>
|
||||||
<property name="box-order">right-box-order</property>
|
<child>
|
||||||
</object>
|
<object class="GtkLabel">
|
||||||
</child>
|
<property name="label">Right Top Bar Box</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="margin-top">12</property>
|
||||||
|
<property name="margin-bottom">12</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="PrefsBoxOrderListBox">
|
||||||
|
<property name="box-order">right-box-order</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
@ -15,12 +15,7 @@ const ScrollManager = Me.imports.prefsModules.ScrollManager;
|
|||||||
|
|
||||||
var PrefsPage = GObject.registerClass({
|
var PrefsPage = GObject.registerClass({
|
||||||
GTypeName: "PrefsPage",
|
GTypeName: "PrefsPage",
|
||||||
Template: Me.dir.get_child("ui").get_child("prefs-page.ui").get_uri(),
|
Template: Me.dir.get_child("ui").get_child("prefs-page.ui").get_uri()
|
||||||
InternalChildren: [
|
|
||||||
"left-box",
|
|
||||||
"center-box",
|
|
||||||
"right-box"
|
|
||||||
]
|
|
||||||
}, class PrefsPage extends Adw.PreferencesPage {
|
}, class PrefsPage extends Adw.PreferencesPage {
|
||||||
constructor(params = {}) {
|
constructor(params = {}) {
|
||||||
super(params);
|
super(params);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user