Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Commit 7d2c082

Browse files
authored
Update UI definitions to Blueprint 0.8.0 syntax (#807)
Updates Blueprint UI definitions to 0.8.0 syntax, to get rid off those deprecation warnings.
2 parents 2751d85 + 0028a15 commit 7d2c082

24 files changed

+53
-53
lines changed

build-aux/flatpak/com.github.GradienceTeam.Gradience.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
{
6464
"type" : "git",
6565
"url" : "https://gitlab.gnome.org/jwestman/blueprint-compiler.git",
66-
"tag" : "v0.8.1"
66+
"tag" : "v0.10.0"
6767
}
6868
]
6969
},

data/ui/app_type_dialog.blp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Gtk 4.0;
22
using Adw 1;
33

4-
template GradienceAppTypeDialog : Adw.MessageDialog {
4+
template $GradienceAppTypeDialog : Adw.MessageDialog {
55
[extra-child]
66
Box {
77
orientation: vertical;

data/ui/builtin_preset_row.blp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Gtk 4.0;
22
using Adw 1;
33

4-
template GradienceBuiltinPresetRow : Adw.ActionRow {
4+
template $GradienceBuiltinPresetRow : Adw.ActionRow {
55
subtitle: _("Made by @GradienceTeam");
66
activatable-widget: apply_button;
77

@@ -10,7 +10,7 @@ template GradienceBuiltinPresetRow : Adw.ActionRow {
1010
valign: center;
1111
icon-name: "checkmark-large-symbolic";
1212
tooltip-text: _("Apply Preset");
13-
clicked => on_apply_button_clicked();
13+
clicked => $on_apply_button_clicked();
1414
styles [
1515
"flat",
1616
]

data/ui/custom_css_group.blp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
using Gtk 4.0;
22
using Adw 1;
33

4-
template GradienceCustomCSSGroup : Adw.PreferencesGroup {
4+
template $GradienceCustomCSSGroup : Adw.PreferencesGroup {
55
title: _("Custom CSS");
66
description: _("Changing this may break some programs. Libadwaita allows applications to hardcode values like padding and margins, and using custom CSS may cause unintended breakage.");
77

88
[header-suffix]
99
DropDown app_type_dropdown {
1010
valign: start;
1111
model: app_type_list;
12-
notify => on_dropdown_notify();
12+
notify => $on_dropdown_notify();
1313
}
1414

1515
ScrolledWindow {
@@ -23,7 +23,7 @@ template GradienceCustomCSSGroup : Adw.PreferencesGroup {
2323
bottom-margin: 10;
2424
monospace: true;
2525
buffer: TextBuffer {
26-
changed => on_custom_css_changed();
26+
changed => $on_custom_css_changed();
2727
};
2828
}
2929
}

data/ui/error_list_row.blp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Gtk 4.0;
22
using Adw 1;
33

4-
template GradienceErrorListRow : ListBoxRow {
4+
template $GradienceErrorListRow : ListBoxRow {
55
Box {
66
orientation: vertical;
77
margin-top: 6;

data/ui/explore_preset_row.blp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Gtk 4.0;
22
using Adw 1;
33

4-
template GradienceExplorePresetRow : Adw.ActionRow {
4+
template $GradienceExplorePresetRow : Adw.ActionRow {
55
activatable-widget: apply_button;
66

77
Box {
@@ -21,7 +21,7 @@ template GradienceExplorePresetRow : Adw.ActionRow {
2121
valign: center;
2222
icon-name: "checkmark-large-symbolic";
2323
tooltip-text: _("Download and Apply");
24-
clicked => on_apply_button_clicked();
24+
clicked => $on_apply_button_clicked();
2525

2626
styles [
2727
"flat",
@@ -32,7 +32,7 @@ template GradienceExplorePresetRow : Adw.ActionRow {
3232
valign: center;
3333
icon-name: "folder-download-symbolic";
3434
tooltip-text: _("Download Only");
35-
clicked => on_download_button_clicked();
35+
clicked => $on_download_button_clicked();
3636

3737
styles [
3838
"flat",

data/ui/log_out_dialog.blp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Gtk 4.0;
22
using Adw 1;
33

4-
template GradienceLogOutDialog : Adw.MessageDialog {
4+
template $GradienceLogOutDialog : Adw.MessageDialog {
55
heading: _("Log out"); // TODO: redundant? how can we not repeat ourselves?
66
body: _("Log out to allow changes to take effect.");
77
}

data/ui/monet_theming_group.blp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Gtk 4.0;
22
using Adw 1;
33

4-
template GradienceMonetThemingGroup : Adw.PreferencesGroup {
4+
template $GradienceMonetThemingGroup : Adw.PreferencesGroup {
55
title: _("Monet Engine");
66
description: _("Monet Engine generates a Material You color palette from an image.");
77

@@ -15,7 +15,7 @@ template GradienceMonetThemingGroup : Adw.PreferencesGroup {
1515
valign: center;
1616
label: _("Apply");
1717
tooltip-text: _("Apply a palette");
18-
clicked => on_apply_button_clicked();
18+
clicked => $on_apply_button_clicked();
1919
styles ["suggested-action"]
2020
}
2121

@@ -26,7 +26,7 @@ template GradienceMonetThemingGroup : Adw.PreferencesGroup {
2626
[suffix]
2727
Button file-chooser-button {
2828
valign: center;
29-
clicked => on_file_chooser_button_clicked();
29+
clicked => $on_file_chooser_button_clicked();
3030

3131
Adw.ButtonContent {
3232
icon-name: "folder-pictures-symbolic";

data/ui/no_plugin_window.blp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Gtk 4.0;
22
using Adw 1;
33

4-
template GradienceNoPluginPrefWindow : Adw.PreferencesWindow {
4+
template $GradienceNoPluginPrefWindow : Adw.PreferencesWindow {
55
title: _("Plugin Preferences");
66
search-enabled: false;
77
default-height: 400;

data/ui/option_row.blp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Gtk 4.0;
22
using Adw 1;
33

4-
template GradienceOptionRow : Adw.ActionRow {
4+
template $GradienceOptionRow : Adw.ActionRow {
55
activatable-widget: color-value;
66

77
[suffix]
@@ -45,7 +45,7 @@ template GradienceOptionRow : Adw.ActionRow {
4545
tooltip-text: _("Show Hex");
4646
styles ["flat"]
4747

48-
toggled => on_text_value_toggled();
48+
toggled => $on_text_value_toggled();
4949
}
5050
}
5151

0 commit comments

Comments
 (0)