diff --git a/tests/ext/plugins/Example 4/index.js b/tests/ext/plugins/Example 4/index.js index d142d875..cab2e115 100644 --- a/tests/ext/plugins/Example 4/index.js +++ b/tests/ext/plugins/Example 4/index.js @@ -32,9 +32,10 @@ exports.main = (Plugin, { Logger, Settings, Modals, BdMenu: { BdMenuItems }, Com const scheme = await set.addScheme({ id: 'scheme-1', name: 'Test scheme', - icon_url: 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Cow_female_black_white.jpg/220px-Cow_female_black_white.jpg', + icon_path: 'scheme-icon.jpg', settings: [{ category: 'default', settings: [{ id: 'test', value: 'Some\npresent\n\nmultiline\n\ntext' }] }] }); + scheme.setContentPath(__dirname); set.on('settings-updated', async updatedSettings => { Logger.log('Updated settings', updatedSettings); diff --git a/tests/ext/plugins/Example 4/scheme-icon.jpg b/tests/ext/plugins/Example 4/scheme-icon.jpg new file mode 100644 index 00000000..53a734b7 Binary files /dev/null and b/tests/ext/plugins/Example 4/scheme-icon.jpg differ diff --git a/tests/ext/themes/Example/config.json b/tests/ext/themes/Example/config.json index 57d0288d..2cb7cf59 100644 --- a/tests/ext/themes/Example/config.json +++ b/tests/ext/themes/Example/config.json @@ -4,7 +4,8 @@ "authors": [ "Jiiks" ], "version": 1.0, "description": "Example Theme 1 Description", - "icon": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FscXVlXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3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"main": "index.scss", @@ -244,7 +245,7 @@ "id": "scheme-1", "name": "Test scheme", "hint": "Sets the span border opacity to 1%.", - "icon_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Cow_female_black_white.jpg/220px-Cow_female_black_white.jpg", + "icon_path": "scheme-icon.jpg", "settings": [ { "category": "default", @@ -261,7 +262,7 @@ "id": "scheme-2", "name": "Another test scheme", "hint": "Sets the primary colour to red and the span border opacity to 99%.", - "icon_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Cow_female_black_white.jpg/220px-Cow_female_black_white.jpg", + "icon_path": "scheme-icon.jpg", "settings": [ { "category": "default", @@ -286,7 +287,7 @@ "id": "scheme-3", "name": "Final test scheme", "hint": "Sets the primary colour to transparent and the span border opacity to 50%.", - "icon_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Cow_female_black_white.jpg/220px-Cow_female_black_white.jpg", + "icon_path": "scheme-icon.jpg", "settings": [ { "category": "default", @@ -311,7 +312,7 @@ "id": "scheme-4", "name": "Reset to default background", "hint": "Better than editing user.config.json.", - "icon_url": "https://rawgit.com/samuelthomas2774/BetterDiscordApp/cfdf3e0b4a6f853bc984c77bfbdf664592bd5e42/tests/themes/Example/background.jpg", + "icon_path": "background.jpg", "settings": [ { "category": "default", diff --git a/tests/ext/themes/Example/icon.svg b/tests/ext/themes/Example/icon.svg new file mode 100644 index 00000000..2714a185 --- /dev/null +++ b/tests/ext/themes/Example/icon.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/ext/themes/Example/scheme-icon.jpg b/tests/ext/themes/Example/scheme-icon.jpg new file mode 100644 index 00000000..53a734b7 Binary files /dev/null and b/tests/ext/themes/Example/scheme-icon.jpg differ