MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / fontHighlightClicked

Method fontHighlightClicked

gui/nbrowserwindow.cpp:1368–1376  ·  view source on GitHub ↗

The font highlight color was pressed

Source from the content-addressed store, hash-verified

1366
1367// The font highlight color was pressed
1368void NBrowserWindow::fontHighlightClicked() {
1369 QColor *color = buttonBar->highlightColorMenuWidget->getColor();
1370 if (color->isValid()) {
1371 this->editor->page()->mainFrame()->evaluateJavaScript(
1372 "document.execCommand('backColor', false, '"+color->name()+"');");
1373 editor->setFocus();
1374 microFocusChanged();
1375 }
1376}
1377
1378
1379

Callers

nothing calls this directly

Calls 1

getColorMethod · 0.45

Tested by

no test coverage detected