Skip to content

使用社区主题时外观模式跟随系统切换异常 #5985

Closed
@Temacc0531

Description

@Temacc0531

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

描述问题 Describe the problem

系统环境:深色模式
思源设置:明亮模式 v2.2.1
升级 v2.2.2
打开思源,变成暗黑模式(异常)
切换为明亮模式,界面刷新变成明亮模式(正常)
重启思源,又变成暗黑模式(异常)
切换为跟随系统,界面刷新变成明亮模式(异常)
重启思源,又变成暗黑模式(未知)

期待的结果 Expected result

截屏或者录屏演示 Screenshot or screen recording presentation

No response

版本环境 Version environment

- Version: v2.2.2
- Operating System: Windows 10

日志文件 Log file

更多信息 More information

No response

Activity

Zuoqiu-Yingyi

Zuoqiu-Yingyi commented on Sep 27, 2022

@Zuoqiu-Yingyi
Contributor

该 bug 可能的原因: 切换主题模式/页面加载时未加载默认外观配置文件及第三方外观配置文件, 如下所示

<link id="themeDefaultStyle" rel="stylesheet" type="text/css" href="/appearance/themes/midnight/theme.css?v=2.2.2">
<link id="protyleHljsStyle" rel="stylesheet" type="text/css" href="/stage/protyle/js/highlight.js/styles/atom-one-light.min.css?v=11.5.0">
<link id="themeStyle" rel="stylesheet" type="text/css" href="/appearance/themes/Dark+/theme.css?v=1.3.1">
<script src="/appearance/themes/Dark+/theme.js?v=1.3.1" async="" id="themeScript"></script>
<script src="/appearance/icons/notion-icon/icon.js?v=1.9.2" async="" id="iconScript"></script>
88250

88250 commented on Sep 27, 2022

@88250
Member

@Temacc0531 使用的是默认主题还是?

changed the title [-]外观模式切换功能异常[/-] [+]使用社区主题时外观模式跟随系统切换异常[/+] on Sep 27, 2022
removed their assignment
on Sep 27, 2022
added this to the 2.2.3 milestone on Sep 27, 2022
added a commit that references this issue on Sep 27, 2022
UltramarineSky

UltramarineSky commented on Sep 27, 2022

@UltramarineSky

升级前用的是黑暗模式dark+,升级后变成了明亮模式的salt,设置为黑暗模式后切换为dark+,但重启软件后自动变成明亮模式了,跟系统白天/黑夜模式没关系,电脑设置成夜间模式,重启后打开还是明亮模式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@Zuoqiu-Yingyi@UltramarineSky@Temacc0531

      Issue actions

        使用社区主题时外观模式跟随系统切换异常 · Issue #5985 · siyuan-note/siyuan