#theme

kas-theme

KAS GUI / theme support

9 breaking releases

0.12.0 Dec 13, 2022
0.11.0 Sep 5, 2022
0.10.1 Sep 7, 2021
0.8.0 Jun 17, 2021
0.3.0 Feb 24, 2020

#879 in GUI

Download history 21/week @ 2023-10-26 9/week @ 2023-11-02 17/week @ 2023-11-09 5/week @ 2023-11-16 26/week @ 2023-11-23 38/week @ 2023-11-30 5/week @ 2023-12-07 16/week @ 2023-12-14 27/week @ 2023-12-21 2/week @ 2023-12-28 15/week @ 2024-01-04 6/week @ 2024-01-11 23/week @ 2024-01-18 13/week @ 2024-01-25 14/week @ 2024-02-01 15/week @ 2024-02-08

67 downloads per month

Apache-2.0

1MB
17K SLoC

KAS Theme

Theme support for KAS.

Optional features

This crate has the following feature flags:

  • font-kit (enabled by default): uses the font-kit crate to locate a suitable system font; otherwise a hard-coded font path is used

The COPYRIGHT file includes a list of contributors who claim copyright on this project. This list may be incomplete; new contributors may optionally add themselves to this list.

The KAS library is published under the terms of the Apache License, Version 2.0. You may obtain a copy of this licence from the LICENSE file or on the following webpage: https://www.apache.org/licenses/LICENSE-2.0


lib.rs:

KAS theme support

This crate provides the Theme trait, MultiTheme adapter, color schemes, some supporting items, and the themes FlatTheme and ShadedTheme.

Custom themes may be built over this crate, optionally including custom draw routines (e.g. DrawShaded), provided that the shell implements support. Alternatively this crate may be skipped altogether, especially for a minimal shell with a custom fixed theme.

Dependencies

~3–18MB
~253K SLoC