mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-14 00:39:33 -05:00
Add settings button to the status bar
This commit is contained in:
parent
cb83fca6bc
commit
656d3d1564
@ -73,9 +73,7 @@ class GuiCommon:
|
|||||||
}""",
|
}""",
|
||||||
"settings_button": """
|
"settings_button": """
|
||||||
QPushButton {
|
QPushButton {
|
||||||
background-color: #601f61;
|
|
||||||
border: 0;
|
border: 0;
|
||||||
border-left: 1px solid #69266b;
|
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}""",
|
}""",
|
||||||
"server_status_indicator_label": """
|
"server_status_indicator_label": """
|
||||||
|
@ -95,6 +95,18 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
)
|
)
|
||||||
self.status_bar.addPermanentWidget(self.status_bar.server_status_indicator)
|
self.status_bar.addPermanentWidget(self.status_bar.server_status_indicator)
|
||||||
|
|
||||||
|
# Settings button
|
||||||
|
self.settings_button = QtWidgets.QPushButton()
|
||||||
|
self.settings_button.setDefault(False)
|
||||||
|
self.settings_button.setFixedWidth(40)
|
||||||
|
self.settings_button.setFixedHeight(50)
|
||||||
|
self.settings_button.setIcon(
|
||||||
|
QtGui.QIcon(self.common.get_resource_path("images/settings.png"))
|
||||||
|
)
|
||||||
|
self.settings_button.clicked.connect(self.open_settings)
|
||||||
|
self.settings_button.setStyleSheet(self.common.gui.css["settings_button"])
|
||||||
|
self.status_bar.addPermanentWidget(self.settings_button)
|
||||||
|
|
||||||
# Tabs
|
# Tabs
|
||||||
self.tabs = TabWidget(self.common, self.system_tray, self.status_bar)
|
self.tabs = TabWidget(self.common, self.system_tray, self.status_bar)
|
||||||
|
|
||||||
|
@ -103,17 +103,6 @@ class Tab(QtWidgets.QWidget):
|
|||||||
self.new_tab.setLayout(new_tab_outer_layout)
|
self.new_tab.setLayout(new_tab_outer_layout)
|
||||||
self.new_tab.show()
|
self.new_tab.show()
|
||||||
|
|
||||||
# Settings button, but this is gonna disappear
|
|
||||||
self.settings_button = QtWidgets.QPushButton()
|
|
||||||
self.settings_button.setDefault(False)
|
|
||||||
self.settings_button.setFixedWidth(40)
|
|
||||||
self.settings_button.setFixedHeight(50)
|
|
||||||
self.settings_button.setIcon(
|
|
||||||
QtGui.QIcon(self.common.get_resource_path("images/settings.png"))
|
|
||||||
)
|
|
||||||
# self.settings_button.clicked.connect(self.open_settings)
|
|
||||||
self.settings_button.setStyleSheet(self.common.gui.css["settings_button"])
|
|
||||||
|
|
||||||
# Server status indicator icons
|
# Server status indicator icons
|
||||||
self.status_bar.server_status_image_stopped = QtGui.QImage(
|
self.status_bar.server_status_image_stopped = QtGui.QImage(
|
||||||
self.common.get_resource_path("images/server_stopped.png")
|
self.common.get_resource_path("images/server_stopped.png")
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in New Issue
Block a user