MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / whenThemeEdit

Method whenThemeEdit

src/visualmainsettings.cpp:53–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51void VisualMainSettings::themeChanged(const int x) { editSettings->setCurrentColorThemeIndex(x); }
52
53void VisualMainSettings::whenThemeEdit() {
54 int index = ui->themeComboBox->currentIndex();
55 auto *dialog = new ThemeEditDialog(this);
56
57 ColorTheme *temp = new ColorTheme;
58 temp->copyFrom(editSettings->getColorTheme(index));
59
60 dialog->resetEditTheme(temp);
61
62 if (dialog->exec() == QDialog::Accepted) {
63 editSettings->setColorTheme(dialog->getEditTheme(), index);
64 }
65
66 delete dialog;
67
68 resetEditSettings(editSettings);
69 ui->themeComboBox->setCurrentIndex(index);
70}
71
72void VisualMainSettings::whenThemeAdd() {
73 ColorTheme *temp = new ColorTheme();

Callers

nothing calls this directly

Calls 5

getColorThemeMethod · 0.80
resetEditThemeMethod · 0.80
setColorThemeMethod · 0.80
getEditThemeMethod · 0.80
copyFromMethod · 0.45

Tested by

no test coverage detected