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">
This commit is contained in:
parent
2836382f34
commit
2e5ac53bdc
8 changed files with 9 additions and 9 deletions
1
public/img/svg/gitea-matrix.svg
Normal file
1
public/img/svg/gitea-matrix.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xml:space="preserve" style="enable-background:new 0 0 520 520" viewBox="0 0 520 520" class="svg gitea-matrix" width="16" height="16" aria-hidden="true"><path d="M13.7 11.9v496.2h35.7V520H0V0h49.4v11.9H13.7zM166.3 169.2v25.1h.7c6.7-9.6 14.8-17 24.2-22.2 9.4-5.3 20.3-7.9 32.5-7.9 11.7 0 22.4 2.3 32.1 6.8 9.7 4.5 17 12.6 22.1 24 5.5-8.1 13-15.3 22.4-21.5 9.4-6.2 20.6-9.3 33.5-9.3 9.8 0 18.9 1.2 27.3 3.6 8.4 2.4 15.5 6.2 21.5 11.5s10.6 12.1 14 20.6c3.3 8.5 5 18.7 5 30.7v124.1h-50.9V249.6c0-6.2-.2-12.1-.7-17.6-.5-5.5-1.8-10.3-3.9-14.3-2.2-4.1-5.3-7.3-9.5-9.7-4.2-2.4-9.9-3.6-17-3.6-7.2 0-13 1.4-17.4 4.1-4.4 2.8-7.9 6.3-10.4 10.8-2.5 4.4-4.2 9.4-5 15.1-.8 5.6-1.3 11.3-1.3 17v103.3h-50.9v-104c0-5.5-.1-10.9-.4-16.3-.2-5.4-1.3-10.3-3.1-14.9-1.8-4.5-4.8-8.2-9-10.9-4.2-2.7-10.3-4.1-18.5-4.1-2.4 0-5.6.5-9.5 1.6-3.9 1.1-7.8 3.1-11.5 6.1-3.7 3-6.9 7.3-9.5 12.9-2.6 5.6-3.9 13-3.9 22.1v107.6h-50.9V169.2h48zM506.3 508.1V11.9h-35.7V0H520v520h-49.4v-11.9h35.7z"/></svg>
|
After Width: | Height: | Size: 968 B |
|
@ -31,7 +31,7 @@
|
||||||
{{else if eq .HookType "feishu"}}
|
{{else if eq .HookType "feishu"}}
|
||||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/feishu.png">
|
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/feishu.png">
|
||||||
{{else if eq .HookType "matrix"}}
|
{{else if eq .HookType "matrix"}}
|
||||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/matrix.svg">
|
{{svg "gitea-matrix" 26}}
|
||||||
{{else if eq .HookType "wechatwork"}}
|
{{else if eq .HookType "wechatwork"}}
|
||||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/wechatwork.png">
|
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/wechatwork.png">
|
||||||
{{else if eq .HookType "packagist"}}
|
{{else if eq .HookType "packagist"}}
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
{{else if eq .HookType "feishu"}}
|
{{else if eq .HookType "feishu"}}
|
||||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/feishu.png">
|
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/feishu.png">
|
||||||
{{else if eq .HookType "matrix"}}
|
{{else if eq .HookType "matrix"}}
|
||||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/matrix.svg">
|
{{svg "gitea-matrix" 26}}
|
||||||
{{else if eq .HookType "wechatwork"}}
|
{{else if eq .HookType "wechatwork"}}
|
||||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/wechatwork.png">
|
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/wechatwork.png">
|
||||||
{{else if eq .HookType "packagist"}}
|
{{else if eq .HookType "packagist"}}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/feishu.png">{{.locale.Tr "repo.settings.web_hook_name_feishu_or_larksuite"}}
|
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/feishu.png">{{.locale.Tr "repo.settings.web_hook_name_feishu_or_larksuite"}}
|
||||||
</a>
|
</a>
|
||||||
<a class="item" href="{{.BaseLinkNew}}/matrix/new">
|
<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>
|
||||||
<a class="item" href="{{.BaseLinkNew}}/wechatwork/new">
|
<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"}}
|
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/wechatwork.png">{{.locale.Tr "repo.settings.web_hook_name_wechatwork"}}
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
{{else if eq .HookType "feishu"}}
|
{{else if eq .HookType "feishu"}}
|
||||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/feishu.png">
|
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/feishu.png">
|
||||||
{{else if eq .HookType "matrix"}}
|
{{else if eq .HookType "matrix"}}
|
||||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/matrix.svg">
|
{{svg "gitea-matrix" 26}}
|
||||||
{{else if eq .HookType "wechatwork"}}
|
{{else if eq .HookType "wechatwork"}}
|
||||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/wechatwork.png">
|
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/wechatwork.png">
|
||||||
{{else if eq .HookType "packagist"}}
|
{{else if eq .HookType "packagist"}}
|
||||||
|
|
|
@ -784,6 +784,9 @@ a.commit-statuses-trigger {
|
||||||
margin-top: -.25rem;
|
margin-top: -.25rem;
|
||||||
margin-bottom: -.25rem;
|
margin-bottom: -.25rem;
|
||||||
}
|
}
|
||||||
|
.ui.dropdown .menu > .item > svg.img {
|
||||||
|
margin-right: .78571429rem;
|
||||||
|
}
|
||||||
|
|
||||||
.ui.selection.dropdown .menu > .item {
|
.ui.selection.dropdown .menu > .item {
|
||||||
border-color: var(--color-secondary);
|
border-color: var(--color-secondary);
|
||||||
|
|
|
@ -182,7 +182,3 @@
|
||||||
.emoji[aria-label="musical notes"] {
|
.emoji[aria-label="musical notes"] {
|
||||||
filter: invert(100%) hue-rotate(180deg);
|
filter: invert(100%) hue-rotate(180deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
img[src$="/img/matrix.svg"] {
|
|
||||||
filter: invert(80%);
|
|
||||||
}
|
|
||||||
|
|
|
@ -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
|
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"/>
|
v107.6h-50.9V169.2H166.3z"/>
|
||||||
<path d="M506.3,508.1V11.9h-35.7V0H520v520h-49.4v-11.9H506.3z"/>
|
<path d="M506.3,508.1V11.9h-35.7V0H520v520h-49.4v-11.9H506.3z"/>
|
||||||
</svg>
|
</svg>
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Loading…
Reference in a new issue