MCPcopy Create free account
hub / github.com/VCVRack/Rack / refreshTheme

Function refreshTheme

src/ui/common.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75
76void refreshTheme() {
77 if (settings::uiTheme == "light") {
78 setTheme(nvgRGB(0xf0, 0xf0, 0xf0), nvgRGB(0x04, 0x04, 0x04));
79 }
80 else if (settings::uiTheme == "hcdark") {
81 setTheme(nvgRGB(0x00, 0x00, 0x00), nvgRGB(0xff, 0xff, 0xff));
82 }
83 else {
84 // Dark
85 setTheme(nvgRGB(0x20, 0x20, 0x20), nvgRGB(0xf0, 0xf0, 0xf0));
86 }
87}
88
89
90} // namespace ui

Callers 2

onActionMethod · 0.85
initFunction · 0.85

Calls 1

setThemeFunction · 0.85

Tested by

no test coverage detected