aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-11-21 21:25:26 +0100
committerGitHub <noreply@github.com>2022-11-21 20:25:26 +0000
commit2e5ac53bdcbdc796dc4d1597bdf6d717e211bf24 (patch)
tree7ce8ac430ff01636612fb02e8dbce2f7ac2296fb /templates/repo
parent2836382f3487ed3f9ebd57b4356b72784fdf97cb (diff)
downloadgitea-2e5ac53bdcbdc796dc4d1597bdf6d717e211bf24.tar.gz
gitea-2e5ac53bdcbdc796dc4d1597bdf6d717e211bf24.zip
Embed Matrix icon as SVG (#21890)
Embed the SVG icon directly, making further invertion unnecessary because the icon color can now follow text color. <img width="240" alt="Screenshot 2022-11-21 at 20 16 32" src="https://user-images.githubusercontent.com/115237/203142189-89f20de9-c0bd-4d05-92c0-44dadf20d78f.png"> <img width="245" alt="Screenshot 2022-11-21 at 20 16 46" src="https://user-images.githubusercontent.com/115237/203142191-658239ba-1859-49c6-91ad-10ddf14780d0.png">
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/settings/webhook/base_list.tmpl2
-rw-r--r--templates/repo/settings/webhook/new.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/webhook/base_list.tmpl b/templates/repo/settings/webhook/base_list.tmpl
index fa68e12ce9..f96c48d4cd 100644
--- a/templates/repo/settings/webhook/base_list.tmpl
+++ b/templates/repo/settings/webhook/base_list.tmpl
@@ -29,7 +29,7 @@
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/feishu.png">{{.locale.Tr "repo.settings.web_hook_name_feishu_or_larksuite"}}
</a>
<a class="item" href="{{.BaseLinkNew}}/matrix/new">
- <img width="20" height="20" src="{{AssetUrlPrefix}}/img/matrix.svg">{{.locale.Tr "repo.settings.web_hook_name_matrix"}}
+ {{svg "gitea-matrix" 20 "img"}}{{.locale.Tr "repo.settings.web_hook_name_matrix"}}
</a>
<a class="item" href="{{.BaseLinkNew}}/wechatwork/new">
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/wechatwork.png">{{.locale.Tr "repo.settings.web_hook_name_wechatwork"}}
diff --git a/templates/repo/settings/webhook/new.tmpl b/templates/repo/settings/webhook/new.tmpl
index ea5a3eca3c..2722e099be 100644
--- a/templates/repo/settings/webhook/new.tmpl
+++ b/templates/repo/settings/webhook/new.tmpl
@@ -24,7 +24,7 @@
{{else if eq .HookType "feishu"}}
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/feishu.png">
{{else if eq .HookType "matrix"}}
- <img width="26" height="26" src="{{AssetUrlPrefix}}/img/matrix.svg">
+ {{svg "gitea-matrix" 26}}
{{else if eq .HookType "wechatwork"}}
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/wechatwork.png">
{{else if eq .HookType "packagist"}}