mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-15 02:12:29 +12:00
Fixes: In revision mode text, selecting group doesn't load text-preferences right. #51
This commit is contained in:
parent
67efc47a18
commit
d7407afb8f
|
@ -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"]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue