Files
feresaria/crates/ferese-theme
Samuel OnojaandSamuel Onoja 6b0d903ad0 Add Live Activities as configurable bar items (#30)
* Add Live Activities as configurable bar items

* Fix activity owner monitoring and Morph list interactions

* Keep activity rows stable during updates and tighten their layout

* Use subtle theme tint for activity cards

* Tighten activity title and progress spacing

* Use theme accent for active progress rings

* Fit compact activities to measured titles and badge

* Expose Live Activities display controls in Settings

* Open activity terminals and streamline the Morph header

* Give Morph continuous icons and prioritize workspace navigation

* Show activity progress inside its ring

* Inset activity progress rings and strengthen their stroke

* Fix activity lifecycle, command output handling and list navigation

* Reduce activity update work and harden publisher lifetimes

* Set up Live Activities for the detected user shell during installation

* Document Activities setup, daily use and troubleshooting

* Preserve Morph idle width across empty activity updates

* Fix dimming flicker, hide inactive music tab and consolidate Activities docs

* Fix panel clearance across styles and match previews to theme settings

* Prevent panel blur from repainting neighboring islands

---------

Co-authored-by: Samuel Onoja <[email protected]>
2026-10-12 22:52:25 +01:00
..

Ferese theme

This crate supplies the shared native UI theme used by the shell, settings, lock screen, authentication prompt and screen-sharing/recording chooser.

  • Palette resolves KDL colors and corners and builds the native toolkit theme.
  • PRESETS defines twelve variants in six families.
  • font and text provide shared font selection and text.
  • gallery supplies split theme tiles, accessible radio groups and keyboard navigation.
  • controls supplies surfaces, navigation, font-aware text buttons and input styles.
  • menus supplies headings, rows, sections, separators, switches and slider styles.
  • calendar supplies date/time labels, stacked clock digits and calendar grids. Callers supply the date and navigation controls.
  • icons owns the shared SVG assets, outline icons, sizing and semantic tinting.
  • Contrast helpers keep filled controls readable in every interaction state.
  • material::ModalMaterial attaches a dialog to the compositor's shell material. Keep the attachment alive with its window and make the client background transparent after attachment succeeds. Other compositors retain the client fill.

Each application supplies its layout, data, actions and animation progress. Add styles used by several apps to the shared components.

let palette = ferese_theme::Palette::from_document(Some(&document));
let native_theme = palette.native_theme();
let input_style = ferese_theme::controls::settings_input(palette);
let font = ferese_theme::font(Some("Inter"));
let label = ferese_theme::text("Appearance", font);

Backdrop blur and material rendering happen in the compositor. This crate does not reproduce those effects on the client.