8000 GitHub - aalhitennf/floem-things: Some widgets for Floem · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

About

Some widgets for Floem

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

37 Commits
8000

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thonk

Some "things" for Floem (git main)

Basic things

  • Resizable and configurable Split view
  • Separator
  • H1/2/3/4/5/6 (text or dynamic with label)

Things behind feature flags

  • async-img

    Loads image from url asynchronously on background task or thread.

    Enable runtime support with one of the feature flags: tokio, async-std, smol. Or thread without any async runtime.
    Floem uses async-std by default so if you want to use tokio, disable default features on this crate.

  • cache

    Enables async-img and AsyncCache for it. Stores fetched images in a DashMap.

    You need to create and provide the cache with floems provide_context function. See examples/async_cache.rs.

Examples

Split
cargo run --example split

Async image
cargo run --example async_image --features {async-std,smol,thread}
cargo run --example async_image --no-default-features --features tokio

Async image with cache
cargo run --example async_cache --features cache,{async-std,smol,thread}
cargo run --example async_cache --no-default-features --features cache,tokio

About

Some widgets for Floem

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0