mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
add theme selector
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const downloadTheme = (themeName: string, themeURL: string) => {
|
||||
// send message to the background script
|
||||
chrome.runtime.sendMessage({
|
||||
type: 'currentTab',
|
||||
info: 'SetTheme',
|
||||
body: {
|
||||
themeName: themeName,
|
||||
themeURL: themeURL
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export default function ThemeSelector() {
|
||||
return (
|
||||
<button onClick={() => downloadTheme('Dark', 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/themes/test.json')}>Dark</button>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user