Skip to content

Commit

Permalink
fixed a regression with the palette pickers in options dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRaven2000 committed Sep 21, 2020
1 parent 60802e5 commit 15da61f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 20 deletions.
5 changes: 1 addition & 4 deletions chrome/content/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
END LICENSE BLOCK
*/

if (typeof ChromeUtils.import == "undefined")
Components.utils.import('resource://gre/modules/Services.jsm');
else
var {Services} = ChromeUtils.import('resource://gre/modules/Services.jsm');
var {Services} = ChromeUtils.import('resource://gre/modules/Services.jsm');

var QuickFolders_TabURIregexp = {
get _thunderbirdRegExp() {
Expand Down
9 changes: 5 additions & 4 deletions chrome/content/quickfolders-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -3291,8 +3291,9 @@ QuickFolders.Interface = {
}, false);
}
if (QI.isOncommandAttributes || forceOnCommand)
this.setEventAttribute(menuitem, "oncommand","QuickFolders.Interface.setTabColorFromMenu(this, '" + jCol + "')");
*/
if(forceOnCommand)
this.setEventAttribute(menuitem, "oncommand","QuickFolders.Interface.setTabColorFromMenu(this, '" + jCol + "')");
menuColorPopup.appendChild(menuitem);
}
}
Expand Down Expand Up @@ -5958,7 +5959,7 @@ QuickFolders.Interface = {
let btn = element.folder ? element : targetElement, // menu item
entry = QuickFolders.Model.getButtonEntry(btn);
if (entry && entry.customPalette) {
paletteToken = this.getPaletteClassToken(entry.customPalette);
paletteToken = this.getPaletteClassToken(entry.customPalette).trim();
}
}

Expand All @@ -5971,10 +5972,10 @@ QuickFolders.Interface = {

// remove palette name(s)
element.className = this.stripPaletteClasses(element.className, paletteToken);
let hasClass = (paletteToken && element.classList.contains(paletteToken));
let hasClass = (paletteToken && element.classList.contains(paletteToken.trim()));
if (!hasClass) {
if (paletteToken)
element.className += paletteToken;
element.classList.add(paletteToken.trim());
}
} ,

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"manifest_version" : 2,
"name" : "QuickFolders",
"description" : "Bookmark your favorite mail folders in Thunderbird.",
"version" : "5.0pre88",
"version" : "5.0pre90",
"developer" : {
"name" : "Axel Grude",
"url" : "http://quickfolders.org/index.html"
Expand Down
21 changes: 11 additions & 10 deletions popup/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
.testversion p {
background-color: rgb(0,0,90); /* dark blue */
color: yellow !important;
font-weight: 500;
font-weight: bold;
}

#innerwrapper {
Expand Down Expand Up @@ -55,17 +55,18 @@ ul.actions {


body, body * {
background-color: rgb(20,15,05);
color: white;
background-color: white;
color: rgb(20,15,05);
}

body > p {
background-color: rgb(20,15,05);
color: white;
body p, body li {
background-color: white;
color: rgb(20,15,05);
font-size: 12pt;
}

.versionnumber {
color: lightblue;
color: darkblue;
}


Expand Down Expand Up @@ -101,14 +102,14 @@ h1, h2, h3, h4 {
}

h1 {
font-size: 30pt;
font-size: 25pt;
}

h2 {
font-size: 26pt;
font-size: 20pt;
font-weight: normal;
}

h3 {
font-size: 18pt;
font-size: 16pt;
}
2 changes: 1 addition & 1 deletion revision.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
88
90

0 comments on commit 15da61f

Please sign in to comment.