- removed the spacing between icons in toolbars

This commit is contained in:
Marius Stanciu
2021-03-02 04:48:07 +02:00
committed by Marius
parent e715870d12
commit 7a50b2f045
3 changed files with 32 additions and 0 deletions

View File

@@ -2344,62 +2344,76 @@ class App(QtCore.QObject):
# ## TOOLBAR INSTALLATION # ##
self.ui.toolbarfile = QtWidgets.QToolBar('File Toolbar')
self.ui.toolbarfile.setObjectName('File_TB')
self.ui.toolbarfile.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(Qt.LeftToolBarArea, self.ui.toolbarfile)
self.ui.toolbaredit = QtWidgets.QToolBar('Edit Toolbar')
self.ui.toolbaredit.setObjectName('Edit_TB')
self.ui.toolbaredit.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(Qt.LeftToolBarArea, self.ui.toolbaredit)
self.ui.toolbarshell = QtWidgets.QToolBar('Shell Toolbar')
self.ui.toolbarshell.setObjectName('Shell_TB')
self.ui.toolbarshell.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(Qt.LeftToolBarArea, self.ui.toolbarshell)
self.ui.toolbarplugins = QtWidgets.QToolBar('Plugin Toolbar')
self.ui.toolbarplugins.setObjectName('Plugins_TB')
self.ui.toolbarplugins.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(Qt.LeftToolBarArea, self.ui.toolbarplugins)
self.ui.geo_edit_toolbar = QtWidgets.QToolBar('Geometry Editor Toolbar')
self.ui.geo_edit_toolbar.setObjectName('GeoEditor_TB')
self.ui.geo_edit_toolbar.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(Qt.RightToolBarArea, self.ui.geo_edit_toolbar)
self.ui.toolbarview = QtWidgets.QToolBar('View Toolbar')
self.ui.toolbarview.setObjectName('View_TB')
self.ui.toolbarview.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(Qt.RightToolBarArea, self.ui.toolbarview)
self.ui.addToolBarBreak(area=Qt.RightToolBarArea)
self.ui.grb_edit_toolbar = QtWidgets.QToolBar('Gerber Editor Toolbar')
self.ui.grb_edit_toolbar.setObjectName('GrbEditor_TB')
self.ui.grb_edit_toolbar.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(Qt.RightToolBarArea, self.ui.grb_edit_toolbar)
self.ui.exc_edit_toolbar = QtWidgets.QToolBar('Excellon Editor Toolbar')
self.ui.exc_edit_toolbar.setObjectName('ExcEditor_TB')
self.ui.exc_edit_toolbar.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(Qt.RightToolBarArea, self.ui.exc_edit_toolbar)
else:
# ## TOOLBAR INSTALLATION # ##
self.ui.toolbarfile = QtWidgets.QToolBar('File Toolbar')
self.ui.toolbarfile.setObjectName('File_TB')
self.ui.toolbarfile.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(self.ui.toolbarfile)
self.ui.toolbaredit = QtWidgets.QToolBar('Edit Toolbar')
self.ui.toolbaredit.setObjectName('Edit_TB')
self.ui.toolbaredit.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(self.ui.toolbaredit)
self.ui.toolbarview = QtWidgets.QToolBar('View Toolbar')
self.ui.toolbarview.setObjectName('View_TB')
self.ui.toolbarview.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(self.ui.toolbarview)
self.ui.toolbarshell = QtWidgets.QToolBar('Shell Toolbar')
self.ui.toolbarshell.setObjectName('Shell_TB')
self.ui.toolbarshell.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(self.ui.toolbarshell)
self.ui.toolbarplugins = QtWidgets.QToolBar('Plugin Toolbar')
self.ui.toolbarplugins.setObjectName('Plugins_TB')
self.ui.toolbarplugins.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(self.ui.toolbarplugins)
self.ui.exc_edit_toolbar = QtWidgets.QToolBar('Excellon Editor Toolbar')
# self.ui.exc_edit_toolbar.setVisible(False)
self.ui.exc_edit_toolbar.setObjectName('ExcEditor_TB')
self.ui.exc_edit_toolbar.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(self.ui.exc_edit_toolbar)
self.ui.addToolBarBreak()
@@ -2407,11 +2421,13 @@ class App(QtCore.QObject):
self.ui.geo_edit_toolbar = QtWidgets.QToolBar('Geometry Editor Toolbar')
# self.ui.geo_edit_toolbar.setVisible(False)
self.ui.geo_edit_toolbar.setObjectName('GeoEditor_TB')
self.ui.geo_edit_toolbar.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(self.ui.geo_edit_toolbar)
self.ui.grb_edit_toolbar = QtWidgets.QToolBar('Gerber Editor Toolbar')
# self.ui.grb_edit_toolbar.setVisible(False)
self.ui.grb_edit_toolbar.setObjectName('GrbEditor_TB')
self.ui.grb_edit_toolbar.setStyleSheet("QToolBar{spacing:0px;}")
self.ui.addToolBar(self.ui.grb_edit_toolbar)
if current_layout == 'minimal':