improve group toolbar opacity update on theme change

This commit is contained in:
zombieFox 2021-09-24 10:21:38 +01:00
parent 41e83f1768
commit 080346f639
4 changed files with 5 additions and 19 deletions

View File

@ -316,12 +316,6 @@ export const CustomThemeTile = function({
header.element.search.update.style();
if (group.area.current.length > 0) {
group.area.current[0].update.style();
};
data.save();
}

View File

@ -188,6 +188,7 @@ group.edit = {
applyCSSState('group.edit');
if (group.area.current.length > 0) {
group.area.current.forEach((item, i) => {
if (state.get.current().group.edit) {
@ -197,6 +198,7 @@ group.edit = {
};
});
};
}

View File

@ -1137,12 +1137,6 @@ themeSetting.opacity = (parent) => {
header.element.search.update.style();
if (group.area.current.length > 0) {
group.area.current[0].update.style();
};
data.save();
}
@ -1230,7 +1224,9 @@ themeSetting.opacity = (parent) => {
if (group.area.current.length > 0) {
group.area.current[0].update.style();
group.area.current.forEach((item, i) => {
item.update.style();
});
};

View File

@ -311,12 +311,6 @@ export const PresetThemeTile = function({
header.element.search.update.style();
if (group.area.current.length > 0) {
group.area.current[0].update.style();
};
data.save();
}