feat: support blur window

This commit is contained in:
GyDi
2022-01-12 02:27:29 +08:00
parent 8f5b2b4a0e
commit df5953dd7b
9 changed files with 68 additions and 5 deletions

View File

@@ -9,6 +9,10 @@ pub struct VergeConfig {
/// `light` or `dark`
pub theme_mode: Option<String>,
/// enable blur mode
/// maybe be able to set the alpha
pub theme_blur: Option<bool>,
/// can the app auto startup
pub enable_self_startup: Option<bool>,
@@ -157,6 +161,9 @@ impl Verge {
if patch.theme_mode.is_some() {
self.config.theme_mode = patch.theme_mode;
}
if patch.theme_blur.is_some() {
self.config.theme_blur = patch.theme_blur;
}
// should update system startup
if patch.enable_self_startup.is_some() {