- fixed spacing in the status toolbar icons

This commit is contained in:
Marius Stanciu
2020-06-02 02:37:54 +03:00
committed by Marius
parent 5542e62455
commit 7b4e3b42bf
6 changed files with 12 additions and 8 deletions

View File

@@ -1095,8 +1095,8 @@ class MainGUI(QtWidgets.QMainWindow):
self.grid_gap_y_entry.setMaximumWidth(70)
self.grid_gap_y_entry.setToolTip(_("Grid Y snapping distance"))
self.status_toolbar.addWidget(self.grid_gap_y_entry)
self.status_toolbar.addWidget(QtWidgets.QLabel(" "))
self.axis_status_label = FCLabel()
self.axis_status_label.setToolTip(_("Toggle the display of axis on canvas"))
self.axis_status_label.setPixmap(QtGui.QPixmap(self.app.resource_location + '/axis16.png'))
@@ -1107,17 +1107,27 @@ class MainGUI(QtWidgets.QMainWindow):
self.pref_status_label.setToolTip(_("Preferences"))
self.pref_status_label.setPixmap(QtGui.QPixmap(self.app.resource_location + '/settings18.png'))
self.status_toolbar.addWidget(self.pref_status_label)
self.status_toolbar.addWidget(QtWidgets.QLabel(" "))
self.shell_status_label = FCLabel()
self.shell_status_label.setToolTip(_("Command Line"))
self.shell_status_label.setPixmap(QtGui.QPixmap(self.app.resource_location + '/shell20.png'))
self.status_toolbar.addWidget(self.shell_status_label)
self.status_toolbar.addWidget(QtWidgets.QLabel(" "))
self.hud_label = FCLabel()
self.hud_label.setToolTip(_("HUD (Heads up display)"))
self.hud_label.setPixmap(QtGui.QPixmap(self.app.resource_location + '/hud16.png'))
self.status_toolbar.addWidget(self.hud_label)
self.status_toolbar.addWidget(QtWidgets.QLabel(" "))
self.wplace_label = FCLabel("A4")
self.wplace_label.setToolTip(_("Draw a delimiting rectangle on canvas.\n"
"The purpose is to illustrate the limits for our work.")
)
self.wplace_label.setMargin(2)
self.status_toolbar.addWidget(self.wplace_label)
self.status_toolbar.addWidget(QtWidgets.QLabel(" "))
self.ois_grid = OptionalInputSection(self.grid_gap_link_cb, [self.grid_gap_y_entry], logic=False)
@@ -1549,13 +1559,6 @@ class MainGUI(QtWidgets.QMainWindow):
self.status_toolbar.setMaximumHeight(24)
self.infobar.addWidget(self.status_toolbar)
self.wplace_label = FCLabel("A4")
self.wplace_label.setToolTip(_("Draw a delimiting rectangle on canvas.\n"
"The purpose is to illustrate the limits for our work.")
)
self.wplace_label.setMargin(2)
self.infobar.addWidget(self.wplace_label)
self.units_label = QtWidgets.QLabel("[mm]")
self.units_label.setToolTip(_("Application units"))
self.units_label.setMargin(2)