2022-07-17 11:46:05 +00:00
|
|
|
using Gtk 4.0;
|
|
|
|
using Adw 1;
|
|
|
|
|
2022-08-19 19:14:05 +00:00
|
|
|
template GradienceOption : Adw.ActionRow {
|
2022-07-18 14:23:01 +00:00
|
|
|
[suffix]
|
|
|
|
MenuButton warning-button {
|
|
|
|
valign: center;
|
2022-08-02 12:33:17 +00:00
|
|
|
icon-name: "adw-gtk3-warning-symbolic";
|
2022-07-18 14:23:01 +00:00
|
|
|
popover: warning-popover;
|
2022-07-25 14:35:40 +00:00
|
|
|
tooltip-text: _("GTK 3 Support Warning");
|
2022-07-18 14:23:01 +00:00
|
|
|
}
|
|
|
|
|
2022-07-17 11:46:05 +00:00
|
|
|
[suffix]
|
|
|
|
MenuButton explanation-button {
|
|
|
|
valign: center;
|
2022-07-18 14:23:01 +00:00
|
|
|
icon-name: "dialog-question-symbolic";
|
2022-07-17 11:46:05 +00:00
|
|
|
popover: explanation-popover;
|
2022-07-25 14:35:40 +00:00
|
|
|
tooltip-text: _("Explanation");
|
2022-07-17 11:46:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[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;
|
2022-07-17 12:25:36 +00:00
|
|
|
color-set => on_color_value_changed();
|
2022-07-17 11:46:05 +00:00
|
|
|
}
|
|
|
|
Entry text-value {
|
|
|
|
text: "#00000000";
|
2022-07-17 12:25:36 +00:00
|
|
|
changed => on_text_value_changed();
|
2022-07-17 11:46:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[suffix]
|
|
|
|
ToggleButton text-value-toggle {
|
|
|
|
valign: center;
|
|
|
|
icon-name: "document-edit-symbolic";
|
2022-07-25 14:35:40 +00:00
|
|
|
tooltip-text: _("Toggle Text Value");
|
2022-07-17 11:46:05 +00:00
|
|
|
|
|
|
|
toggled => on_text_value_toggled();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-18 14:23:01 +00:00
|
|
|
Popover warning-popover {
|
|
|
|
Label warning-label {
|
|
|
|
max-width-chars: 50;
|
|
|
|
wrap: true;
|
|
|
|
justify: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-17 11:46:05 +00:00
|
|
|
Popover explanation-popover {
|
|
|
|
Label explanation-label {
|
|
|
|
max-width-chars: 50;
|
|
|
|
wrap: true;
|
|
|
|
justify: center;
|
|
|
|
}
|
|
|
|
}
|