- fixed a crash when creating a Document object due of changes in Qt6 (missing QtGui.Qt)

- in Document object fixed the issue with not setting selection color when in a dark theme (essentially got rid of using QPalette)
- in dark theme stylesheet changed the indent of the QCheckBox (and in Radio buttons too)
- updated the FClabel widget with some more properties
- updated the hack to make sure that the Editor sub-tools do not lose the stylesheet of the background
- updated the disabled project item color default value for the dark theme
This commit is contained in:
Marius Stanciu
2022-05-11 20:13:36 +03:00
committed by Marius
parent ab11367e3d
commit a973275f97
54 changed files with 204 additions and 180 deletions

View File

@@ -6,13 +6,13 @@ if '_' not in builtins.__dict__:
_ = gettext.gettext
class RectangleEditorTool(AppTool):
class RectangleEditorTool(AppToolEditor):
"""
Simple input for buffer distance.
"""
def __init__(self, app, draw_app, plugin_name):
AppTool.__init__(self, app)
AppToolEditor.__init__(self, app)
self.draw_app = draw_app
self.decimals = app.decimals
@@ -30,7 +30,7 @@ class RectangleEditorTool(AppTool):
def run(self):
self.app.defaults.report_usage("Geo Editor RectangleTool()")
AppTool.run(self)
super().run()
# if the splitter us hidden, display it
if self.app.ui.splitter.sizes()[0] == 0:
@@ -301,7 +301,7 @@ class RectangleEditorUI:
size_frame.setLayout(size_grid)
# Length
self.length_lbl = FCLabel('%s:' % _("Projection"))
self.length_lbl = FCLabel('%s:' % _("Length"))
self.length_entry = NumericalEvalEntry()
size_grid.addWidget(self.length_lbl, 0, 0)
size_grid.addWidget(self.length_entry, 0, 1)