# 在“Events plugin”日历中使用“Category icons”的主题组件

**URL:** <https://meta.discourse.org/t/theme-component-to-use-category-icons-in-events-plugin-calendar/156766>\
**Category:** Theme component\
**Created:** [2020年七月4日 09:19 UTC](https://meta.discourse.org/t/theme-component-to-use-category-icons-in-events-plugin-calendar/156766 "2020-07-04T09:19:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![oca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oca/32/156060_2.png) [@oca](https://meta.discourse.org/u/oca)\
**Post date:** [2020年七月4日 09:19 UTC](https://meta.discourse.org/t/theme-component-to-use-category-icons-in-events-plugin-calendar/156766/1 "2020-07-04T09:19:35Z")

</div>

# Discourse 事件日历图标

[仓库](https://framagit.org/oca/discourse-events-calendar-icons.git): `https://framagit.org/oca/discourse-events-calendar-icons.git`

此组件需要以下两个组件：

- [分类图标组件](https://meta.discourse.org/t/category-icons-component/104683)
- [事件插件](https://meta.discourse.org/t/events-plugin/69776)

## 修改前后

 ![calendar-with-icons](https://global.discourse-cdn.com/meta/original/4X/3/0/e/30eefad1ef6e3f544e15e09195c7bb596fbc44b8.png)

 ![calendar-with-bullets](https://global.discourse-cdn.com/meta/original/4X/b/5/c/b5c41b27349194c0e026070a9419266fbb7fd799.png)

它会移除日历视图中的项目符号，并替换为在 [分类图标组件] 设置中定义的分类图标。如果没有分类图标，项目符号仍会被移除，正如您可以看到的“Vendredi（星期五）3 日”所示。

## 设置

- `show locked category icon`：为私密分类添加锁图标

## 如何安装

- 按常规方式安装该组件。[如何安装主题或主题组件？](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682)

[仓库](https://framagit.org/oca/discourse-events-calendar-icons.git): `https://framagit.org/oca/discourse-events-calendar-icons.git`

---

_[View the full topic](https://meta.discourse.org/t/theme-component-to-use-category-icons-in-events-plugin-calendar/156766)._
