From ef6a81e1420df977765b4a8ba2ad88dcfb2d86ed Mon Sep 17 00:00:00 2001 From: mars Date: Fri, 18 Nov 2022 14:13:50 -0700 Subject: [PATCH] Add Rose Pine Moon color palette --- scripts/sao-ui/src/style.rs | 40 +++++++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/scripts/sao-ui/src/style.rs b/scripts/sao-ui/src/style.rs index 01d6f56..b111dad 100644 --- a/scripts/sao-ui/src/style.rs +++ b/scripts/sao-ui/src/style.rs @@ -39,19 +39,37 @@ 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 + base_hover: Color(0x21202eff), // Highlight Low + base_active: Color(0x403d52ff), // Highlight Med surface: Color(0x1f1d2eff), overlay: Color(0x26233aff), text: Color(0xe0def4ff), - black: Color(0x6e6a86ff), - red: Color(0xeb6f92ff), - green: Color(0x7fb59fff), - yellow: Color(0xf6c177ff), - blue: Color(0x31748fff), - magenta: Color(0xc4a7e7ff), - cyan: Color(0x9ccfd8ff), - white: Color(0xe0def4ff), + black: Color(0x6e6a86ff), // Muted + red: Color(0xeb6f92ff), // Love + green: Color(0x7fb59fff), // ??? (not in Rose Pine?) + yellow: Color(0xf6c177ff), // Gold + blue: Color(0x31748fff), // Pine + magenta: Color(0xc4a7e7ff), // Iris + cyan: Color(0x9ccfd8ff), // Foam + white: Color(0xe0def4ff), // Text +}; + +/// Rose Pine Moon color palette. +pub const ROSE_PINE_MOON_PALETTE: Palette = Palette { + base: Color(0x232136ff), + base_hover: Color(0x2a283eff), // Highlight Low + base_active: Color(0x44415aff), // Highlight Med + surface: Color(0x2a273fff), + overlay: Color(0x393552), + text: Color(0xe0def4ff), + black: Color(0x6e6a86ff), // Muted + red: Color(0xeb6f92ff), // Love + green: Color(0x7fb59fff), // ??? (not in Rose Pine?) + yellow: Color(0xf6c177ff), // Gold + blue: Color(0x3e8fb0ff), // Pine + magenta: Color(0xc4a7e7ff), // Iris + cyan: Color(0x9ccfd8ff), // Foam + white: Color(0xe0def4ff), // Text }; /// Common measurements for widget shapes. @@ -67,7 +85,7 @@ pub struct Theme { /// The global theme. pub const THEME: Theme = Theme { - palette: ROSE_PINE_PALETTE, + palette: ROSE_PINE_MOON_PALETTE, metrics: Metrics { surface_rounding: 5.0, },