-
-
Notifications
You must be signed in to change notification settings - Fork 90
library: add Breakpoint entry #484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This entry is inspired by the C example found here. This kinda-sorta addresses #269, by changing the CSS classes of a label based on size. |
sonnyp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it 👍
Simple but a good entry into breakpoints
| const image = workbench.builder.get_object("image"); | ||
|
|
||
| breakpoint.connect("apply", () => { | ||
| image.icon_size = Gtk.IconSize.NORMAL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we might as well do this in blueprint too and only do the console.log in Code
wdtyt?
| using Gtk 4.0; | ||
| using Adw 1; | ||
|
|
||
| Gtk.Window { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have a title/subtitle like others demo?
We can also add a text that says "Resize the window to see the breakpoint effect"
Co-authored-by: Sonny Piers <sonny@fastmail.net>
closes #407 and closes #269