106 self.initColour("MarginsBackground", self.marginsBackgroundButton, |
106 self.initColour("MarginsBackground", self.marginsBackgroundButton, |
107 Preferences.getEditorColour) |
107 Preferences.getEditorColour) |
108 self.editorColours["FoldmarginBackground"] = \ |
108 self.editorColours["FoldmarginBackground"] = \ |
109 self.initColour("FoldmarginBackground", self.foldmarginBackgroundButton, |
109 self.initColour("FoldmarginBackground", self.foldmarginBackgroundButton, |
110 Preferences.getEditorColour) |
110 Preferences.getEditorColour) |
|
111 self.editorColours["FoldMarkersForeground"] = \ |
|
112 self.initColour("FoldMarkersForeground", self.foldmarkersForegroundButton, |
|
113 Preferences.getEditorColour) |
|
114 self.editorColours["FoldMarkersBackground"] = \ |
|
115 self.initColour("FoldMarkersBackground", self.foldmarkersBackgroundButton, |
|
116 Preferences.getEditorColour) |
111 |
117 |
112 self.eolCheckBox.setChecked(Preferences.getEditor("ShowEOL")) |
118 self.eolCheckBox.setChecked(Preferences.getEditor("ShowEOL")) |
113 self.wrapLongLinesCheckBox.setChecked(\ |
119 self.wrapLongLinesCheckBox.setChecked(\ |
114 Preferences.getEditor("WrapLongLines")) |
120 Preferences.getEditor("WrapLongLines")) |
115 |
121 |
345 """ |
351 """ |
346 self.editorColours["NonmatchingBraceBack"] = \ |
352 self.editorColours["NonmatchingBraceBack"] = \ |
347 self.selectColour(self.nonmatchingBracesBackButton, |
353 self.selectColour(self.nonmatchingBracesBackButton, |
348 self.editorColours["NonmatchingBraceBack"]) |
354 self.editorColours["NonmatchingBraceBack"]) |
349 |
355 |
|
356 @pyqtSlot() |
|
357 def on_foldmarkersForegroundButton_clicked(self): |
|
358 """ |
|
359 Private slot to set the foreground colour for the foldmarkers. |
|
360 """ |
|
361 self.editorColours["FoldMarkersForeground"] = \ |
|
362 self.selectColour(self.foldmarkersForegroundButton, |
|
363 self.editorColours["FoldMarkersForeground"]) |
|
364 |
|
365 @pyqtSlot() |
|
366 def on_foldmarkersBackgroundButton_clicked(self): |
|
367 """ |
|
368 Private slot to set the background colour for the margins. |
|
369 """ |
|
370 self.editorColours["FoldMarkersBackground"] = \ |
|
371 self.selectColour(self.foldmarkersBackgroundButton, |
|
372 self.editorColours["FoldMarkersBackground"]) |
|
373 |
350 def polishPage(self): |
374 def polishPage(self): |
351 """ |
375 """ |
352 Public slot to perform some polishing actions. |
376 Public slot to perform some polishing actions. |
353 """ |
377 """ |
354 self.marginsFontSample.setFont(self.marginsFont) |
378 self.marginsFontSample.setFont(self.marginsFont) |