MCPcopy Index your code
hub / github.com/paperwm/PaperWM / updateColor

Method updateColor

tiling.js:1648–1660  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1646 }
1647
1648 updateColor() {
1649 let color = this.settings.get_string('color');
1650 if (color === '') {
1651 let colors = Settings.prefs.workspace_colors;
1652 let index = this.index % Settings.prefs.workspace_colors.length;
1653 color = colors[index];
1654 }
1655 this.color = color;
1656 this.border.set_style(`
1657border: ${borderWidth}px ${this.color};
1658border-radius: ${borderWidth}px;
1659`);
1660 }
1661
1662 updateBackground() {
1663 if (!this.monitor) {

Callers 2

setSettingsMethod · 0.95
setMonitorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected