Skip to content

Commit

Permalink
fix: refresh group thumb when switch between dark & light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
117649 committed Apr 25, 2024
1 parent 0f62ccc commit 1edf818
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions resource/modules/UI.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,15 @@ this.UI = {

useDarkTheme: function() {
toggleAttribute(document.body, 'darktheme', brightText.useDarkTheme());

// Refresh group thumb
if(this.single) {
this._resize(true);
for(let groupItem of GroupItems) {
groupItem.setTitle(groupItem.getTitle());
groupItem.updateThumb(true);
}
}
},

goToPreferences: function(aOptions) {
Expand Down

0 comments on commit 1edf818

Please sign in to comment.