Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Use a blue iOS caret across appearance modes https://github.com/siyuan-note/siyuan/issues/20005

Daniel8d95068a3131
diff --git a/app/src/assets/scss/util/_reset.scss b/app/src/assets/scss/util/_reset.scss
index ff96f0ce3f..91f2c032b0 100644
--- a/app/src/assets/scss/util/_reset.scss
+++ b/app/src/assets/scss/util/_reset.scss
@@ -12,18 +12,18 @@ html {
// 声明当前配色方案,用于修正 iOS 深色模式下输入法候选词高亮项背景丢失等问题 https://github.com/siyuan-note/siyuan/issues/17894
:root[data-theme-mode="dark"] {
color-scheme: dark;
-
- &[data-backend="ios"]:is([data-frontend="desktop"], [data-frontend="mobile"]) {
- // iOS 深色模式下显式设置光标颜色,改善外接键盘输入法候选字的可见性。
- // https://github.com/siyuan-note/siyuan/issues/20005
- caret-color: var(--b3-theme-on-background);
- }
}
:root[data-theme-mode="light"] {
color-scheme: light;
}
+// iOS 使用固定蓝色光标,改善系统与应用明暗模式不同组合下的输入法候选字对比度。
+// https://github.com/siyuan-note/siyuan/issues/20005
+:root[data-backend="ios"]:is([data-frontend="desktop"], [data-frontend="mobile"]) {
+ caret-color: #3575f0;
+}
+
// 语言包或主题不可用时,仍使用系统配色显示启动错误。
.language-load-error {
position: fixed;