addons/firefox-addons/feed-preview

changeset 22:38b20de704a0

Use seperate grey icon for the page action

This does not stand out so much as the orange icon espeacially when using dark
themes and should be readable on any theme since there is no transparency.
Currently there is neither a way for addons to specify themed icons for page
actions nor is it possible to use the browser's foreground and background color
as native page action icons do.
author Guido Berhoerster <guido+feed-preview@berhoerster.name>
date Sun Dec 16 10:22:19 2018 +0100 (17 months ago)
parents 66e18d77739d
children 7f1b69e9798d
files Makefile icons/feed-preview-action.svg manifest.json.in
line diff
     1.1 --- a/Makefile	Thu Dec 13 12:55:03 2018 +0100
     1.2 +++ b/Makefile	Sun Dec 16 10:22:19 2018 +0100
     1.3 @@ -40,6 +40,7 @@
     1.4  		content_scripts/feed-probe.js \
     1.5  		content_scripts/feed-readers.js \
     1.6  		icons/feed-preview.svg \
     1.7 +		icons/feed-preview-action.svg \
     1.8  		$(BITMAP_ICONS) \
     1.9  		js/background.js \
    1.10  		js/feed-parser.js \
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/icons/feed-preview-action.svg	Sun Dec 16 10:22:19 2018 +0100
     2.3 @@ -0,0 +1,17 @@
     2.4 +<!--
     2.5 +Copyright (C) 2018 Guido Berhoerster <guido+feed-preview@berhoerster.name>
     2.6 +
     2.7 +This Source Code Form is subject to the terms of the Mozilla Public
     2.8 +License, v. 2.0. If a copy of the MPL was not distributed with this
     2.9 +file, You can obtain one at http://mozilla.org/MPL/2.0/.
    2.10 +-->
    2.11 +<svg version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
    2.12 +  <rect y="0" width="16" height="16" rx="3" ry="3" fill="#737373"/>
    2.13 +  <g>
    2.14 +    <circle cx="4" cy="12" r="2" fill="#f9f9fa"/>
    2.15 +    <g fill="none" stroke="#f9f9fa" stroke-width="2" stroke-linecap="round">
    2.16 +      <path d="m3 7c4 0 6 2 6 6"/>
    2.17 +      <path d="m3 3c6 0 10 4 10 10"/>
    2.18 +    </g>
    2.19 +  </g>
    2.20 +</svg>
     3.1 --- a/manifest.json.in	Thu Dec 13 12:55:03 2018 +0100
     3.2 +++ b/manifest.json.in	Sun Dec 16 10:22:19 2018 +0100
     3.3 @@ -40,7 +40,7 @@
     3.4      ],
     3.5      "page_action": {
     3.6          "browser_style": true,
     3.7 -        "default_icon": "icons/feed-preview.svg",
     3.8 +        "default_icon": "icons/feed-preview-action.svg",
     3.9          "default_title": "Feeds",
    3.10          "default_popup": "popup/feed-selection.html"
    3.11      },