Hiding alpha settings

This commit is contained in:
MrOnosa
2020-10-21 19:13:36 -05:00
parent 1c49306a46
commit 392f14c89d
2 changed files with 7 additions and 1 deletions

View File

@@ -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;