Gradience/data/ui/option_row.blp

76 lines
1.4 KiB
Text
Raw Normal View History

using Gtk 4.0;
using Adw 1;
template GradienceOptionRow : Adw.ActionRow {
[suffix]
MenuButton warning-button {
valign: center;
2022-08-02 12:33:17 +00:00
icon-name: "adw-gtk3-warning-symbolic";
popover: warning-popover;
tooltip-text: _("GTK 3 Support Warning");
2023-04-13 04:16:07 +00:00
styles ["flat"]
}
[suffix]
MenuButton explanation-button {
valign: center;
2022-09-30 21:14:48 +00:00
icon-name: "dialog-information-symbolic";
popover: explanation-popover;
tooltip-text: _("Explanation");
2023-04-13 04:16:07 +00:00
styles ["flat"]
}
[suffix]
Stack value-stack {
valign: center;
hhomogeneous: false;
interpolate-size: true;
transition-type: crossfade;
ColorButton color-value {
rgba: "#00000000";
2022-07-17 15:15:57 +00:00
use-alpha: true;
}
Entry text-value {
text: "#00000000";
}
}
[suffix]
ToggleButton text-value-toggle {
valign: center;
icon-name: "document-edit-symbolic";
tooltip-text: _("Toggle Text Value");
2023-04-13 04:16:07 +00:00
styles ["flat"]
toggled => on_text_value_toggled();
}
}
Popover warning-popover {
autohide: true;
Label warning-label {
2023-02-23 23:48:59 +00:00
margin-top: 6;
margin-bottom: 6;
margin-start: 6;
margin-end: 6;
max-width-chars: 30;
wrap: true;
justify: center;
}
}
Popover explanation-popover {
autohide: true;
Label explanation-label {
2023-02-23 23:48:59 +00:00
margin-top: 6;
margin-bottom: 6;
margin-start: 6;
margin-end: 6;
max-width-chars: 30;
wrap: true;
justify: center;
}
}
2023-02-23 23:48:59 +00:00