Skip to content

Commit 9ac4635

Browse files
committed
chore: default to oc-2
1 parent e1cae62 commit 9ac4635

5 files changed

Lines changed: 422 additions & 421 deletions

File tree

packages/app/public/oc-theme-preload.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
;(function () {
2-
var themeId = localStorage.getItem("opencode-theme-id")
3-
if (!themeId) return
2+
var themeId = localStorage.getItem("opencode-theme-id") || "oc-2"
43

54
var scheme = localStorage.getItem("opencode-color-scheme") || "system"
65
var isDark = scheme === "dark" || (scheme === "system" && matchMedia("(prefers-color-scheme: dark)").matches)
@@ -9,9 +8,9 @@
98
document.documentElement.dataset.theme = themeId
109
document.documentElement.dataset.colorScheme = mode
1110

12-
if (themeId === "oc-1") return
11+
if (themeId === "oc-2") return
1312

14-
var css = localStorage.getItem("opencode-theme-css-" + themeId + "-" + mode)
13+
var css = localStorage.getItem("opencode-theme-css-" + mode)
1514
if (css) {
1615
var style = document.createElement("style")
1716
style.id = "oc-theme-preload"

0 commit comments

Comments
 (0)