In one case you are putting spaces before and after `=`:

    marginsBackgroundColor = QColor(73, 76, 78);

In another two cases you are not doing it:

    caretForegroundColor=QColor("#FFFFFF");

Please be consistent! Prefer spaces before and after `=` sign:

    caretForegroundColor = QColor("#FFFFFF");