diff --git a/public/img/svg/gitea-matrix.svg b/public/img/svg/gitea-matrix.svg
new file mode 100644
index 0000000000..cc5e08d3c7
--- /dev/null
+++ b/public/img/svg/gitea-matrix.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/templates/admin/hook_new.tmpl b/templates/admin/hook_new.tmpl
index c5196fce4e..407eae9646 100644
--- a/templates/admin/hook_new.tmpl
+++ b/templates/admin/hook_new.tmpl
@@ -31,7 +31,7 @@
{{else if eq .HookType "feishu"}}
{{else if eq .HookType "matrix"}}
-
+ {{svg "gitea-matrix" 26}}
{{else if eq .HookType "wechatwork"}}
{{else if eq .HookType "packagist"}}
diff --git a/templates/org/settings/hook_new.tmpl b/templates/org/settings/hook_new.tmpl
index 7308cafa20..081f5a2839 100644
--- a/templates/org/settings/hook_new.tmpl
+++ b/templates/org/settings/hook_new.tmpl
@@ -26,7 +26,7 @@
{{else if eq .HookType "feishu"}}
{{else if eq .HookType "matrix"}}
-
+ {{svg "gitea-matrix" 26}}
{{else if eq .HookType "wechatwork"}}
{{else if eq .HookType "packagist"}}
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 @@
{{.locale.Tr "repo.settings.web_hook_name_feishu_or_larksuite"}}
- {{.locale.Tr "repo.settings.web_hook_name_matrix"}}
+ {{svg "gitea-matrix" 20 "img"}}{{.locale.Tr "repo.settings.web_hook_name_matrix"}}
{{.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"}}
{{else if eq .HookType "matrix"}}
-
+ {{svg "gitea-matrix" 26}}
{{else if eq .HookType "wechatwork"}}
{{else if eq .HookType "packagist"}}
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index f2173d6d2b..e49721f7e0 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -784,6 +784,9 @@ a.commit-statuses-trigger {
margin-top: -.25rem;
margin-bottom: -.25rem;
}
+.ui.dropdown .menu > .item > svg.img {
+ margin-right: .78571429rem;
+}
.ui.selection.dropdown .menu > .item {
border-color: var(--color-secondary);
diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less
index b793f99509..fab1b9c3b4 100644
--- a/web_src/less/themes/theme-arc-green.less
+++ b/web_src/less/themes/theme-arc-green.less
@@ -182,7 +182,3 @@
.emoji[aria-label="musical notes"] {
filter: invert(100%) hue-rotate(180deg);
}
-
-img[src$="/img/matrix.svg"] {
- filter: invert(80%);
-}
diff --git a/public/img/matrix.svg b/web_src/svg/gitea-matrix.svg
similarity index 99%
rename from public/img/matrix.svg
rename to web_src/svg/gitea-matrix.svg
index 9a255fd758..63b23fc671 100644
--- a/public/img/matrix.svg
+++ b/web_src/svg/gitea-matrix.svg
@@ -11,4 +11,4 @@
c-4.2-2.7-10.3-4.1-18.5-4.1c-2.4,0-5.6,0.5-9.5,1.6c-3.9,1.1-7.8,3.1-11.5,6.1c-3.7,3-6.9,7.3-9.5,12.9c-2.6,5.6-3.9,13-3.9,22.1
v107.6h-50.9V169.2H166.3z"/>
-
+
\ No newline at end of file