mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-18 22:58:34 +01:00
A theme gives the borders their colors, in place of choosing the color of each kind of window: a Catppuccin theme, a Base16 theme or a palette of one's own, with the color it gives each of the six kinds of border and its default for the ones it does not name. The Theme message puts the six colors where the border manager keeps them and asks for the look again. The palette of a picture is made by the same generator as komorebi for Windows, which takes seconds for a large picture, so each one is kept in the cache directory, in a file named for the picture, a hash of its path, size and time of last change, and the variant: the palette of a picture painted over, or of one of the same name in another folder, is made again and not mistaken. The themes come from komorebi-themes at the revision komorebi-layouts is at. It pulls egui for its types, which the license list, the sources and the advisories of deny.toml now have to allow, and the colors the border manager keeps are the themes' own again. A subscriber that asks for the changes of the state only is sent a Theme message all the same: the colors of the borders are not part of the state, so a theme never changes it, and the subscriber would not hear of the colors at all. komorebi.json takes border_colours, a color for each kind of window as red, green and blue or as a hex color, and a theme, which wins over them.
94 lines
2.7 KiB
TOML
94 lines
2.7 KiB
TOML
[graph]
|
|
targets = [
|
|
"x86_64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-gnu",
|
|
"aarch64-apple-darwin",
|
|
]
|
|
all-features = false
|
|
no-default-features = false
|
|
|
|
[output]
|
|
feature-depth = 1
|
|
|
|
[advisories]
|
|
ignore = [
|
|
{ id = "RUSTSEC-2024-0449", reason = "unsafe-libyaml comes with serde_yaml, which komorebi-layouts reads Windows-only custom layouts with; nothing here calls it" },
|
|
{ id = "RUSTSEC-2026-0370", reason = "zvariant is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" },
|
|
{ id = "RUSTSEC-2026-0371", reason = "zbus_names is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" },
|
|
{ id = "RUSTSEC-2026-0372", reason = "zvariant_derive is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" },
|
|
{ id = "RUSTSEC-2024-0320", reason = "yaml-rust comes with serde_yaml 0.8 under flavours, which komorebi-themes makes palettes with; not using any yaml features from this library" },
|
|
{ id = "RUSTSEC-2025-0056", reason = "adler comes with the image decoder under flavours, which komorebi-themes makes palettes with; only used for color palette generation" },
|
|
{ id = "RUSTSEC-2026-0192", reason = "ttf-parser comes with the fonts of egui, which komorebi-themes pulls in for its theme types; komorebi draws no text" },
|
|
]
|
|
|
|
[licenses]
|
|
allow = [
|
|
"Apache-2.0",
|
|
"BSD-2-Clause",
|
|
"BSD-3-Clause",
|
|
"CC0-1.0",
|
|
"ISC",
|
|
"MIT",
|
|
"MPL-2.0",
|
|
"OFL-1.1",
|
|
"Ubuntu-font-1.0",
|
|
"Unicode-3.0",
|
|
"Zlib",
|
|
"LicenseRef-Komorebi-2.0",
|
|
]
|
|
confidence-threshold = 0.8
|
|
|
|
[[licenses.clarify]]
|
|
crate = "komorebi"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "komorebi-client"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "komorebi-layouts"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "komorebic"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "komorebi-themes"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "version"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "base16-egui-themes"
|
|
expression = "MIT"
|
|
license-files = []
|
|
|
|
[bans]
|
|
multiple-versions = "allow"
|
|
wildcards = "allow"
|
|
highlight = "all"
|
|
workspace-default-features = "allow"
|
|
external-default-features = "allow"
|
|
|
|
[sources]
|
|
unknown-registry = "deny"
|
|
unknown-git = "deny"
|
|
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
|
|
allow-git = [
|
|
"https://github.com/LGUG2Z/base16-egui-themes",
|
|
"https://github.com/LGUG2Z/base16_color_scheme",
|
|
"https://github.com/LGUG2Z/catppuccin-egui",
|
|
"https://github.com/LGUG2Z/flavours",
|
|
"https://github.com/LGUG2Z/komorebi",
|
|
]
|