Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Use themed button on 32px as well
Browse files Browse the repository at this point in the history
  • Loading branch information
denschub committed Apr 29, 2016
1 parent bebc291 commit 54b784e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
@@ -1,5 +1,9 @@
# 0.5.0

## Bug fixes

* Use the inverted toolbar icon if needed on high resolutions.

## Refactorings

* Use the default favicon instead of no favicon at all. (PR [35](https://github.com/denschub/firefox-tabgroups/pull/35))
Expand Down
12 changes: 7 additions & 5 deletions src/index.js
Expand Up @@ -57,14 +57,16 @@ TabGroups.prototype = {

createPanelButton: function() {
let iconBase = "chrome://simplified-tabgroups/content/icons/togglebutton/";
let toolBarButton = Utils.themeSwitch({
dark: iconBase + "icon-inverted-32.png",
light: iconBase + "icon-32.png"
});

this._panelButton = ToggleButton({
id: "tabgroups-show",
icon: {
"16": Utils.themeSwitch({
dark: iconBase + "icon-inverted-32.png",
light: iconBase + "icon-32.png"
}),
"32": iconBase + "icon-32.png",
"16": toolBarButton,
"32": toolBarButton,
"64": iconBase + "icon-64.png"
},
label: _("panelButton_label")
Expand Down

0 comments on commit 54b784e

Please sign in to comment.