# 改进主题浏览和预览

**URL:** https://meta.discourse.org/t/improvements-to-theme-browsing-and-previewing/188928
**Category:** Feature
**Created:** [2021年五月2日 21:59 UTC](https://meta.discourse.org/t/improvements-to-theme-browsing-and-previewing/188928 "2021-05-02T21:59:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![oshyan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oshyan/32/212644_2.png) [@oshyan](https://meta.discourse.org/u/oshyan)
#### Post date: [2021年五月2日 21:59 UTC](https://meta.discourse.org/t/improvements-to-theme-browsing-and-previewing/188928/1 "2021-05-02T21:59:57Z")

</div>

大家好，Discourse 团队！我想谦卑地请求对主题浏览和预览体验进行一些改进。我搜索了一下，没找到其他相关话题，如果遗漏了或这是重复的，请见谅。我也意识到这可能被视为多个“功能请求”，但我把它们都列在这里，因为它们都相关，且是改进的不同方式，其中一些（如果有的话）可能不会被实施。我希望你们更喜欢这种方式，而不是我分别发布 5 个独立的功能请求。

## 一种在缩略图视图中仅查看完整主题的方法

当前主题类别面临的一个首要挑战是，虽然主类别视图显示了缩略图（太好了！），但它同时包含了主题组件和完整主题，甚至包括标记为损坏的内容。有一个仅针对完整主题的标签，但它_不_以缩略图形式显示：  
[https://meta.discourse.org/tags/c/theme/61/theme-full](https://meta.discourse.org/tags/c/theme/61/theme-full)

因此，据我所知，无法仅查看带有预览的“完整主题”。所以我要么得在“所有主题相关内容”视图中筛选，要么就得放弃预览。这两种方法都不如一个带有缩略图的过滤后的“完整主题”视图高效和愉快。

## 所有主题的缩略图/图片

另一个相关问题是，有些主题似乎没有缩略图，原因可能是未包含图片，或者预览无法从包含的图片中正确加载，如下例所示：

> [@Alien Night Theme - A free Dark Theme for Discourse](https://meta.discourse.org/t/alien-night-theme-a-free-dark-theme-for-discourse/54175):
>
> discourse2Summary Discourse Alien Night is a dark focused clean theme with the Dark/Light toggle component in mind to enhance your forum!eyeglassesPreview [Preview on theme-creator.discourse.org](https://theme-creator.discourse.org/theme/B-iggy/alien-night-theme)hammer_and_wrenchRepository Link [GitHub - B-iggy/alien-night-discourse-dark-theme: A night friendly dark Discourse theme - dark/light switcher inclusive](https://github.com/B-iggy/alien-night-discourse-dark-theme)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Note: with the release 4.0.0 I redesig…

或者主题预览中显示的预览图片毫无用处：

> [@Grogu, a theme inspired by "The Mandalorian"](https://meta.discourse.org/t/grogu-a-theme-inspired-by-the-mandalorian/174758):
>
> On this New Year’s Day I present you the theme which is closest to my heart. heart The theme is inspired by [Grogu](https://en.wikipedia.org/wiki/Grogu) from (my favourite) [The Mandalorian](https://en.wikipedia.org/wiki/The_Mandalorian) TV series. I travelled far across the galaxy to fine tune the colour scheme to match Grogu’s appearance and maintain [Star Wars](https://en.wikipedia.org/wiki/Star_Wars) aesthetic all-around. This is the way. [Disney\_Mandalorian\_S2\_Helmet\_H3] Homepage with composer open: Full page search: Topic page: …

我意识到其中一些主题是由第三方发布的，或者是非官方的，但很明显，该类别中_确实_进行了一些_审核_。因此，如果能确保有可用的预览图片，那就太好了。

有一个第三方网站似乎至少以_可预览_（即带缩略图）的方式对主题与组件等进行了分类：  
[https://discoursethemes.dev/themes/](https://discoursethemes.dev/themes/)  
然而，它并非官方来源，在 Google 搜索结果中排名较低（这里的 Meta 主题自然排名更高），不清楚其更新频率如何（尽管它可能直接从这里 Meta 的主题类别中获取数据？），并且它也存在与这里相同的缺乏缩略图的问题（可能是因为它从这里获取数据）。

## 主题选择器_嵌入_主题预览实例中

另一个能有所帮助的措施是，提供一个 Discourse 实例（你们已经拥有用于动态预览主题的实例），其中所有主题都设置在一个_选择器_中。目前的预览方式很笨拙，你必须导航到这里的 Meta 中的每个主题 → 主题，然后点击链接进行预览。这确实是个小问题，但当你试图比较多个主题时，确实有点笨拙，而且浪费时间。

## 在 Discourse 内部进行主题浏览/预览和安装

当然，Discourse 自定义设置本身也有主题安装功能。但它只显示“热门”链接，并非完整目录（我意识到这是有意为之），缺乏预览，并且同样混合了组件和完整主题（无法过滤）。同样，我理解这是主题安装程序中“热门”类别的有意设计，但我建议，既然_已经_存在某种连接来动态填充热门主题列表（可能是来自 Meta），希望你们未来能考虑添加_完整_的非损坏主题列表，理想情况下_带有_预览，并可按完整主题、组件等进行过滤。实际上，这两个功能可以直接在左侧添加两个额外的标签页，位于“热门”下方和“来自您的设备”上方。即：

- 热门
- 完整主题目录
- 主题组件目录
- 来自您的设备
- 来自 Git 仓库

目前的变通方法是，我安装所有可能想要使用的所有主题。由于 Discourse 内部缺乏真正的目录，这是一个手动过程，并且还需要安装一个主题组件才能真正使其功能完整（用于主题切换——我知道可以通过偏好设置完成，但这对于全面测试许多不同选项来说并不理想）。目前这还算可行，但我花了一段时间才意识到这是目前最佳的解决方案（据我所知）。其他新用户肯定会从主题列表、预览等方面的改进中受益。

感谢阅读并考虑这些建议！我知道其中一些可能显得吹毛求疵，但作为一名相对较新的 Discourse 管理员，我认为这是一个可以更加友好的领域，而且一些改进可能并不需要太多精力。
