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

Method resetColorTheme

src/visualsettings.cpp:22–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void VisualSettings::resetColorTheme(ColorTheme *colorTheme) {
23 editColorTheme = colorTheme;
24
25 ui->themeName->setText(editColorTheme->getName());
26 ui->spinBoxMxH->setValue(editColorTheme->getMxColor().h);
27 ui->doubleSpinBoxMxS->setValue(editColorTheme->getMxColor().s);
28 ui->doubleSpinBoxMxL->setValue(editColorTheme->getMxColor().l);
29 ui->spinBoxMiH->setValue(editColorTheme->getMiColor().h);
30 ui->doubleSpinBoxMiS->setValue(editColorTheme->getMiColor().s);
31 ui->doubleSpinBoxMiL->setValue(editColorTheme->getMiColor().l);
32 ui->spinBoxNfH->setValue(editColorTheme->getNfColor().h);
33 ui->doubleSpinBoxNfS->setValue(editColorTheme->getNfColor().s);
34 ui->doubleSpinBoxNfL->setValue(editColorTheme->getNfColor().l);
35 ui->spinBoxCeH->setValue(editColorTheme->getCeColor().h);
36 ui->doubleSpinBoxCeS->setValue(editColorTheme->getCeColor().s);
37 ui->doubleSpinBoxCeL->setValue(editColorTheme->getCeColor().l);
38
39 ui->grandCompH->setValue(editColorTheme->getGrandComp().h);
40 ui->grandCompS->setValue(editColorTheme->getGrandComp().s);
41 ui->grandCompL->setValue(editColorTheme->getGrandComp().l);
42 ui->grandRateH->setValue(editColorTheme->getGrandRate().h);
43 ui->grandRateS->setValue(editColorTheme->getGrandRate().s);
44 ui->grandRateL->setValue(editColorTheme->getGrandRate().l);
45}
46
47void VisualSettings::themeNameChanged(const QString &x) { editColorTheme->setName(x); }
48

Callers 1

resetEditThemeMethod · 0.80

Calls 7

getNameMethod · 0.80
getMxColorMethod · 0.80
getMiColorMethod · 0.80
getNfColorMethod · 0.80
getCeColorMethod · 0.80
getGrandCompMethod · 0.80
getGrandRateMethod · 0.80

Tested by

no test coverage detected