mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-04 00:47:52 +00:00
50e38bc198
* update `blueprint-compiler` in release Flatpak manifest to 0.10.0
77 lines
1.4 KiB
Text
77 lines
1.4 KiB
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $GradienceOptionRow : Adw.ActionRow {
|
|
activatable-widget: color-value;
|
|
|
|
[suffix]
|
|
MenuButton warning-button {
|
|
valign: center;
|
|
icon-name: "adw-gtk3-warning-symbolic";
|
|
popover: warning-popover;
|
|
tooltip-text: _("GTK 3 Support Warning");
|
|
styles ["flat"]
|
|
}
|
|
|
|
[suffix]
|
|
MenuButton explanation-button {
|
|
valign: center;
|
|
icon-name: "dialog-information-symbolic";
|
|
popover: explanation-popover;
|
|
tooltip-text: _("Explanation");
|
|
styles ["flat"]
|
|
}
|
|
|
|
[suffix]
|
|
Stack value-stack {
|
|
valign: center;
|
|
hhomogeneous: false;
|
|
interpolate-size: true;
|
|
transition-type: crossfade;
|
|
|
|
ColorButton color-value {
|
|
rgba: "#00000000";
|
|
use-alpha: true;
|
|
}
|
|
Entry text-value {
|
|
text: "#00000000";
|
|
}
|
|
}
|
|
|
|
[suffix]
|
|
ToggleButton text-value-toggle {
|
|
valign: center;
|
|
icon-name: "document-edit-symbolic";
|
|
tooltip-text: _("Show Hex");
|
|
styles ["flat"]
|
|
|
|
toggled => $on_text_value_toggled();
|
|
}
|
|
}
|
|
|
|
Popover warning-popover {
|
|
autohide: true;
|
|
Label warning-label {
|
|
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 {
|
|
margin-top: 6;
|
|
margin-bottom: 6;
|
|
margin-start: 6;
|
|
margin-end: 6;
|
|
max-width-chars: 30;
|
|
wrap: true;
|
|
justify: center;
|
|
}
|
|
}
|
|
|