Gradience/data/ui/custom_css_group.blp

34 lines
864 B
Text
Raw Normal View History

2022-07-24 17:46:37 +00:00
using Gtk 4.0;
using Adw 1;
2022-08-19 19:14:05 +00:00
template GradienceCustomCSSGroup : Adw.PreferencesGroup {
title: _("Custom CSS");
2022-08-30 17:07:30 +00:00
description: _("Changing this may break some programs. Keep in mind that Libadwaita was made so that applications could hardcode values like paddings and margins. Only GTK 4 CSS will be previewed here.");
2022-07-24 17:46:37 +00:00
[header-suffix]
DropDown app-type-dropdown {
valign: start;
model: app-type-list;
notify => on_dropdown_notify();
}
2022-07-24 18:00:56 +00:00
ScrolledWindow {
min-content-height: 500;
max-content-height: 500;
2022-07-24 17:46:37 +00:00
TextView custom-css-text-view {
styles ["card"]
left-margin: 10;
right-margin: 10;
top-margin: 10;
bottom-margin: 10;
2022-07-24 17:46:37 +00:00
monospace: true;
buffer: TextBuffer {
changed => on_custom_css_changed();
};
}
}
}
StringList app-type-list {
strings [_("GTK 4"), _("GTK 3")]
2022-07-24 17:46:37 +00:00
}