mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-07 01:47:53 +00:00
e412a2c537
Signed-off-by: tfuxu <73042332+tfuxu@users.noreply.github.com> Co-authored-by: 0xMRTT <0xMRTT@evta.fr> Co-authored-by: 0xMRTT <0xMRTT@proton.me> Co-authored-by: daudix-UFO <ddaudix@gmail.com>
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template GradienceMonetThemingGroup : Adw.PreferencesGroup {
|
|
title: _("Monet Engine");
|
|
description: _("Monet is an engine that generates a Material Design 3 palette from extracting image's colors.");
|
|
|
|
Adw.ExpanderRow monet-theming-expander {
|
|
title: _("Monet Engine Options");
|
|
subtitle: _("Choose an image, and change the parameters of a generated Monet palette");
|
|
expanded: true;
|
|
|
|
[action]
|
|
Button monet-apply-button {
|
|
valign: center;
|
|
label: _("Apply");
|
|
tooltip-text: _("Apply a palette");
|
|
clicked => on_apply_button_clicked();
|
|
styles ["suggested-action"]
|
|
}
|
|
|
|
Adw.ActionRow file-chooser-row {
|
|
title: _("Select an Image");
|
|
|
|
[suffix]
|
|
Button file-chooser-button {
|
|
valign: center;
|
|
clicked => on_file_chooser_button_clicked();
|
|
|
|
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();
|
|
}
|