···11+<script lang="ts">
22+ import Toggle from "@/entrypoints/popup/components/inputs/Toggle.svelte";
33+ import type { Settings } from ".";
44+55+ let { settings }: { settings: Settings } = $props();
66+</script>
77+88+<Toggle
99+ text="Close current tab"
1010+ description="When switching to another tab, close the current one."
1111+ size="small"
1212+ id="closeCurrentTab"
1313+ checked={settings.closeCurrentTab.state.toggle}
1414+ update={async (toggle) => {
1515+ settings.closeCurrentTab.set({ toggle });
1616+ }} />
+16
src/entrypoints/plugins/modernIcons/Menu.svelte
···11+<script lang="ts">
22+ import Toggle from "@/entrypoints/popup/components/inputs/Toggle.svelte";
33+ import type { Settings } from ".";
44+55+ let { settings }: { settings: Settings } = $props();
66+</script>
77+88+<Toggle
99+ text="Filled icons"
1010+ description="Whether the icons should be filled or outlined."
1111+ size="small"
1212+ id="filled"
1313+ checked={settings.filled.state.toggle}
1414+ update={async (toggle) => {
1515+ settings.filled.set({ toggle });
1616+ }} />
+5-3
src/entrypoints/plugins/modernIcons/index.ts
···1010import styleText from "./styles.css?inline";
1111import type { Toggle } from "@/utils/storage";
1212import type { StorageState } from "@/utils/storage/state.svelte";
1313+import menu from "./Menu.svelte?url";
13141415const ID = "modernIcons";
1516const PLUGIN_ID = `plugin-${ID}`;
16171717-type Settings = {
1818+export type Settings = {
1819 filled: StorageState<Toggle>;
1920};
2021···2425 name: "Modern Icons",
2526 description: "Modernise the icons across Schoolbox.",
2627 },
2828+ true,
2729 {
2828- toggle: true,
2929- settings: {
3030+ config: {
3031 filled: { toggle: true },
3132 },
3333+ menu,
3234 },
33353436 async (settings) => {
+2-3
src/entrypoints/plugins/progressBar/index.ts
···1313 name: "Progress Bar",
1414 description: "Displays a progress bar below the timetable to show the time of the day.",
1515 },
1616- {
1717- toggle: true,
1818- },
1616+ true,
1717+ null,
1918 () => {
2019 if (window.location.pathname === "/" && document.querySelector(".timetable")) {
2120 const periodList = getListOfPeriods();