Skip to main content

hyprforge_look/
lib.rs

1//! What every Hyprforge app looks like.
2//!
3//! One crate rather than one per app, because the alternative already
4//! happened: the Settings app and the lock screen each grew their own
5//! palette and drifted to different accents, different backgrounds and
6//! different text colours — two products from one project, which is the
7//! exact failure this suite exists to avoid.
8//!
9//! Deliberately free of any GUI toolkit. Some of its users have no window
10//! at all — `hyprforge-core` reads colours out of a Hyprland config and
11//! `hyprforge-appearance` resolves and publishes the theme — and a toolkit
12//! here would be carried by each of them for nothing. The rule began with
13//! the lock screen painting into a raw Wayland buffer with no toolkit;
14//! the lock screen and greeter both draw through iced's software renderer
15//! now, and like every other iced host they convert at their own boundary
16//! (`hyprforge_ui::color`).
17
18pub mod color;
19pub mod theme;
20
21
22pub use color::{Color, ColorError};
23pub use theme::{Surfaces, Theme, ThemeError};