Skip to content

Commit

Permalink
💄 ui(主题切换): 主题切换按钮放在切换日夜主题的后面
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Jan 3, 2024
1 parent 6d35a8d commit 49e02e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ window.theme.updateStyle = function (id, href) {

function create_theme_button() {
// light 主题下更新样式:为了新建窗口也能自动加载样式
const drag = document.getElementById('drag'); // 标题栏
const drag = document.getElementById('barMode'); // 标题栏
const themeStyle = document.getElementById('themeStyle'); // 当前主题引用路径
if (themeStyle) {
const THEME_ROOT = new URL(themeStyle.href).pathname.replace('theme.css', ''); // 当前主题根目录
Expand Down

0 comments on commit 49e02e2

Please sign in to comment.