Files
qbz/crates/qbz-slint/ui/primitives/QbzIcon.slint
T
vicrodh 636b3e8a06 feat(qbz-slint): add the Lucide icon set
Adds 28 Lucide icons (the same set the QBZ Svelte app uses) as SVGs
under ui/assets/icons/, plus a QbzIcon primitive — an Image wrapper that
applies `colorize` so a monochrome SVG renders in any theme color.

cc
2026-05-18 14:58:58 -06:00

15 lines
447 B
Plaintext

// Monochrome Lucide icon.
//
// Slint's `@image-url` needs a literal path, so the caller supplies the
// `source` (an `@image-url` of an SVG in ui/assets/icons/) and a `tint`
// theme color; QbzIcon applies `colorize` and a contain fit.
import { Theme } from "../foundation/semantic-colors.slint";
export component QbzIcon inherits Image {
in property <color> tint: Theme.text-secondary;
colorize: root.tint;
image-fit: contain;
}