Upgrade SAO theming #43

Merged
mars merged 17 commits from upgrade-sao-theming into main 2022-11-18 23:53:17 +00:00
1 changed files with 7 additions and 1 deletions
Showing only changes of commit 59a673128c - Show all commits

View File

@ -1,8 +1,10 @@
use canary_script::{api::Font, Color};
use canary_script::Color;
/// A reusable set of colors. Used by default widget styles.
pub struct Palette {
pub base: Color,
pub base_hover: Color,
pub base_active: Color,
pub surface: Color,
pub overlay: Color,
pub text: Color,
@ -19,6 +21,8 @@ pub struct Palette {
/// Sword Art Online color palette.
pub const SAO_PALETTE: Palette = Palette {
base: Color::WHITE.with_alpha(0xa0),
base_hover: Color::WHITE.with_alpha(0xd0),
base_active: Color::YELLOW,
surface: Color::WHITE,
overlay: Color::WHITE,
text: Color::BLACK,
@ -35,6 +39,8 @@ pub const SAO_PALETTE: Palette = Palette {
/// Rose Pine color palette.
pub const ROSE_PINE_PALETTE: Palette = Palette {
base: Color(0x191724ff),
base_hover: Color(0x21202eff), // Rose Pine Highlight Low
base_active: Color(0x403d52ff), // Rose Pine Highlight Med
surface: Color(0x1f1d2eff),
overlay: Color(0x26233aff),
text: Color(0xe0def4ff),