🔧 Add all and none buttons for adw
This commit is contained in:
@@ -297,12 +297,12 @@ var PreferencesDialog = class PreferencesDialog {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
this._effectRows.push(row);
|
this._effectRows.push(row);
|
||||||
row.add_action(previewButton);
|
row.add_action(button);
|
||||||
} else {
|
} else {
|
||||||
row.add_suffix(previewButton);
|
row.add_suffix(button);
|
||||||
}
|
}
|
||||||
|
|
||||||
row.add_prefix(button);
|
row.add_prefix(previewButton);
|
||||||
|
|
||||||
group.add(row);
|
group.add(row);
|
||||||
|
|
||||||
@@ -321,9 +321,9 @@ var PreferencesDialog = class PreferencesDialog {
|
|||||||
{label: effect.getLabel(), hexpand: true, halign: Gtk.Align.START});
|
{label: effect.getLabel(), hexpand: true, halign: Gtk.Align.START});
|
||||||
label.get_style_context().add_class('heading');
|
label.get_style_context().add_class('heading');
|
||||||
|
|
||||||
this.gtkBoxAppend(header, button);
|
|
||||||
this.gtkBoxAppend(header, label);
|
|
||||||
this.gtkBoxAppend(header, previewButton);
|
this.gtkBoxAppend(header, previewButton);
|
||||||
|
this.gtkBoxAppend(header, label);
|
||||||
|
this.gtkBoxAppend(header, button);
|
||||||
this.gtkBoxAppend(container, header);
|
this.gtkBoxAppend(container, header);
|
||||||
|
|
||||||
if (hasPrefs) {
|
if (hasPrefs) {
|
||||||
|
|||||||
@@ -221,10 +221,10 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||||||
<property name="margin-bottom">20</property>
|
<property name="margin-bottom">20</property>
|
||||||
<property name="margin-start">20</property>
|
<property name="margin-start">20</property>
|
||||||
<property name="margin-end">20</property>
|
<property name="margin-end">20</property>
|
||||||
<property name="title" translatable="yes">Effect Settings</property>
|
<property name="title" translatable="yes">Choose Effects</property>
|
||||||
<property name="description" translatable="yes">If multiple are selected, one is chosen randomly.</property>
|
<property name="description" translatable="yes">If multiple are selected, one is chosen randomly.</property>
|
||||||
|
|
||||||
<!-- <child type="header-suffix">
|
<child type="header-suffix">
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<property name="valign">center</property>
|
<property name="valign">center</property>
|
||||||
<style>
|
<style>
|
||||||
@@ -233,18 +233,18 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||||||
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton">
|
<object class="GtkButton">
|
||||||
<property name="icon-name">bmw-copy-effects-symbolic</property>
|
<property name="label" translatable="yes">All</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton">
|
<object class="GtkButton">
|
||||||
<property name="icon-name">bmw-paste-effects-symbolic</property>
|
<property name="label" translatable="yes">None</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
</object>
|
</object>
|
||||||
</child> -->
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
Reference in New Issue
Block a user