diff --git a/extension.json b/extension.json index d6c3fc5..8344e24 100644 --- a/extension.json +++ b/extension.json @@ -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", diff --git a/modules/ext.isekai.ai-toolbox.launcher.js b/modules/ext.isekai.ai-toolbox.launcher.js index 4f2137b..152e671 100644 --- a/modules/ext.isekai.ai-toolbox.launcher.js +++ b/modules/ext.isekai.ai-toolbox.launcher.js @@ -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'), diff --git a/modules/ext.isekai.ai-toolbox.launcher.less b/modules/ext.isekai.ai-toolbox.launcher.less new file mode 100644 index 0000000..9c42aec --- /dev/null +++ b/modules/ext.isekai.ai-toolbox.launcher.less @@ -0,0 +1,3 @@ +.oo-ui-icon-isekai-aitoolbox-iconAI { + background-image: /* @embed */ url(isekai-aitoolbox-ai.svg); +} \ No newline at end of file diff --git a/modules/isekai-aitoolbox-ai.svg b/modules/isekai-aitoolbox-ai.svg new file mode 100644 index 0000000..8d81533 --- /dev/null +++ b/modules/isekai-aitoolbox-ai.svg @@ -0,0 +1 @@ + \ No newline at end of file