Skip to content

Conversation

@halfmexican
Copy link
Contributor

@halfmexican halfmexican commented Aug 10, 2023

closes #407 and closes #269

@halfmexican
Copy link
Contributor Author

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.

@halfmexican halfmexican marked this pull request as ready for review August 12, 2023 21:34
@sonnyp sonnyp self-assigned this Aug 13, 2023
@sonnyp sonnyp self-requested a review August 13, 2023 13:11
Copy link
Contributor

@sonnyp sonnyp left a 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;
Copy link
Contributor

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 {
Copy link
Contributor

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"

@halfmexican halfmexican requested a review from sonnyp August 13, 2023 16:13
@sonnyp sonnyp merged commit 8a67d0a into main Aug 13, 2023
@sonnyp sonnyp deleted the halfmexican/breakpoint branch August 13, 2023 19:02
sonnyp pushed a commit that referenced this pull request Aug 18, 2023
sonnyp pushed a commit that referenced this pull request Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Breakpoint/BreakpointBin entry Scale CSS font size demo

3 participants