mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
reorder settings menu
This commit is contained in:
@@ -26,19 +26,9 @@ const Settings: React.FC = () => {
|
|||||||
|
|
||||||
const settings: SettingsList[] = [
|
const settings: SettingsList[] = [
|
||||||
{
|
{
|
||||||
title: "Notification Collector",
|
title: "Transparency Effects",
|
||||||
description: "Uncaps the 9+ limit for notifications, showing the real number.",
|
description: "Enables transparency effects on certain elements such as blur. (May impact battery life)",
|
||||||
modifyElement: <Switch state={settingsState.notificationCollector} onChange={(isOn: boolean) => switchChange('notificationCollector', isOn)} />
|
modifyElement: <Switch state={settingsState.transparencyEffects} onChange={(isOn: boolean) => switchChange('transparencyEffects', isOn)} />
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Lesson Alerts",
|
|
||||||
description: "Sends a native browser notification ~5 minutes prior to lessons.",
|
|
||||||
modifyElement: <Switch state={settingsState.lessonAlerts} onChange={(isOn: boolean) => switchChange('lessonAlerts', isOn)} />
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Telemetry",
|
|
||||||
description: "Enables/disables error collecting.",
|
|
||||||
modifyElement: <Switch state={settingsState.telemetry} onChange={(isOn: boolean) => switchChange('telemetry', isOn)} />
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Animated Background",
|
title: "Animated Background",
|
||||||
@@ -55,15 +45,25 @@ const Settings: React.FC = () => {
|
|||||||
description: "Customise the overall theme colour of SEQTA Learn.",
|
description: "Customise the overall theme colour of SEQTA Learn.",
|
||||||
modifyElement: <PickerSwatch />
|
modifyElement: <PickerSwatch />
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "Telemetry",
|
||||||
|
description: "Enables/disables error collecting.",
|
||||||
|
modifyElement: <Switch state={settingsState.telemetry} onChange={(isOn: boolean) => switchChange('telemetry', isOn)} />
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "Edit Sidebar Layout",
|
title: "Edit Sidebar Layout",
|
||||||
description: "Customise the sidebar layout.",
|
description: "Customise the sidebar layout.",
|
||||||
modifyElement: <button onClick={() => browser.runtime.sendMessage({ type: 'currentTab', info: 'EditSidebar' })} className='px-4 py-1 text-[0.75rem] dark:bg-[#38373D] bg-[#DDDDDD] dark:text-white rounded-md'>Edit</button>
|
modifyElement: <button onClick={() => browser.runtime.sendMessage({ type: 'currentTab', info: 'EditSidebar' })} className='px-4 py-1 text-[0.75rem] dark:bg-[#38373D] bg-[#DDDDDD] dark:text-white rounded-md'>Edit</button>
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Transparency Effects",
|
title: "Notification Collector",
|
||||||
description: "Enables transparency effects on certain elements such as blur. (May impact battery life)",
|
description: "Uncaps the 9+ limit for notifications, showing the real number.",
|
||||||
modifyElement: <Switch state={settingsState.transparencyEffects} onChange={(isOn: boolean) => switchChange('transparencyEffects', isOn)} />
|
modifyElement: <Switch state={settingsState.notificationCollector} onChange={(isOn: boolean) => switchChange('notificationCollector', isOn)} />
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Lesson Alerts",
|
||||||
|
description: "Sends a native browser notification ~5 minutes prior to lessons.",
|
||||||
|
modifyElement: <Switch state={settingsState.lessonAlerts} onChange={(isOn: boolean) => switchChange('lessonAlerts', isOn)} />
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "BetterSEQTA+",
|
title: "BetterSEQTA+",
|
||||||
|
|||||||
Reference in New Issue
Block a user