mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-08-29 18:32:32 +00:00
34 lines
826 B
Text
34 lines
826 B
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template GradienceCustomCSSGroup : Adw.PreferencesGroup {
|
|
title: _("Custom CSS");
|
|
description: _("Changing this may break some programs. Keep in mind that Libadwaita was made so that applications could hardcode values like paddings and margins.");
|
|
|
|
[header-suffix]
|
|
DropDown app_type_dropdown {
|
|
valign: start;
|
|
model: app_type_list;
|
|
notify => on_dropdown_notify();
|
|
}
|
|
|
|
ScrolledWindow {
|
|
min-content-height: 500;
|
|
max-content-height: 500;
|
|
TextView custom_css_text_view {
|
|
styles ["card"]
|
|
left-margin: 10;
|
|
right-margin: 10;
|
|
top-margin: 10;
|
|
bottom-margin: 10;
|
|
monospace: true;
|
|
buffer: TextBuffer {
|
|
changed => on_custom_css_changed();
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
StringList app_type_list {
|
|
strings [_("GTK 4"), _("GTK 3")]
|
|
}
|