Skip to content

A full-featured download manager.

feat: element dialog & table dark theme style

Dr_rOot0142aedfa531
diff --git a/src/renderer/components/Theme/Dark.scss b/src/renderer/components/Theme/Dark.scss
index 138aa2df..dd33f0f4 100644
--- a/src/renderer/components/Theme/Dark.scss
+++ b/src/renderer/components/Theme/Dark.scss
@@ -307,12 +307,48 @@
/* Dialog */
.el-dialog {
background-color: $--dk-dialog-background;
+ .el-dialog__body {
+ color: $--dk-dialog-text-color;
+ }
}
.add-task-dialog .el-dialog__footer {
background-color: $--dk-add-task-dialog-footer-background;
}
+ .el-table {
+ background-color: $--dk-table-background;
+ color: $--dk-table-text-color;
+ tr {
+ background-color: $--dk-table-background;
+ }
+ th {
+ background-color: $--dk-table-th-background;
+ color: $--dk-table-text-color;
+ }
+ th.is-leaf, td {
+ background-color: $--dk-table-background;
+ color: $--dk-table-text-color;
+ border-bottom-color: $--dk-table-border-color;
+ }
+ }
+ .el-table thead th.is-leaf {
+ background-color: $--dk-table-th-background;
+ }
+
+ .el-table--enable-row-hover .el-table__body tr:hover > td,
+ .el-table--enable-row-hover .el-table__body tr.el-table__row--striped:hover > td {
+ background-color: $--dk-table-hover-background;
+ }
+
+ .el-table--group::after, .el-table--border::after, .el-table::before {
+ background-color: $--dk-table-border-color;
+ }
+
+ .el-table--striped .el-table__body tr.el-table__row--striped td {
+ background-color: $--dk-table-striped-background;
+ }
+
/* Tabs */
.el-tabs__item {
color: #a2a3a4;
diff --git a/src/renderer/components/Theme/Dark/Variables.scss b/src/renderer/components/Theme/Dark/Variables.scss
index e37cfd5c..8cc1e949 100644
--- a/src/renderer/components/Theme/Dark/Variables.scss
+++ b/src/renderer/components/Theme/Dark/Variables.scss
@@ -34,7 +34,7 @@ $--dk-panel-border-color: #EBECF0 !default;
-------------------------- */
$--dk-task-action-color: #eee !default;
$--dk-task-action-hover-color: $--color-primary !default;
-$--dk-task-item-backgroud: #2D2D2D !default;
+$--dk-task-item-backgroud: #2d2d2d !default;
$--dk-task-item-border-color: #555 !default;
$--dk-task-item-hover-border-color: $--color-primary !default;
$--dk-task-item-hover-background: $--color-primary !default;
@@ -50,7 +50,7 @@ $--dk-add-task-dialog-footer-background: #4a4a4a !default;
/* Preference
-------------------------- */
-$--dk-preference-form-text-color: #dfdfdf;
+$--dk-preference-form-text-color: #dfdfdf !default;
/* Speedometer
-------------------------- */
@@ -64,3 +64,10 @@ $--dk-speedometer-text-color: #9b9b9b !default;
/* Element UI
-------------------------- */
$--dk-dialog-background: #343434 !default;
+$--dk-dialog-text-color: #9b9b9b !default;
+$--dk-table-background: #2a2b2c !default;
+$--dk-table-striped-background: #1f2122 !default;
+$--dk-table-hover-background: #565656 !default;
+$--dk-table-th-background: #1f2122 !default;
+$--dk-table-text-color: #9b9b9b !default;
+$--dk-table-border-color: #565656 !default;