From 46026d9aa0b22eed0addc861ff7d9c3fdadcf098 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Thu, 19 Jan 2023 08:35:06 -0600 Subject: [PATCH] fix(gui): swap toggle buttons for decent checkboxes --- .../components/control/OutpaintControl.tsx | 28 +++++---- gui/src/components/control/UpscaleControl.tsx | 57 +++++++++---------- 2 files changed, 40 insertions(+), 45 deletions(-) diff --git a/gui/src/components/control/OutpaintControl.tsx b/gui/src/components/control/OutpaintControl.tsx index 1447ed78..e6de6552 100644 --- a/gui/src/components/control/OutpaintControl.tsx +++ b/gui/src/components/control/OutpaintControl.tsx @@ -1,6 +1,5 @@ import { mustExist } from '@apextoaster/js-utils'; -import { ZoomOutMap } from '@mui/icons-material'; -import { Stack, ToggleButton } from '@mui/material'; +import { Checkbox, FormControlLabel, Stack } from '@mui/material'; import * as React from 'react'; import { useContext } from 'react'; import { useStore } from 'zustand'; @@ -16,19 +15,18 @@ export function OutpaintControl() { const setOutpaint = useStore(state, (s) => s.setOutpaint); return - { - setOutpaint({ - enabled: outpaint.enabled === false, - }); - }} - > - - Outpaint - + { + setOutpaint({ + enabled: outpaint.enabled === false, + }); + }} + />} + /> s.setUpscale); return - { - setUpscale({ - enabled: upscale.enabled === false, - }); - }} - > - - Upscale - + { + setUpscale({ + enabled: upscale.enabled === false, + }); + }} + />} + /> - { - setUpscale({ - faces: upscale.faces === false, - }); - }} - > - - Face Correction - + { + setUpscale({ + faces: upscale.faces === false, + }); + }} + />} + />