diff --git a/nw/assets/themes/gui/default_dark/theme.conf b/nw/assets/themes/gui/default_dark/theme.conf index 9d41dbcf..14d0ad51 100644 --- a/nw/assets/themes/gui/default_dark/theme.conf +++ b/nw/assets/themes/gui/default_dark/theme.conf @@ -23,7 +23,6 @@ link = 44, 152, 247 linkvisited = 44, 152, 247 [GUI] -treewordcount = 197, 200, 198 statusnone = 150, 152, 150 statussaved = 39, 135, 78 statusunsaved = 138, 32, 32 diff --git a/nw/gui/theme.py b/nw/gui/theme.py index 61e2fca7..2b0f4608 100644 --- a/nw/gui/theme.py +++ b/nw/gui/theme.py @@ -76,11 +76,10 @@ class GuiTheme: self.themeLicenseUrl = "" ## GUI - self.treeWCount = [0, 0, 0] self.statNone = [120, 120, 120] - self.statUnsaved = [120, 120, 40] - self.statSaved = [40, 120, 0] - self.helpText = [0, 0, 0] + self.statUnsaved = [200, 15, 39] + self.statSaved = [2, 133, 37] + self.helpText = [0, 0, 0] # Loaded Syntax Settings @@ -309,7 +308,6 @@ class GuiTheme: ## GUI cnfSec = "GUI" if confParser.has_section(cnfSec): - self.treeWCount = self._loadColour(confParser, cnfSec, "treewordcount") self.statNone = self._loadColour(confParser, cnfSec, "statusnone") self.statUnsaved = self._loadColour(confParser, cnfSec, "statusunsaved") self.statSaved = self._loadColour(confParser, cnfSec, "statussaved") diff --git a/nw/guimain.py b/nw/guimain.py index f8e9b9b2..8f209717 100644 --- a/nw/guimain.py +++ b/nw/guimain.py @@ -258,6 +258,7 @@ class GuiMain(QMainWindow): # Work Area self.docEditor.clearEditor() + self.docEditor.setDictionaries() self.closeDocViewer() self.projMeta.clearDetails() @@ -312,8 +313,12 @@ class GuiMain(QMainWindow): self.rebuildTree() self.saveProject() self.hasProject = True - self.statusBar.setRefTime(self.theProject.projOpened) + self.docEditor.setDictionaries() self.rebuildIndex(beQuiet=True) + self.statusBar.setRefTime(self.theProject.projOpened) + self.statusBar.setProjectStatus(True) + self.statusBar.setDocumentStatus(None) + self.statusBar.setStatus("New project created ...") self._updateWindowTitle(self.theProject.projName) else: self.theProject.clearProject() diff --git a/tests/test_gui_theme.py b/tests/test_gui_theme.py index 4214af59..b774f2b9 100644 --- a/tests/test_gui_theme.py +++ b/tests/test_gui_theme.py @@ -73,7 +73,6 @@ def testGuiTheme_Main(qtbot, monkeypatch, nwMinimal, tmpDir): assert thePalette.link().color() == QColor(44, 152, 247) assert thePalette.linkVisited().color() == QColor(44, 152, 247) - assert nwGUI.theTheme.treeWCount == [197, 200, 198] assert nwGUI.theTheme.statNone == [150, 152, 150] assert nwGUI.theTheme.statSaved == [39, 135, 78] assert nwGUI.theTheme.statUnsaved == [138, 32, 32]