fix(core): update
This commit is contained in:
parent
f4029ed008
commit
47099d02b5
@ -21,15 +21,24 @@ export class ThemeManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public goBright() {
|
private async updateAllConnectedElements() {
|
||||||
this.domtoolsRef.elementInstrumenter.forEachelement(async elementArg => {
|
this.domtoolsRef.elementInstrumenter.forEachelement(async elementArg => {
|
||||||
await this.setThemeStatusForElement(elementArg, true);
|
await this.setThemeStatusForElement(elementArg, this.goBrightBoolean);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public goBright() {
|
||||||
|
this.goBrightBoolean = true;
|
||||||
|
this.updateAllConnectedElements();
|
||||||
|
}
|
||||||
|
|
||||||
public goDark() {
|
public goDark() {
|
||||||
this.domtoolsRef.elementInstrumenter.forEachelement(async elementArg => {
|
this.goBrightBoolean = false;
|
||||||
await this.setThemeStatusForElement(elementArg, false);
|
this.updateAllConnectedElements();
|
||||||
});
|
}
|
||||||
|
|
||||||
|
public toggleDarkBright() {
|
||||||
|
this.goBrightBoolean = !this.goBrightBoolean;
|
||||||
|
this.updateAllConnectedElements();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user