2023-05-04 13:24:18 +00:00
|
|
|
using Gtk 4.0;
|
|
|
|
using Adw 1;
|
|
|
|
|
2023-08-15 21:57:56 +00:00
|
|
|
template $GradienceMonetThemingGroup : Adw.PreferencesGroup {
|
2023-05-04 13:24:18 +00:00
|
|
|
title: _("Monet Engine");
|
2023-06-20 16:34:17 +00:00
|
|
|
description: _("Monet Engine generates a Material You color palette from an image.");
|
2023-05-04 13:24:18 +00:00
|
|
|
|
|
|
|
Adw.ExpanderRow monet-theming-expander {
|
|
|
|
title: _("Monet Engine Options");
|
2023-06-20 16:34:17 +00:00
|
|
|
subtitle: _("Choose an image and modify generated Monet palette");
|
2023-05-04 13:24:18 +00:00
|
|
|
expanded: true;
|
|
|
|
|
|
|
|
[action]
|
|
|
|
Button monet-apply-button {
|
|
|
|
valign: center;
|
|
|
|
label: _("Apply");
|
|
|
|
tooltip-text: _("Apply a palette");
|
2023-08-15 21:57:56 +00:00
|
|
|
clicked => $on_apply_button_clicked();
|
2023-05-04 13:24:18 +00:00
|
|
|
styles ["suggested-action"]
|
|
|
|
}
|
|
|
|
|
|
|
|
Adw.ActionRow file-chooser-row {
|
2024-01-04 00:33:59 +00:00
|
|
|
title: _("Background Image");
|
2023-06-26 18:52:04 +00:00
|
|
|
activatable-widget: file-chooser-button;
|
2023-05-04 13:24:18 +00:00
|
|
|
|
|
|
|
[suffix]
|
|
|
|
Button file-chooser-button {
|
|
|
|
valign: center;
|
2023-08-15 21:57:56 +00:00
|
|
|
clicked => $on_file_chooser_button_clicked();
|
2023-05-04 13:24:18 +00:00
|
|
|
|
|
|
|
Adw.ButtonContent {
|
|
|
|
icon-name: "folder-pictures-symbolic";
|
|
|
|
label: _("Choose a File");
|
|
|
|
use-underline: true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Gtk.FileChooserNative monet-file-chooser {
|
|
|
|
title: _("Choose a Image File");
|
|
|
|
modal: true;
|
|
|
|
//response => on_monet_file_chooser_response();
|
|
|
|
}
|
2023-06-20 16:34:17 +00:00
|
|
|
|