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

Method fontColorClicked

gui/nbrowserwindow.cpp:1381–1389  ·  view source on GitHub ↗

The font color was pressed

Source from the content-addressed store, hash-verified

1379
1380// The font color was pressed
1381void NBrowserWindow::fontColorClicked() {
1382 QColor *color = buttonBar->fontColorMenuWidget->getColor();
1383 if (color->isValid()) {
1384 this->editor->page()->mainFrame()->evaluateJavaScript(
1385 "document.execCommand('foreColor', false, '"+color->name()+"');");
1386 editor->setFocus();
1387 microFocusChanged();
1388 }
1389}
1390
1391
1392void NBrowserWindow::insertLinkButtonPressed() {

Callers

nothing calls this directly

Calls 1

getColorMethod · 0.45

Tested by

no test coverage detected