Skip to content
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

GTK 4, libadwaita, new HIG #7

Closed
GeopJr opened this issue Aug 19, 2021 · 2 comments · Fixed by #18
Closed

GTK 4, libadwaita, new HIG #7

GeopJr opened this issue Aug 19, 2021 · 2 comments · Fixed by #18

Comments

@GeopJr
Copy link
Owner

GeopJr commented Aug 19, 2021

Hashbrown should switch to GTK 4, use libadwaita and comply with the new HIG.

Currently crystal-gobject supports only GTK 3. However there's a promising lib for gtk4 available but as the readme mentions, it's not ready yet.

There were some attempts to use libhandy (some public some local) but since GTK 4 is here, it might be better to postpone them until there's stable support (for both gtk4 and libadwaita) in Crystal.

In regards of the new HIG, the plan is to:

  • Move the from GtkStackSwitcher to AdwViewSwitcher (+ AdwViewSwitcherTitle & AdwViewSwitcherBar) with Title and Bar toggling dynamically based on window size.
  • Move to AdwApplicationWindow
  • Wrap labels and other widgets to support a wider variety of window sizes
  • Use GtkListBox + rows instead of grids & boxes
  • GtkPopoverMenu

(More items might be added to the above list)

@genodeftest
Copy link

genodeftest commented Aug 30, 2021

Hashbrown should switch to GTK 4, use libadwaita and comply with the new HIG.

There is an issue with gtk4 which renders it pretty hard to use for people with non-HiDPI monitors which may or may not be worth waiting for a solution before publishing a gtk4 version of Hashbrown.

@GeopJr
Copy link
Owner Author

GeopJr commented Aug 30, 2021

I'm sure that issue will be fixed by the time a gtk4 (+ libadwaita) library for Crystal becomes ready, thanks however for bringing it to my attention!

Repository owner deleted a comment from github-actions bot Oct 19, 2021
Repository owner deleted a comment from github-actions bot Oct 19, 2021
@GeopJr GeopJr mentioned this issue Oct 28, 2021
@GeopJr GeopJr closed this as completed in #18 Nov 2, 2021
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 a pull request may close this issue.

2 participants