| 184 | // ── Color picker ── |
| 185 | |
| 186 | void 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 |
nothing calls this directly
no test coverage detected