Skip to content

A full-featured download manager.

refactor: theme style improve

Dr_rOotce09e76ffb34
diff --git a/src/renderer/components/Native/TitleBar.vue b/src/renderer/components/Native/TitleBar.vue
index 7a4dbc82..a1b9678c 100644
--- a/src/renderer/components/Native/TitleBar.vue
+++ b/src/renderer/components/Native/TitleBar.vue
@@ -82,6 +82,7 @@
background-color: $--titlebar-actions-active-background;
}
&.win-close-btn:hover {
+ color: $--titlebar-close-active-color;
background-color: $--titlebar-close-active-background;
}
}
diff --git a/src/renderer/components/Preference/ThemeSwitcher.vue b/src/renderer/components/Preference/ThemeSwitcher.vue
index b9d89c2f..e9f5c6d2 100644
--- a/src/renderer/components/Preference/ThemeSwitcher.vue
+++ b/src/renderer/components/Preference/ThemeSwitcher.vue
@@ -76,6 +76,7 @@
&.active {
.theme-thumb {
border-color: $--color-primary;
+ box-shadow: 0 0 1px $--color-primary;
}
span {
color: $--color-primary;
@@ -96,7 +97,7 @@
}
.theme-thumb {
box-sizing: border-box;
- border: 2px solid #aaa;
+ border: 1px solid #aaa;
border-radius: 5px;
width: 68px;
height: 44px;
diff --git a/src/renderer/components/Task/AddTask.vue b/src/renderer/components/Task/AddTask.vue
index 5c862fb6..d6f5e0ac 100644
--- a/src/renderer/components/Task/AddTask.vue
+++ b/src/renderer/components/Task/AddTask.vue
@@ -393,7 +393,6 @@
<style lang="scss">
.el-dialog.add-task-dialog {
max-width: 632px;
- background-color: $--add-task-dialog-background;
.el-tabs__header {
user-select: none;
}
diff --git a/src/renderer/components/Theme/Dark.scss b/src/renderer/components/Theme/Dark.scss
index f6a214fd..25ff1463 100644
--- a/src/renderer/components/Theme/Dark.scss
+++ b/src/renderer/components/Theme/Dark.scss
@@ -305,8 +305,8 @@
}
/* Dialog */
- .el-dialog.add-task-dialog {
- background-color: $--dk-add-task-dialog-background;
+ .el-dialog {
+ background-color: $--dk-dialog-background;
}
.add-task-dialog .el-dialog__footer {
diff --git a/src/renderer/components/Theme/Dark/Variables.scss b/src/renderer/components/Theme/Dark/Variables.scss
index 18c7801e..e37cfd5c 100644
--- a/src/renderer/components/Theme/Dark/Variables.scss
+++ b/src/renderer/components/Theme/Dark/Variables.scss
@@ -2,6 +2,7 @@
-------------------------- */
$--dk-app-background: transparent !default;
$--dk-titlebar-actions-color: #eee !default;
+$--dk-titlebar-close-active-color: #fff !default;
$--dk-titlebar-actions-active-background: rgba(0, 0, 0, 0.9) !default;
$--dk-titlebar-close-active-background: $--color-danger !default;
$--dk-app-logo-color: #eee !default;
@@ -45,7 +46,6 @@ $--dk-task-item-action-hover-border-color: $--color-primary !default;
$--dk-task-item-action-color: #eee !default;
$--dk-task-item-action-hover-color: #fff !default;
$--dk-no-task-color: #aaa !default;
-$--dk-add-task-dialog-background: #343434 !default;
$--dk-add-task-dialog-footer-background: #4a4a4a !default;
/* Preference
@@ -60,3 +60,7 @@ $--dk-speedometer-hover-border-color: #9b9b9b !default;
$--dk-speedometer-primary-color: $--color-primary !default;
$--dk-speedometer-stopped-color: #9b9b9b !default;
$--dk-speedometer-text-color: #9b9b9b !default;
+
+/* Element UI
+-------------------------- */
+$--dk-dialog-background: #343434 !default;
diff --git a/src/renderer/components/Theme/Light/Variables.scss b/src/renderer/components/Theme/Light/Variables.scss
index 37cfb7d4..5a3e4042 100644
--- a/src/renderer/components/Theme/Light/Variables.scss
+++ b/src/renderer/components/Theme/Light/Variables.scss
@@ -3,6 +3,7 @@
$--app-background: transparent !default;
$--titlebar-actions-color: #1f1f1f !default;
$--titlebar-actions-active-background: #eee !default;
+$--titlebar-close-active-color: #fff !default;
$--titlebar-close-active-background: $--color-danger !default;
$--app-logo-color: #4D515A !default;
$--app-version-color: $--color-text-regular !default;
@@ -45,7 +46,6 @@ $--task-item-action-hover-border-color: $--color-primary !default;
$--task-item-action-color: #9B9B9B !default;
$--task-item-action-hover-color: #fff !default;
$--no-task-color: #eee !default;
-$--add-task-dialog-background: #fff !default;
$--add-task-dialog-footer-background: #f5f5f5 !default;
/* Preference
@@ -60,3 +60,7 @@ $--speedometer-hover-border-color: #9b9b9b !default;
$--speedometer-primary-color: $--color-primary !default;
$--speedometer-stopped-color: #9b9b9b !default;
$--speedometer-text-color: #9b9b9b !default;
+
+/* Element UI
+-------------------------- */
+$--dialog-background: #fff !default;
diff --git a/src/renderer/components/Theme/Variables.scss b/src/renderer/components/Theme/Variables.scss
index 5f205ca1..c98b4f22 100644
--- a/src/renderer/components/Theme/Variables.scss
+++ b/src/renderer/components/Theme/Variables.scss
@@ -477,7 +477,7 @@ $--switch-button-size: 16px !default;
/* Dialog
-------------------------- */
-$--dialog-background-color: $--color-primary-light-4 !default;
+$--dialog-background-color: $--color-white !default;
$--dialog-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !default;
$--dialog-close-hover-color: $--color-primary !default;
$--dialog-title-font-size: $--font-size-large !default;