Browse Source

[release] v0.12.0-unstable39

Yann Stepienik 1 year ago
parent
commit
57e6680668
2 changed files with 7 additions and 3 deletions
  1. 6 2
      client/src/pages/home/index.jsx
  2. 1 1
      package.json

+ 6 - 2
client/src/pages/home/index.jsx

@@ -192,6 +192,9 @@ const HomePage = () => {
         // return () => clearInterval(interval);
     }, []);
 
+    const primCol = theme.palette.primary.main.replace('rgb(', 'rgba(')
+    const secCol = theme.palette.secondary.main.replace('rgb(', 'rgba(')
+
     const optionsRadial = {
         plotOptions: {
             radialBar: {
@@ -247,13 +250,14 @@ const HomePage = () => {
             }
         },
         fill: {
+            colors: [primCol],
             type: "gradient",
             gradient: {
                 shade: "dark",
                 type: "horizontal",
                 shadeIntensity: 0.5,
-                gradientToColors: ["#ABE5A1"],
-                inverseColors: true,
+                gradientToColors: [secCol], // A light green color as the end of the gradient.
+                inverseColors: false,
                 opacityFrom: 1,
                 opacityTo: 1,
                 stops: [0, 100]

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "cosmos-server",
-  "version": "0.12.0-unstable38",
+  "version": "0.12.0-unstable39",
   "description": "",
   "main": "test-server.js",
   "bugs": {