🔧 Add all and none buttons for adw

This commit is contained in:
Simon Schneegans
2023-08-02 13:48:31 +02:00
parent b21144c45f
commit baa7b678e8
2 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -297,12 +297,12 @@ var PreferencesDialog = class PreferencesDialog {
}
});
this._effectRows.push(row);
row.add_action(previewButton);
row.add_action(button);
} else {
row.add_suffix(previewButton);
row.add_suffix(button);
}
row.add_prefix(button);
row.add_prefix(previewButton);
group.add(row);
@@ -321,9 +321,9 @@ var PreferencesDialog = class PreferencesDialog {
{label: effect.getLabel(), hexpand: true, halign: Gtk.Align.START});
label.get_style_context().add_class('heading');
this.gtkBoxAppend(header, button);
this.gtkBoxAppend(header, label);
this.gtkBoxAppend(header, previewButton);
this.gtkBoxAppend(header, label);
this.gtkBoxAppend(header, button);
this.gtkBoxAppend(container, header);
if (hasPrefs) {
+5 -5
View File
@@ -221,10 +221,10 @@ SPDX-License-Identifier: GPL-3.0-or-later
<property name="margin-bottom">20</property>
<property name="margin-start">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>
<!-- <child type="header-suffix">
<child type="header-suffix">
<object class="GtkBox">
<property name="valign">center</property>
<style>
@@ -233,18 +233,18 @@ SPDX-License-Identifier: GPL-3.0-or-later
<child>
<object class="GtkButton">
<property name="icon-name">bmw-copy-effects-symbolic</property>
<property name="label" translatable="yes">All</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="icon-name">bmw-paste-effects-symbolic</property>
<property name="label" translatable="yes">None</property>
</object>
</child>
</object>
</child> -->
</child>
</object>
</child>
</object>