From 392f14c89d3e12214d35e4f3862c7a835d440e68 Mon Sep 17 00:00:00 2001 From: MrOnosa Date: Wed, 21 Oct 2020 19:13:36 -0500 Subject: [PATCH] Hiding alpha settings --- .../modals/settings/sections/BackgroundSettings.jsx | 2 +- src/scss/index.scss | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/modals/settings/sections/BackgroundSettings.jsx b/src/components/modals/settings/sections/BackgroundSettings.jsx index 79d11a79..2970d977 100644 --- a/src/components/modals/settings/sections/BackgroundSettings.jsx +++ b/src/components/modals/settings/sections/BackgroundSettings.jsx @@ -214,7 +214,7 @@ export default class BackgroundSettings extends React.PureComponent { const newState = { gradientSettings: { ...s.gradientSettings, - gradient: [...initGradients, lastGradient, { 'colour': '#000000', stop: 100 }].sort((a, b) => (a.stop > b.stop) ? 1 : -1) + gradient: [...initGradients, lastGradient, { 'colour': localStorage.getItem('darkTheme') === 'true' ? '#000000' : '#ffffff', stop: 100 }].sort((a, b) => (a.stop > b.stop) ? 1 : -1) } }; return newState; diff --git a/src/scss/index.scss b/src/scss/index.scss index 55c67406..666b0035 100644 --- a/src/scss/index.scss +++ b/src/scss/index.scss @@ -100,4 +100,10 @@ body { ::selection { background-color: #c2c2c2; +} + +div.picker-area > div.preview > div.color-hue-alpha > div.alpha, +div.color-preview-area > div > div:nth-child(5) +{ + display: none; } \ No newline at end of file