diff --git a/src/components/ThemePatch.tsx b/src/components/ThemePatch.tsx index 7ef5e59..78e618c 100644 --- a/src/components/ThemePatch.tsx +++ b/src/components/ThemePatch.tsx @@ -1,23 +1,25 @@ -import { DropdownItem } from "decky-frontend-lib"; +import { DropdownItem, PanelSectionRow } from "decky-frontend-lib"; import * as python from "../python"; import { VFC } from "react"; import { Patch } from "../theme"; export const ThemePatch: VFC<{ data: Patch }> = ({ data }) => { return ( - { - return { data: i, label: x }; - })} - label={`${data.name} of ${data.theme.name}`} - selectedOption={data.index} - onChange={(index) => { - data.index = index.data; - data.value = index.label; - python.execute( - python.setPatchOfTheme(data.theme.name, data.name, data.value) - ); - }} - /> + + { + return { data: i, label: x }; + })} + label={`${data.name} of ${data.theme.name}`} + selectedOption={data.index} + onChange={(index) => { + data.index = index.data; + data.value = index.label; + python.execute( + python.setPatchOfTheme(data.theme.name, data.name, data.value) + ); + }} + /> + ); }; diff --git a/src/components/ThemeToggle.tsx b/src/components/ThemeToggle.tsx index c950b6b..51d3597 100644 --- a/src/components/ThemeToggle.tsx +++ b/src/components/ThemeToggle.tsx @@ -23,9 +23,7 @@ export const ThemeToggle: VFC<{ data: Theme; setThemeList: any }> = ({ }} /> - - {data.checked && data.patches.map((x) => )} - + {data.checked && data.patches.map((x) => )} ); };