Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
01
Close #15604
例如在明亮主题给选中文本设置特定背景色时,同时应用特定的文本颜色:
原本只能知道会设置成什么背景颜色:
现在能同时知道背景颜色和文本颜色:
同时也与移动端保持一致:
siyuan/app/src/mobile/util/keyboardToolbar.ts
Line 50 in a37e23b
02
给一些元素添加 data-id 属性,便于主题样式定位元素
03
有时候要设置了背景色之后才发现跟文本的颜色对比度不太够,然后重新设置。
实现了动态显示选中文本的颜色,方便判断设置背景色之后的真实效果:
video.webm
p.s. 设置文本颜色的那部分按钮需不需要也实现动态的背景色?