更改AI图标

main
落雨楓 1 week ago
parent 36871f2fd4
commit 696e707dc8

@ -75,10 +75,11 @@
"scripts": [
"ext.isekai.ai-toolbox.launcher.js"
],
"styles": [],
"styles": [
"ext.isekai.ai-toolbox.launcher.less"
],
"dependencies": [
"ext.isekai.baseWidgets",
"oojs-ui.styles.icons-content"
"ext.isekai.baseWidgets"
],
"targets": [
"desktop",

@ -37,7 +37,7 @@ function launchAIToolbox() {
$(function() {
if (mw.config.get('wgIsArticle')) {
var menuIcon = new OO.ui.IconWidget({ icon: 'robot' });
var menuIcon = new OO.ui.IconWidget({ icon: 'isekai-aitoolbox-iconAI' });
isekai.fab.addButton({
id: 'ai-toolbox-launcher',
label: mw.msg('isekai-ai-toolbox-menubutton'),
@ -47,7 +47,7 @@ $(function() {
launchAIToolbox();
}
});
var bottomMenuIcon = new OO.ui.IconWidget({ icon: 'robot' });
var bottomMenuIcon = new OO.ui.IconWidget({ icon: 'isekai-aitoolbox-iconAI' });
bottomNavBtn = isekai.bottomNav.addButton({
id: 'ai-toolbox-launcher',
label: mw.msg('isekai-ai-toolbox-menubutton'),

@ -0,0 +1,3 @@
.oo-ui-icon-isekai-aitoolbox-iconAI {
background-image: /* @embed */ url(isekai-aitoolbox-ai.svg);
}

@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg id="uuid-ee3702f0-5e23-439f-a920-e0b240512b7a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><defs><style>.uuid-63ddb80f-6b4b-4953-aaf3-3b21ebbfd375{fill:none;}</style></defs><path d="m4.88,2.65h4.22l4.56,14.69h-3.71l-1.83-7.34c-.39-1.46-.77-3.21-1.16-4.71h-.08c-.35,1.54-.75,3.25-1.12,4.71l-1.83,7.34H.32L4.88,2.65Zm-1.46,8.6h7.1v2.72H3.42v-2.72Z"/><path d="m14.75,2.65h3.53v14.69h-3.53s0-14.69,0-14.69Z"/><rect class="uuid-63ddb80f-6b4b-4953-aaf3-3b21ebbfd375" width="20" height="20"/></svg>

After

Width:  |  Height:  |  Size: 545 B

Loading…
Cancel
Save