# 薄荷主题

**URL:** https://meta.discourse.org/t/mint-theme/202822
**Category:** Theme
**Tags:** official, mint-theme
**Created:** [2021年九月7日 12:06 UTC](https://meta.discourse.org/t/mint-theme/202822 "2021-09-07T12:06:24Z")
**Posts on this page:** 9
**Page:** 4

<div class="post-metadata">

### Author: ![Crebekah](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@Crebekah](https://meta.discourse.org/u/Crebekah)
#### Post date: [2025年九月24日 06:12 UTC](https://meta.discourse.org/t/mint-theme/202822/63 "2025-09-24T06:12:15Z")

</div>

您好！有什么办法可以去除横幅上的渐变，只保留一种纯色吗？谢谢。

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2025年十月3日 09:22 UTC](https://meta.discourse.org/t/mint-theme/202822/64 "2025-10-03T09:22:45Z")

</div>

今天，我注意到 [try.discourse.org](http://try.discourse.org) 上的通知菜单按钮图标不可见。我添加了使用 Air 主题的截图作为对比。正如你所见，“dismiss”前面的 和 的颜色与背景色相同。

 ![Screenshot_20251003_111038_Chrome](https://global.discourse-cdn.com/meta/original/4X/3/b/2/3b2d0a2765f677718713eefc9814833da6cad804.jpeg) ![Screenshot_20251003_111113_Chrome](https://global.discourse-cdn.com/meta/original/4X/d/6/3/d63532d5bb56e24c79c9397c7de60ab37b9906a4.jpeg)

---

<div class="post-metadata">

### Author: ![meghna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meghna/32/453356_2.png) [@meghna](https://meta.discourse.org/u/meghna)
#### Post date: [2025年十月6日 12:08 UTC](https://meta.discourse.org/t/mint-theme/202822/66 "2025-10-06T12:08:53Z")

</div>

此提交已修复：

> <https://github.com/discourse/discourse-mint-theme/commit/7305bfb59d051e02027e5f5347df969010d9c7bc>

---

<div class="post-metadata">

### Author: ![hel\_Sinki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hel_sinki/32/525916_2.png) [@hel\_Sinki](https://meta.discourse.org/u/hel_Sinki)
#### Post date: [2025年十二月6日 03:50 UTC](https://meta.discourse.org/t/mint-theme/202822/68 "2025-12-06T03:50:44Z")

</div>

````plaintext
您好，

我在从官方 Git 仓库更新 Mint 主题时遇到了一个问题。

**环境**

- Discourse 版本：`3.6.0.beta3-latest` (tests-passed)
- 主题来源：https://github.com/discourse/discourse-mint-theme (默认分支)
- 安装方式：通过 `/admin/customize/themes` → “安装” → “从 git 仓库 URL”

**问题**

当我在管理界面（`/admin/customize/themes`）点击 Mint 主题的 **“更新到最新”** 时，更新失败并出现以下错误对话框：

> 主题截图必须是以下格式之一：.jpg、.jpeg、.gif、.png。截图 light.webp 格式无效。

在 `about.json` 中，该主题当前引用：

```json
"screenshots": [
  "screenshots/light.webp",
  "screenshots/dark.webp"
]

````

然而，根据 Discourse 主题文档，主题截图只允许是 jpg、jpeg、gif 或 png，因此 .webp 被核心验证拒绝了。

**重现步骤**

1. 在 /admin/customize/themes 中从官方 Git 仓库安装 Mint 主题。
2. 进入 Mint 主题条目。
3. 点击 **“更新到最新”** 。
4. 观察到关于 light.webp 格式无效的错误对话框。

**建议的修复**

我已提交一个 PR，将截图转换为 PNG 并相应地更新 about.json：

- screenshots/light.webp → screenshots/light.png
- screenshots/dark.webp → screenshots/dark.png
- about.json 更新为：

```plaintext
"screenshots": [
  "screenshots/light.png",
  "screenshots/dark.png"
]

```

PR：[Use PNG screenshots for Discourse compatibility by ieduer · Pull Request #64 · discourse/discourse-mint-theme · GitHub](https://github.com/discourse/discourse-mint-theme/pull/64)

进行此更改后，主题在管理界面中可以干净地更新，并且截图可以正确显示。

如果您对如何处理截图有偏好的方式（或者核心未来是否应该支持 .webp），我乐意调整 PR。

```plaintext

```

---

<div class="post-metadata">

### Author: ![yuriy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yuriy/32/498097_2.png) [@yuriy](https://meta.discourse.org/u/yuriy)
#### Post date: [2025年十二月6日 11:03 UTC](https://meta.discourse.org/t/mint-theme/202822/69 "2025-12-06T11:03:36Z")

</div>

@hel_Sinki，我相当确定您的 Discourse 版本中不包含此提交：[https://github.com/discourse/discourse/commit/a76a4430c79be28afae425edc7dba6e916c7099f。](https://github.com/discourse/discourse/commit/a76a4430c79be28afae425edc7dba6e916c7099f%E3%80%82)

您不需要转换为 `.png`，而是确保您的站点运行的是最新版本的 Discourse。

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2025年十二月6日 11:24 UTC](https://meta.discourse.org/t/mint-theme/202822/70 "2025-12-06T11:24:41Z")

</div>

`.discourse-compatibility` 文件中是否有相应的条目可以阻止您在没有所需的 Discourse 版本的情况下更新主题？否则，添加此条目可能会很有用。

> [@Pinning plugin and theme versions for older Discourse installs (.discourse-compatibility)](https://meta.discourse.org/t/pinning-plugin-and-theme-versions-for-older-discourse-installs-discourse-compatibility/272665):
>
> open_book Background Sometimes themes/plugins need to make changes which are only compatible with the latest version of Discourse. In that situation, older versions of Discourse can be instructed to use an older ‘pinned’ version of the plugin. This is achieved using a .discourse-compatibility file in the root of a theme/plugin repository. It’s a YAML file where keys specify the Discourse core version, and the values represent the associated version of your theme/plugin. Discourse core versio…

我猜基于新版本的命名，现在有了一些新的东西。🤔

---

<div class="post-metadata">

### Author: ![cvx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cvx/32/152146_2.png) [@cvx](https://meta.discourse.org/u/cvx)
#### Post date: [2025年十二月8日 10:32 UTC](https://meta.discourse.org/t/mint-theme/202822/71 "2025-12-08T10:32:51Z")

</div>

在 [PR #65](https://github.com/discourse/discourse-mint-theme/pull/65) 中添加了 .d-compat 条目（并对其他受影响的主题也做了同样的操作）

---

<div class="post-metadata">

### Author: ![Karthik\_K1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karthik_k1/32/489159_2.png) [@Karthik\_K1](https://meta.discourse.org/u/Karthik_K1)
#### Post date: [2026年九月15日 09:07 UTC](https://meta.discourse.org/t/mint-theme/202822/72 "2026-09-15T09:07:16Z")

</div>

Ask AI 功能在 Mint 主题下无法正常工作。我已经就此发布过帖子。有人能帮忙看看吗？：

[https://meta.discourse.org/t/how-to-fix-the-blank-ask-ai-response/411572](https://meta.discourse.org/t/how-to-fix-the-blank-ask-ai-response/411572)

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2026年九月15日 14:09 UTC](https://meta.discourse.org/t/mint-theme/202822/73 "2026-09-15T14:09:05Z")

</div>

谢谢！“询问 AI” 功能的兼容性问题现已修复。

[上一頁](https://meta.discourse.org/t/mint-theme/202822.md?page=3)
