fix(app): remove oc-1 theme
This commit is contained in:
parent
5cc61e1b53
commit
6388cbaf92
7 changed files with 126 additions and 50 deletions
|
|
@ -1,5 +1,13 @@
|
|||
;(function () {
|
||||
var themeId = localStorage.getItem("opencode-theme-id") || "oc-2"
|
||||
var key = "opencode-theme-id"
|
||||
var themeId = localStorage.getItem(key) || "oc-2"
|
||||
|
||||
if (themeId === "oc-1") {
|
||||
themeId = "oc-2"
|
||||
localStorage.setItem(key, themeId)
|
||||
localStorage.removeItem("opencode-theme-css-light")
|
||||
localStorage.removeItem("opencode-theme-css-dark")
|
||||
}
|
||||
|
||||
var scheme = localStorage.getItem("opencode-color-scheme") || "system"
|
||||
var isDark = scheme === "dark" || (scheme === "system" && matchMedia("(prefers-color-scheme: dark)").matches)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue