MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / pickColor

Method pickColor

src/themes/themeeditor.cpp:186–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184// ── Color picker ──
185
186void ThemeEditor::pickColor(int idx) {
187 auto& s = m_swatches[idx];
188 QColor c = QColorDialog::getColor(m_theme.*s.field, this, QString::fromLatin1(s.label));
189 if (c.isValid()) {
190 m_theme.*s.field = c;
191 updateSwatch(idx);
192 ThemeManager::instance().previewTheme(m_theme);
193 }
194}
195
196} // namespace rcx

Callers

nothing calls this directly

Calls 2

isValidMethod · 0.80
previewThemeMethod · 0.80

Tested by

no test coverage detected