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

Method getEditorStyle

global.cpp:858–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856
857
858QString Global::getEditorStyle(bool colorOnly) {
859 QString returnValue = "";
860 if (!colorOnly) {
861 returnValue = "document.body.style.background='"+this->getEditorBackgroundColor()+"'; ";
862 }
863 returnValue = returnValue+"document.body.style.color='"+this->getEditorFontColor()+"';";
864
865 return "function setColor() { "+returnValue +" }; setColor();";
866}
867
868
869

Callers

nothing calls this directly

Calls 2

getEditorFontColorMethod · 0.95

Tested by

no test coverage detected