Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Floem rewrite #2

Closed
wants to merge 1 commit into from
Closed

Floem rewrite #2

wants to merge 1 commit into from

Conversation

pieterdd
Copy link
Owner

@pieterdd pieterdd commented Dec 20, 2023

I was bumping into various kinds of friction with Iced that Floem doesn't seem to have so I'm implementing a test with Floem. If successful, Prettygoeey will become a Floem UI library.

To do:

  • Reimplement existing widgets in Floem
  • Write new documentation
  • Refer Iced users to the last Iced-compatible version
  • Address that issue with button background color after clicking
  • Address issues with disabled state
  • Wait for Propagate disabled state to descendants lapce/floem#231 to be merged, then update Cargo.toml

The UI elements to reimplement:

  • Primary container
  • Header
  • Button
  • Text (including dimmed variation)
  • Radio group
  • Checkbox
  • Text input
  • Slider Numeric input

So far advantages seem to be:

  • Simple styling API, advanced styling functionality
  • Easier to compose widgets of widgets (e.g. the spinbox use case)
  • The overall workflow seems more ergonomic

Major caveat: Floem doesn't have an officially published crate yet. That said, the Lapce IDE - produced by the same devs - already uses it (Git dependency). So I don't expect drastic API changes.

@pieterdd pieterdd force-pushed the floem-rewrite branch 13 times, most recently from 7a5b3e3 to 23a50d8 Compare December 22, 2023 18:24
@pieterdd pieterdd force-pushed the floem-rewrite branch 2 times, most recently from 87e824b to b317366 Compare December 28, 2023 15:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant