Gradience/data/ui/custom_css_group.blp
salarua d565375a5f
Proofreading (#785)
Signed-off-by: salarua <104225819+salarua@users.noreply.github.com>
Signed-off-by: David Lapshin <ddaudix@gmail.com>
Co-authored-by: 0xMRTT <0xMRTT@proton.me>
Co-authored-by: tfuxu <73042332+tfuxu@users.noreply.github.com>
Co-authored-by: David Lapshin <ddaudix@gmail.com>
2023-06-20 16:34:17 +00:00

34 lines
846 B
Text

using Gtk 4.0;
using Adw 1;
template GradienceCustomCSSGroup : Adw.PreferencesGroup {
title: _("Custom CSS");
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.");
[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")]
}