优化windows笔记功能

This commit is contained in:
DelLevin-Home
2026-07-15 02:57:41 +08:00
parent 6f55ab87c7
commit 5dc8d64857
21 changed files with 983 additions and 406 deletions

View File

@@ -13,6 +13,12 @@
.vditor-ir__marker--cursor,
.vditor-content,
.vditor-reset { background: transparent !important; }
/* 所有滚动条统一:极细极淡 */
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.06); border-radius: 2px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.15); }
*::-webkit-scrollbar-corner { background: transparent; }
</style>
</head>
<body>
@@ -72,6 +78,12 @@
}
}
function setBgColor(color) {
document.body.style.backgroundColor = color;
const el = document.querySelector('.vditor-ir') || document.querySelector('.vditor-wysiwyg');
if (el) el.style.backgroundColor = color;
}
function insertValue(text) {
if (vditor) vditor.insertValue(text);
}