# 切换主题实际上并没有改变颜色

**URL:** https://meta.discourse.org/t/switching-themes-not-actually-changing-colors/163052
**Category:** Support
**Created:** [2020年九月4日 17:07 UTC](https://meta.discourse.org/t/switching-themes-not-actually-changing-colors/163052 "2020-09-04T17:07:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![reoguy55](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/reoguy55/32/153662_2.png) [@reoguy55](https://meta.discourse.org/u/reoguy55)
#### Post date: [2020年九月4日 17:07 UTC](https://meta.discourse.org/t/switching-themes-not-actually-changing-colors/163052/1 "2020-09-04T17:07:39Z")

</div>

你好（再次）！

今天我收到一些报告，称用户切换了 Discourse 主题后，无法切换回其他主题。

我尝试复现这个错误，发现用户确实可以切换主题，但切换后实际的配色并未正确更新。例如，我当前使用的是论坛的夜间模式，显示效果如下：

 ![Screen Shot 2020-09-04 at 12.01.57 PM](https://global.discourse-cdn.com/meta/original/3X/7/1/71043bc33347455afb5cb995c4dcd45219598711.png)

但当我尝试切换到另一个主题时，只有标题栏的文字颜色发生了变化：

 ![Screen Shot 2020-09-04 at 12.02.16 PM](https://global.discourse-cdn.com/meta/original/3X/b/9/b9c2efe0cf8e644a8dcc848d88ceabda32ead44d.png)

我不确定是什么导致了这种行为。我怀疑可能是我们用于亮色/暗色模式的 [Discourse Dark Theme](https://github.com/pmusaraj/discourse-dark-mode) 组件引起的，但禁用该组件后问题仍未解决。有什么建议吗？

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2020年九月5日 21:22 UTC](https://meta.discourse.org/t/switching-themes-not-actually-changing-colors/163052/2 "2020-09-05T21:22:22Z")

</div>

您使用的是最新版本的 Discourse 吗？如果不是，建议您进行更新。最近有关主题和自动深色/浅色模式方面有一些变更。

---

<div class="post-metadata">

### Author: ![reoguy55](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/reoguy55/32/153662_2.png) [@reoguy55](https://meta.discourse.org/u/reoguy55)
#### Post date: [2020年九月5日 23:07 UTC](https://meta.discourse.org/t/switching-themes-not-actually-changing-colors/163052/3 "2020-09-05T23:07:13Z")

</div>

这似乎解决了问题。另一位管理员曾表示我们已是最新版本，但事实证明并非如此，更新后问题已消失。

谢谢！🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2020年十月5日 23:08 UTC](https://meta.discourse.org/t/switching-themes-not-actually-changing-colors/163052/4 "2020-10-05T23:08:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
