mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-06 16:19:07 -04:00
Add a formatter
This commit is contained in:
parent
2faa9207de
commit
4fa64cdf33
12 changed files with 613 additions and 11 deletions
28
tests/formatting/out.blp
Normal file
28
tests/formatting/out.blp
Normal file
|
@ -0,0 +1,28 @@
|
|||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
Overlay {
|
||||
Label label {
|
||||
label: _("'Hello World!' \"\n\t\"");
|
||||
}
|
||||
|
||||
[overlay]
|
||||
Button {
|
||||
notify::icon-name => $on_icon_name_changed(label) swapped;
|
||||
|
||||
styles [
|
||||
"destructive"
|
||||
]
|
||||
}
|
||||
|
||||
visible: bind $isVisible(label.visible, my-menu) as <bool>;
|
||||
width-request: bind label.width-request no-sync-create;
|
||||
}
|
||||
|
||||
menu my-menu {
|
||||
item (_("Label"), "action-name", "icon-name")
|
||||
|
||||
item {
|
||||
action: "win.format";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue