diff --git a/assets/images/sidebar-logo.svg b/assets/images/sidebar-logo.svg new file mode 100644 index 0000000..69e2d0e --- /dev/null +++ b/assets/images/sidebar-logo.svg @@ -0,0 +1,8 @@ + + + + diff --git a/manifest.json b/manifest.json index 8cb8357..17f804f 100644 --- a/manifest.json +++ b/manifest.json @@ -2,13 +2,13 @@ "manifest_version": 2, "name": "Checkmarks", "description": "Checks, sorts, formats bookmarks and loads favicons.", - "version": "1.6.1", + "version": "1.6.2", "icons": { "48": "assets/images/logo.svg", "96": "assets/images/logo.svg" }, "sidebar_action": { - "default_icon": "assets/images/icon-light.svg", + "default_icon": "assets/images/sidebar-logo.svg", "default_title": "Checkmarks", "default_panel": "sidebar/checkmarks-sidebar.html" }, diff --git a/sidebar/checkmarks-sidebar.js b/sidebar/checkmarks-sidebar.js index 3294c44..6969d25 100644 --- a/sidebar/checkmarks-sidebar.js +++ b/sidebar/checkmarks-sidebar.js @@ -125,7 +125,6 @@ function CheckmarksSidebar() { */ this.init = function () { console.debug('DEBUG: Initializing...'); - setIcon(); setFilters(); restoreRun(); // Start button that initializes the chain of events. @@ -217,21 +216,6 @@ function CheckmarksSidebar() { }) }; - let setIcon = function () { - const isDarkScheme = window.matchMedia('(prefers-color-scheme: dark)').matches; - console.info(`INFO: Dark color scheme: ${isDarkScheme}.`); - - browser.sidebarAction.setIcon({ - path: isDarkScheme ? { - 16: '/assets/images/icon-light.svg', - 32: '/assets/images/icon-light.svg' - } : { - 16: '/assets/images/icon-dark.svg', - 32: '/assets/images/icon-dark.svg' - } - }).then(() => console.info('INFO: Icon set.')); - }; - /** * Restores options from local storage or sets default values. * @param options {{}} Options map from local storage.