MCPcopy Create free account
hub / github.com/alpha-liu-01/SpeedyNote / chooseBackgroundColor

Method chooseBackgroundColor

source/ControlPanelDialog.cpp:1464–1470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1462}
1463
1464void ControlPanelDialog::chooseBackgroundColor() {
1465 QColor chosen = QColorDialog::getColor(selectedBgColor, this, tr("Select Background Color"));
1466 if (chosen.isValid()) {
1467 selectedBgColor = chosen;
1468 bgColorButton->setStyleSheet(QString("background-color: %1").arg(selectedBgColor.name()));
1469 }
1470}
1471
1472void ControlPanelDialog::chooseGridColor() {
1473 QColor chosen = QColorDialog::getColor(selectedGridColor, this, tr("Select Grid/Line Color"));

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected