Skip to content

A full-featured download manager.

feat: task graphic dark theme style

Dr_rOot8eeab3d3fa9c
diff --git a/src/renderer/components/TaskGraphic/Atom.vue b/src/renderer/components/TaskGraphic/Atom.vue
index fe34bab6..d013bc0e 100644
--- a/src/renderer/components/TaskGraphic/Atom.vue
+++ b/src/renderer/components/TaskGraphic/Atom.vue
@@ -52,6 +52,10 @@
shape-rendering: geometricPrecision;
outline-offset: -1px;
}
+.graphic-atom-s0 {
+ fill: $--graphic-atom-color-0;
+ outline: 1px solid $--graphic-atom-outline-color;
+}
.graphic-atom-s1 {
fill: $--graphic-atom-color-1;
outline: 1px solid $--graphic-atom-outline-color;
diff --git a/src/renderer/components/TaskGraphic/Index.vue b/src/renderer/components/TaskGraphic/Index.vue
index 5a7edfaf..52ff509d 100644
--- a/src/renderer/components/TaskGraphic/Index.vue
+++ b/src/renderer/components/TaskGraphic/Index.vue
@@ -115,7 +115,7 @@
rhIndex = rhIndex < 0 ? 0 : rhIndex
const result = {
id: `${hIndex}`,
- status: Math.floor(parseInt(bitfield[index], 16) / 4) + 1,
+ status: Math.floor(parseInt(bitfield[index], 16) / 4),
x: offset + chIndex * atomWG,
y: offset + rhIndex * atomHG
}
diff --git a/src/renderer/components/Theme/Dark.scss b/src/renderer/components/Theme/Dark.scss
index a4a2de86..2b901407 100644
--- a/src/renderer/components/Theme/Dark.scss
+++ b/src/renderer/components/Theme/Dark.scss
@@ -115,10 +115,26 @@
background-color: $--dk-graphic-box-background;
}
+ .graphic-atom-s0 {
+ fill: $--dk-graphic-atom-color-0;
+ }
+
.graphic-atom-s1 {
fill: $--dk-graphic-atom-color-1;
}
+ .graphic-atom-s2 {
+ fill: $--dk-graphic-atom-color-2;
+ }
+
+ .graphic-atom-s3 {
+ fill: $--dk-graphic-atom-color-3;
+ }
+
+ .graphic-atom-s4 {
+ fill: $--dk-graphic-atom-color-4;
+ }
+
.form-static-value {
color: #e7e7e7;
}
diff --git a/src/renderer/components/Theme/Dark/Variables.scss b/src/renderer/components/Theme/Dark/Variables.scss
index f1306a45..1dfc62be 100644
--- a/src/renderer/components/Theme/Dark/Variables.scss
+++ b/src/renderer/components/Theme/Dark/Variables.scss
@@ -71,7 +71,11 @@ $--dk-speedometer-text-color: #9b9b9b !default;
/* Task Graphic
-------------------------- */
$--dk-graphic-box-background: #3f3f3f !default;
-$--dk-graphic-atom-color-1: #161b22 !default;
+$--dk-graphic-atom-color-0: #161b22 !default;
+$--dk-graphic-atom-color-1: #0e4429 !default;
+$--dk-graphic-atom-color-2: #006d32 !default;
+$--dk-graphic-atom-color-3: #26a641 !default;
+$--dk-graphic-atom-color-4: #39d353 !default;
/* Element UI
-------------------------- */
diff --git a/src/renderer/components/Theme/Light/Variables.scss b/src/renderer/components/Theme/Light/Variables.scss
index bcfa9f83..4e6b7856 100644
--- a/src/renderer/components/Theme/Light/Variables.scss
+++ b/src/renderer/components/Theme/Light/Variables.scss
@@ -73,10 +73,11 @@ $--speedometer-text-color: #9b9b9b !default;
-------------------------- */
$--graphic-box-background: transparent !default;
$--graphic-atom-outline-color: rgba(27, 31, 35, 0.06) !default;
-$--graphic-atom-color-1: #ebedf0 !default;
-$--graphic-atom-color-2: #9be9a8 !default;
-$--graphic-atom-color-3: #40c463 !default;
-$--graphic-atom-color-4: #30a14e !default;
+$--graphic-atom-color-0: #ebedf0 !default;
+$--graphic-atom-color-1: #9be9a8 !default;
+$--graphic-atom-color-2: #40c463 !default;
+$--graphic-atom-color-3: #30a14e !default;
+$--graphic-atom-color-4: #39d353 !default;
/* Element UI
-------------------------- */