From 6e060446f268d1469bf160df474030ddba0e532d Mon Sep 17 00:00:00 2001 From: The Mist Date: Mon, 2 Dec 2024 19:24:54 +0800 Subject: [PATCH] =?UTF-8?q?[Feat]=20add=20MEI=20theme=20color=20with=20?= =?UTF-8?q?=E2=99=A5=EF=B8=8F=20(#28)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli/config.json | 4 ++-- core/src/preset_background.rs | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/cli/config.json b/cli/config.json index c97c849..5d09ebc 100644 --- a/cli/config.json +++ b/cli/config.json @@ -1,6 +1,6 @@ { "window": { - "mac_window_bar": false, + "mac_window_bar": true, "shadow": 20, "margin": { "x": 82, @@ -28,7 +28,7 @@ "stops": [ { "position": 0, - "color": "#ff0000" + "color": "#6bcba5" }, { "position": 1, diff --git a/core/src/preset_background.rs b/core/src/preset_background.rs index a5c9567..54aea3f 100644 --- a/core/src/preset_background.rs +++ b/core/src/preset_background.rs @@ -128,3 +128,22 @@ pub static DUSK: Lazy = Lazy::new(|| { ], }) }); + +pub static MEI: Lazy = Lazy::new(|| { + Background::Gradient(LinearGradient { + start: GradientPoint { + x: DimensionValue::Num(0.), + y: DimensionValue::Num(0.), + }, + end: GradientPoint { + x: DimensionValue::Max, + y: DimensionValue::Max, + }, + stops: vec![ + LinearGradientStop::new(0., "#EBECB2"), + LinearGradientStop::new(0.28, "#F3B0F7"), + LinearGradientStop::new(0.73, "#92B5F0"), + LinearGradientStop::new(0.94, "#AEF0F8"), + ], + }) +});