mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-10 16:26:35 +01:00
feature: add settings UI for control. how to affect an items visibility
Add settings UI for controlling how the extension should affect a top bar items visibility (whether to try to forcefully hide or show an item or not affect its visibility at all).
This commit is contained in:
parent
0d51b81041
commit
fdbacdd683
4 changed files with 112 additions and 0 deletions
38
data/ui/prefs-box-order-item-options-dialog.ui
Normal file
38
data/ui/prefs-box-order-item-options-dialog.ui
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="PrefsBoxOrderItemOptionsDialog" parent="AdwDialog">
|
||||
<!-- Same as the default-width of AdwPreferencesWindow.-->
|
||||
<property name="content-width">640</property>
|
||||
<child>
|
||||
<object class="AdwToolbarView">
|
||||
<child type="top">
|
||||
<object class="AdwHeaderBar"></object>
|
||||
</child>
|
||||
<property name="content">
|
||||
<object class="AdwPreferencesPage">
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwComboRow" id="visibility-row">
|
||||
<property name="title">Visibility</property>
|
||||
<property name="subtitle">Forcefully hide or show an item or just don't affect its visibility. This option applies every time the top bar gets reordered, an items visiblity might be influenced by other factors and this option might not work for every item.</property>
|
||||
<property name="model">
|
||||
<object class="GtkStringList">
|
||||
<items>
|
||||
<item>Default</item>
|
||||
<item>Forcefully Hide</item>
|
||||
<item>Forcefully Show</item>
|
||||
</items>
|
||||
</object>
|
||||
</property>
|
||||
<signal name="notify::selected-item" handler="onVisibilityRowSelectionChanged"/>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
|
|
@ -46,6 +46,12 @@
|
|||
<attribute name="action">row.move-down</attribute>
|
||||
</item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label">Options</attribute>
|
||||
<attribute name="action">row.options</attribute>
|
||||
</item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label">Forget</attribute>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue