fix(core): update
This commit is contained in:
		| @@ -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(); | ||||||
|   } |   } | ||||||
| } | } | ||||||
		Reference in New Issue
	
	Block a user