Skip to content

Commit

Permalink
bugfix: Custom pattern mode colours stay
Browse files Browse the repository at this point in the history
  • Loading branch information
Smitty Penman committed Feb 17, 2022
1 parent d2f3143 commit e689dda
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export const themeWindow = window({
colourPicker({
padding: {left: "40%"},
width: "1w",
colour: 0,
colour: compute(model.modes.selectedCustomColours, colours => colours[0]),
disabled: compute(model.modes.selectedColoursEnabled, enabledColours => !enabledColours[0]),
visibility: compute(model.modes.selected, mode => {
if (mode?.name==='Custom pattern') return "visible";
Expand All @@ -491,7 +491,7 @@ export const themeWindow = window({
colourPicker({
padding: {left: "40%"},
width: "1w",
colour: 0,
colour: compute(model.modes.selectedCustomColours, colours => colours[1]),
disabled: compute(model.modes.selectedColoursEnabled, enabledColours => !enabledColours[1]),
visibility: compute(model.modes.selected, mode => {
if (mode?.name==='Custom pattern') return "visible";
Expand All @@ -508,7 +508,7 @@ export const themeWindow = window({
colourPicker({
padding: {left: "40%"},
width: "1w",
colour: 0,
colour: compute(model.modes.selectedCustomColours, colours => colours[2]),
disabled: compute(model.modes.selectedColoursEnabled, enabledColours => !enabledColours[2]),
visibility: compute(model.modes.selected, mode => {
if (mode?.name==='Custom pattern') return "visible";
Expand All @@ -525,7 +525,7 @@ export const themeWindow = window({
colourPicker({
padding: {left: "40%"},
width: "1w",
colour: 0,
colour: compute(model.modes.selectedCustomColours, colours => colours[3]),
disabled: compute(model.modes.selectedColoursEnabled, enabledColours => !enabledColours[3]),
visibility: compute(model.modes.selected, mode => {
if (mode?.name==='Custom pattern') return "visible";
Expand All @@ -542,7 +542,7 @@ export const themeWindow = window({
colourPicker({
padding: {left: "40%"},
width: "1w",
colour: 0,
colour: compute(model.modes.selectedCustomColours, colours => colours[4]),
disabled: compute(model.modes.selectedColoursEnabled, enabledColours => !enabledColours[4]),
visibility: compute(model.modes.selected, mode => {
if (mode?.name==='Custom pattern') return "visible";
Expand All @@ -559,7 +559,7 @@ export const themeWindow = window({
colourPicker({
padding: {left: "40%"},
width: "1w",
colour: 0,
colour: compute(model.modes.selectedCustomColours, colours => colours[5]),
disabled: compute(model.modes.selectedColoursEnabled, enabledColours => !enabledColours[5]),
visibility: compute(model.modes.selected, mode => {
if (mode?.name==='Custom pattern') return "visible";
Expand Down

0 comments on commit e689dda

Please sign in to comment.