MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onAppearanceChanged

Method onAppearanceChanged

tools/mcsim/main.js:199–214  ·  view source on GitHub ↗
(application, which)

Source from the content-addressed store, hash-verified

197 }
198 }
199 onAppearanceChanged(application, which) {
200 this.appearance = which;
201 this.onColorsChanged(application);
202 if (!application.first) {
203 application.add(new MainContainer(this));
204 if (this.devicesPath)
205 this.reloadDevices(application);
206 else
207 this.selectDevice(application, -1);
208
209 if (this.onOpenFileList)
210 application.defer("onOpenFileCallback");
211 else
212 this.launchScreen();
213 }
214 }
215 onColorsChanged(application) {
216 let appearance = this.colors;
217 if (appearance == 2)

Callers

nothing calls this directly

Calls 6

onColorsChangedMethod · 0.95
reloadDevicesMethod · 0.95
selectDeviceMethod · 0.95
launchScreenMethod · 0.95
deferMethod · 0.80
addMethod · 0.65

Tested by

no test coverage detected