issue126-backup (#198)
All checks were successful
Build AppImage / Explore-Gitea-Actions (push) Successful in 1m33s

reworked autosave, closes #126; update with restart
This commit was merged in pull request #198.
This commit is contained in:
2024-01-03 12:30:04 +00:00
parent 58e86f4abc
commit 73bdc71a83
7 changed files with 568 additions and 306 deletions

View File

@@ -1,4 +1,3 @@
import sys
from pathlib import Path
from .codeeditor import _make_textformats
@@ -6,12 +5,14 @@ from ..Qt import QtWidgets, QtCore, QtGui
from nmreval.configs import config_paths
STYLES = {'INFO': _make_textformats('black'),
'WARNING': _make_textformats('blue'),
'ERROR': _make_textformats('red', 'bold'),
'DEBUG': _make_textformats('black', 'italic'),
'file': _make_textformats('red', 'italic'),
'PyError': _make_textformats('red', 'bold-italic')}
STYLES = {
'INFO': _make_textformats('black'),
'WARNING': _make_textformats('blue'),
'ERROR': _make_textformats('red', 'bold'),
'DEBUG': _make_textformats('black', 'italic'),
'file': _make_textformats('red', 'italic'),
'PyError': _make_textformats('red', 'bold-italic'),
}
class LogHighlighter(QtGui.QSyntaxHighlighter):