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
15 lines
447 B
Plaintext
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;
|
|
}
|