Skip to main content

Crate hyprforge_ui

Crate hyprforge_ui 

Source
Expand description

What Hyprforge apps are built out of.

The iced half of the shared look: one spacing scale, one palette, one set of widgets, so a sidebar in Settings and a sidebar in the file manager breathe the same amount and use the same accent.

Deliberately knows nothing about Hyprland. A calculator should be able to use these widgets without inheriting Lua codegen, which is why the one widget that did know — the “your config can’t take a require line” banner — lives in the Settings app instead.

DESIGN-SYSTEM.md, beside this crate’s manifest, is the catalogue: every token with where it comes from, every size, mark and widget, and the rule for what belongs here rather than in an app.

Modules§

color
Converting the shared colour type into iced’s.
density
Row/header/type-ramp sizing every Hyprforge app shares, derived from font metrics rather than copied out of a mockup as pixel constants.
glyph
The marks every Hyprforge app draws — navigation, view modes, the sidebar toggle, the settings pages, signal strength and a battery — drawn rather than typed.
keys
From an iced key event to a hyprforge_keys::KeyPress.
theme
widgets
Every widget the suite shares.