diff --git a/README.md b/README.md index 512c2aff..ef9426d5 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,7 @@ If you found a bug, have a suggestion or want to share some feedback, you are we Your contributions are very appreciated! Check out "[How to Contribute](https://github.com/camellia-app/camellia/wiki/How-to-Contribute)" page to get started. This is the main repository of Camellia projects which contains the extension itself, however there are few more repositories with other components that work together. You may find them under [our GitHub organization](https://github.com/camellia-app). + +## Special Thanks + +[@idlist](https://github.com/idlist) for creating the icon 🤩 diff --git a/src/logo.svg b/src/logo.svg new file mode 100644 index 00000000..47fd4d06 --- /dev/null +++ b/src/logo.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/logo_128x128.png b/src/logo_128x128.png new file mode 100644 index 00000000..8ff674f1 Binary files /dev/null and b/src/logo_128x128.png differ diff --git a/src/logo_16x16.png b/src/logo_16x16.png new file mode 100644 index 00000000..b45af87f Binary files /dev/null and b/src/logo_16x16.png differ diff --git a/src/logo_32x32.png b/src/logo_32x32.png new file mode 100644 index 00000000..759373f5 Binary files /dev/null and b/src/logo_32x32.png differ diff --git a/src/logo_48x48.png b/src/logo_48x48.png new file mode 100644 index 00000000..da1fd033 Binary files /dev/null and b/src/logo_48x48.png differ diff --git a/webpack.config.js b/webpack.config.js index 54083bdb..ae7c738f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -44,9 +44,6 @@ const buildExtensionManifest = () => { description: '__MSG_extensionDescription__', homepage_url: 'https://camellia.app', host_permissions: ['https://*.camellia.app/'], - icons: { - 128: 'logo.png', - }, manifest_version: 3, name: 'Camellia', options_ui: { @@ -62,6 +59,12 @@ const buildExtensionManifest = () => { case 'chromium': extensionManifest.background = {}; extensionManifest.background.service_worker = '/background.js'; + extensionManifest.icons = { + 16: 'logo_16x16.png', + 32: 'logo_32x32.png', + 48: 'logo_48x48.png', + 128: 'logo_128x128.png', + }; extensionManifest.minimum_chrome_version = '105'; extensionManifest.offline_enabled = true; extensionManifest.permissions = [...extensionManifest.permissions, 'favicon']; @@ -76,6 +79,9 @@ const buildExtensionManifest = () => { extensionManifest.browser_specific_settings.gecko = {}; extensionManifest.browser_specific_settings.gecko.id = 'firefox@camellia.app'; extensionManifest.browser_specific_settings.gecko.strict_min_version = '121.0'; + extensionManifest.icons = { + 16: 'logo.svg', + }; break; } @@ -179,7 +185,14 @@ const commonConfig = { path: path.resolve(__dirname, 'dist', process.env.TARGET_PLATFORM), }), new CopyWebpackPlugin({ - patterns: [{ from: path.resolve(__dirname, 'translations'), to: '_locales' }, { from: './logo.png' }], + patterns: [ + { from: path.resolve(__dirname, 'translations'), to: '_locales' }, + { from: './logo.svg' }, + { from: './logo_16x16.png' }, + { from: './logo_32x32.png' }, + { from: './logo_48x48.png' }, + { from: './logo_128x128.png' }, + ], }), new HtmlWebpackPlugin({ chunks: ['newtab'],