mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-11 16:53:51 +01:00
Refactor: Move UI files and gschema file to more standard locations
This commit is contained in:
parent
ddd0297868
commit
7ed9329f2d
10 changed files with 6 additions and 8 deletions
|
|
@ -1,28 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="PrefsBoxOrderItemRow" parent="AdwActionRow">
|
||||
<child type="prefix">
|
||||
<object class="GtkLabel" id="item-name-display-label">
|
||||
<property name="halign">start</property>
|
||||
<property name="hexpand">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="prefix">
|
||||
<object class="GtkImage">
|
||||
<property name="icon-name">list-drag-handle-symbolic</property>
|
||||
<style>
|
||||
<class name="drag-handle"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
<child type="suffix">
|
||||
<object class="GtkMenuButton" id="menu-button">
|
||||
<property name="valign">center</property>
|
||||
<property name="icon-name">view-more-symbolic</property>
|
||||
<style>
|
||||
<class name="flat"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="PrefsBoxOrderListBox" parent="GtkListBox">
|
||||
<property name="selection-mode">none</property>
|
||||
<property name="show-separators">True</property>
|
||||
<style>
|
||||
<class name="boxed-list"/>
|
||||
</style>
|
||||
</template>
|
||||
</interface>
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="PrefsBoxOrderListEmptyPlaceholder" parent="GtkBox">
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="spacing">10</property>
|
||||
<property name="margin-top">10</property>
|
||||
<property name="margin-bottom">10</property>
|
||||
<property name="margin-start">10</property>
|
||||
<property name="margin-end">10</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Drop items onto here to add them to this box.</property>
|
||||
<property name="halign">start</property>
|
||||
<style>
|
||||
<class name="dim-label"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="PrefsPage" parent="AdwPreferencesPage">
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title">Item Order</property>
|
||||
<property name="description">Simply use drag and drop to order the items any way you want.</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="left-box">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Left Top Bar Box</property>
|
||||
<property name="halign">start</property>
|
||||
<property name="margin-bottom">12</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox" id="center-box">
|
||||
<property name="orientation">vertical</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>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox" id="right-box">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<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>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
|
|
@ -15,7 +15,7 @@ const ScrollManager = Me.imports.prefsModules.ScrollManager;
|
|||
|
||||
var PrefsPage = GObject.registerClass({
|
||||
GTypeName: "PrefsPage",
|
||||
Template: Me.dir.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",
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ const Me = ExtensionUtils.getCurrentExtension();
|
|||
|
||||
var PrefsBoxOrderItemRow = GObject.registerClass({
|
||||
GTypeName: "PrefsBoxOrderItemRow",
|
||||
Template: Me.dir.get_child("prefs-box-order-item-row.ui").get_uri(),
|
||||
Template: Me.dir.get_child("ui").get_child("prefs-box-order-item-row.ui").get_uri(),
|
||||
InternalChildren: [
|
||||
"item-name-display-label",
|
||||
"menu-button"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ const Me = ExtensionUtils.getCurrentExtension();
|
|||
|
||||
var PrefsBoxOrderListBox = GObject.registerClass({
|
||||
GTypeName: "PrefsBoxOrderListBox",
|
||||
Template: Me.dir.get_child("prefs-box-order-list-box.ui").get_uri()
|
||||
Template: Me.dir.get_child("ui").get_child("prefs-box-order-list-box.ui").get_uri()
|
||||
}, class PrefsBoxOrderListBox extends Gtk.ListBox {
|
||||
/**
|
||||
* @param {Object} params
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const Me = ExtensionUtils.getCurrentExtension();
|
|||
|
||||
var PrefsBoxOrderListEmptyPlaceholder = GObject.registerClass({
|
||||
GTypeName: "PrefsBoxOrderListEmptyPlaceholder",
|
||||
Template: Me.dir.get_child("prefs-box-order-list-empty-placeholder.ui").get_uri()
|
||||
Template: Me.dir.get_child("ui").get_child("prefs-box-order-list-empty-placeholder.ui").get_uri()
|
||||
}, class PrefsBoxOrderListEmptyPlaceholder extends Gtk.Box {
|
||||
_init(params = {}) {
|
||||
super._init(params);
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schemalist>
|
||||
<schema id="org.gnome.shell.extensions.top-bar-organizer" path="/org/gnome/shell/extensions/top-bar-organizer/">
|
||||
<key name="left-box-order" type="as">
|
||||
<description>Order of items in the left box of the top bar.</description>
|
||||
<default>[]</default>
|
||||
</key>
|
||||
<key name="center-box-order" type="as">
|
||||
<description>Order of items in the center box of the top bar.</description>
|
||||
<default>[]</default>
|
||||
</key>
|
||||
<key name="right-box-order" type="as">
|
||||
<description>Order of items in the right box of the top bar.</description>
|
||||
<default>[]</default>
|
||||
</key>
|
||||
</schema>
|
||||
</schemalist>
|
||||
Loading…
Add table
Add a link
Reference in a new issue