mirror of
https://github.com/onionshare/onionshare.git
synced 2025-04-11 02:29:07 -04:00
Improve the persistent pinned tab icon with a standard FA bookmark icon, better dark/light mode
This commit is contained in:
parent
fb4acaf39c
commit
db22367e19
BIN
desktop/onionshare/resources/images/dark_persistent_enabled.png
Normal file
BIN
desktop/onionshare/resources/images/dark_persistent_enabled.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
desktop/onionshare/resources/images/light_persistent_enabled.png
Normal file
BIN
desktop/onionshare/resources/images/light_persistent_enabled.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.3 KiB |
@ -217,14 +217,13 @@ class Tab(QtWidgets.QWidget):
|
||||
|
||||
# Persistent image
|
||||
self.persistent_image_label = QtWidgets.QLabel()
|
||||
self.persistent_image_label.setPixmap(
|
||||
QtGui.QPixmap.fromImage(
|
||||
QtGui.QImage(
|
||||
GuiCommon.get_resource_path("images/persistent_enabled.png")
|
||||
)
|
||||
image = QtGui.QImage(
|
||||
GuiCommon.get_resource_path(
|
||||
f"images/{self.common.gui.color_mode}_persistent_enabled.png"
|
||||
)
|
||||
)
|
||||
self.persistent_image_label.setFixedSize(20, 20)
|
||||
scaled_image = image.scaledToHeight(15, QtCore.Qt.SmoothTransformation)
|
||||
self.persistent_image_label.setPixmap(QtGui.QPixmap.fromImage(scaled_image))
|
||||
|
||||
# Create the close warning dialog -- the dialog widget needs to be in the constructor
|
||||
# in order to test it
|
||||
@ -480,7 +479,9 @@ class Tab(QtWidgets.QWidget):
|
||||
)
|
||||
|
||||
def set_server_status_indicator_stopped(self, label_text):
|
||||
self.change_icon.emit(self.tab_id, f"images/{self.common.gui.color_mode}_server_stopped.png")
|
||||
self.change_icon.emit(
|
||||
self.tab_id, f"images/{self.common.gui.color_mode}_server_stopped.png"
|
||||
)
|
||||
image = self.status_bar.server_status_image_stopped
|
||||
scaled_image = image.scaledToHeight(15, QtCore.Qt.SmoothTransformation)
|
||||
self.status_bar.server_status_image_label.setPixmap(
|
||||
|
Loading…
x
Reference in New Issue
Block a user