mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-06 16:19:07 -04:00
Add Adw.Breakpoint custom syntax
This commit is contained in:
parent
aafebf0dfb
commit
8fcd08c835
12 changed files with 264 additions and 11 deletions
13
tests/samples/adw_breakpoint.blp
Normal file
13
tests/samples/adw_breakpoint.blp
Normal file
|
@ -0,0 +1,13 @@
|
|||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
Gtk.Label label {}
|
||||
|
||||
Adw.Breakpoint {
|
||||
condition ("max-width: 600px")
|
||||
setters {
|
||||
label.label: _("Hello, world!");
|
||||
label.visible: false;
|
||||
label.extra-menu: null;
|
||||
}
|
||||
}
|
11
tests/samples/adw_breakpoint.ui
Normal file
11
tests/samples/adw_breakpoint.ui
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkLabel" id="label"></object>
|
||||
<object class="AdwBreakpoint">
|
||||
<condition>max-width: 600px</condition>
|
||||
<setter object="label" property="label" translatable="true">Hello, world!</setter>
|
||||
<setter object="label" property="visible">false</setter>
|
||||
<setter object="label" property="extra-menu"></setter>
|
||||
</object>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue