MCPcopy Create free account
hub / github.com/chieapp/chie / setImage

Method setImage

src/view/icon-button.ts:40–46  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

38 }
39
40 setImage(name: string) {
41 if (this.name == name)
42 return;
43 this.name = name;
44 this.imageSize = stockIcons.getImage(name).getSize();
45 this.view.schedulePaint();
46 }
47
48 setTitle(title: string) {
49 const colorMode = this.colorMode ?? (this.darkMode ? 'dark' : 'light');

Callers 4

constructorMethod · 0.95
#setButtonModeMethod · 0.45
setValueMethod · 0.45
constructorMethod · 0.45

Calls 1

getImageMethod · 0.45

Tested by

no test coverage detected