You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
目前这些功能均已通过插件实现
Support setting multiple fonts
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
Activity
mozhux commentedon Apr 19, 2023
设置多种字体是支持分别设置中英文字体、数字公式字体、代码块字体?
88250 commentedon Apr 19, 2023
mozhux commentedon Apr 19, 2023
好的,支持移动端吗
88250 commentedon Apr 19, 2023
目前还不确定能否支持,后面研究一下,主要是看能否在移动端读取和解析系统字体列表。
Zuoqiu-Yingyi commentedon Jun 8, 2023
目前这些功能均已通过插件实现
编辑器支持多字体可能需要本体继续改进
88250 commentedon Oct 18, 2023
弱弱滴问一下,这个目前已经完全能够通过插件支持了吗?
Zuoqiu-Yingyi commentedon Oct 19, 2023
编辑器多字体还不支持,也没用比较优雅的插件实现方案
88250 commentedon Oct 19, 2023
你指的是哪种情况,目前插件主要受限于?
Zuoqiu-Yingyi commentedon Oct 19, 2023
编辑器中字体在样式标签
style#editorFontSize
中定义, 该样式标签由思源根据用户设置覆盖式更新Vanessa219 commentedon Oct 20, 2023
是需要一个字体设置的接口来修改这些字体就可以了么?
Zuoqiu-Yingyi commentedon Oct 22, 2023
仅需要添加一个 CSS 变量
--b3-font-family-protyle
替代#editorFontSize
中的字体列表, 这样用户就可以通过主题/代码片段/插件覆写该 CSS 变量实现自定义字体列表🎨 #8036
23 remaining items
Zuoqiu-Yingyi commentedon Oct 29, 2023
这里规则应该让步于需求场景
目前的需求场景如下
siyuanStyle
,themeDefaultStyle
与base.xxx.css
的需求, 否则只能引入!important
pluginsStyle
,siyuanStyle
,themeDefaultStyle
与base.xxx.css
的需求, 否则只能引入!important
themeStyle
,pluginsStyle
,siyuanStyle
,themeDefaultStyle
与base.xxx.css
的需求, 否则只能引入!important
如此看来, 下方的顺序是合理的
<link href="base.xxx.css">
<link id="themeDefaultStyle">
<style id="siyuanStyle">
<style id="pluginsStyle">
<link id="themeStyle">
<style id="snippet...">
Vanessa219 commentedon Oct 29, 2023
社区开发者既然有覆盖
themeDefaultStyle
的需求,为什么就没有覆盖themeStyle
的需求呢?其实你可以再换个角度这样来理解:某一个主题突然变成了官方主题,他就会成 从
themeStyle
变为themeDefaultStyle
了,当然也可能从themeDefaultStyle
变为themeStyle
。这样一来,按照以下顺序无论怎么变都不会影响到用户。<link href="base.xxx.css">
<link id="themeDefaultStyle">
<link id="protyleHljsStyle">
<link id="themeStyle">
<style id="siyuanStyle">
<style id="pluginsStyle">
<style id="snippet...">
Zuoqiu-Yingyi commentedon Oct 29, 2023
因为可以直接使用
:root[theme="foo"]
选择器以更高的优先级指定覆盖某一主题的样式Zuoqiu-Yingyi commentedon Oct 29, 2023
这种情况不会发生,因为官方主题仅定义了一系列 CSS 变量,而社区主题还有一大堆调整的样式
renderSnippet
,renderSnippets
#9559🎨 siyuan-note/siyuan#8036 fix https://ld246.com/article/1698243367105
🎨 siyuan-note/siyuan#8036
🎨 siyuan-note/siyuan#8036
🎨 siyuan-note/siyuan#8036
🎨 siyuan-note/siyuan#8036
88250 commentedon Apr 18, 2025
目前社区已经提供了一个字体设置插件,原生就不考虑变更了,谢谢。