add dialog to manage highlighters
- no support for "no color" - settings not saved to disk
This commit is contained in:
8
main.py
8
main.py
@@ -12,6 +12,7 @@ import urlutils
|
||||
from aboutdialog import AboutDialog
|
||||
from ravenui import RavenUI
|
||||
from settingsstore import SettingsStore
|
||||
from highlightingdialog import HighlightingDialog
|
||||
from tabs import Tabs
|
||||
from urlutils import url_is_file
|
||||
|
||||
@@ -64,6 +65,13 @@ class MainWindow(QMainWindow):
|
||||
file_menu.addAction(close_action)
|
||||
return file_menu
|
||||
|
||||
def highlight_menu(self) -> QMenu:
|
||||
result = QMenu(self.tr("&Highlighting"), self)
|
||||
manage = QAction(self.tr("&Manage"), self)
|
||||
manage.triggered.connect(lambda: HighlightingDialog(self.settings).exec())
|
||||
result.addAction(manage)
|
||||
return result
|
||||
|
||||
def help_menu(self) -> QMenu:
|
||||
help_menu = QMenu(self.tr("&Help", "name of the help menu"), self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user