Fixes: In revision mode text, selecting group doesn't load text-preferences right. #51

This commit is contained in:
Olivier Keshavjee 2017-10-16 00:40:41 +02:00
parent 67efc47a18
commit d7407afb8f
2 changed files with 5 additions and 1 deletions

View file

@ -416,6 +416,10 @@ class settingsWindow(QWidget, Ui_Settings):
# Update background color in all tabSplitter (tabs)
for w in mainWindow().findChildren(tabSplitter, QRegExp(".*")):
w.updateStyleSheet()
# Update background color in all folder text view:
for w in mainWindow().findChildren(QWidget, QRegExp("editorWidgetFolderText")):
w.setStyleSheet("background: {};".format(settings.textEditor["background"]))
def choseEditorFontColor(self):
color = settings.textEditor["fontColor"]

View file

@ -106,7 +106,6 @@ class editorWidget(QWidget, Ui_editorWidget_ui):
highlighting=True,
autoResize=True)
edt.setFrameShape(QFrame.NoFrame)
edt.setStyleSheet("background: {};".format(settings.textEditor["background"]))
edt.setStatusTip("{}".format(itm.path()))
self.toggledSpellcheck.connect(edt.toggleSpellcheck, AUC)
self.dictChanged.connect(edt.setDict, AUC)
@ -149,6 +148,7 @@ class editorWidget(QWidget, Ui_editorWidget_ui):
if item and item.isFolder() and self.folderView == "text":
self.stack.setCurrentIndex(1)
w = QWidget()
w.setObjectName("editorWidgetFolderText")
l = QVBoxLayout(w)
w.setStyleSheet("background: {};".format(settings.textEditor["background"]))
# self.scroll.setWidgetResizable(False)