mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-23 07:59:50 -05:00
Makes copy button and other server url buttons default OS button style
This commit is contained in:
parent
a575f1a4c9
commit
6bbd55fca7
@ -157,15 +157,8 @@ class GuiCommon:
|
||||
""",
|
||||
"server_status_url_buttons": """
|
||||
QPushButton {
|
||||
border: 1px solid #d3d3d3;
|
||||
border-radius: 4px;
|
||||
background-color: #ffffff;
|
||||
padding: 8px 16px;
|
||||
padding: 4px 8px;
|
||||
text-align: center;
|
||||
color: #4e0d4e;
|
||||
}
|
||||
QPushButton:pressed {
|
||||
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 255, 255, 255), stop:1 rgba(239, 239, 240, 255))
|
||||
}
|
||||
""",
|
||||
"server_status_button_stopped": """
|
||||
|
@ -93,7 +93,6 @@ class ServerStatus(QtWidgets.QWidget):
|
||||
)
|
||||
|
||||
self.copy_url_button = QtWidgets.QPushButton(strings._("gui_copy_url"))
|
||||
self.copy_url_button.setFlat(True)
|
||||
self.copy_url_button.setStyleSheet(
|
||||
self.common.gui.css["server_status_url_buttons"]
|
||||
)
|
||||
@ -108,12 +107,10 @@ class ServerStatus(QtWidgets.QWidget):
|
||||
self.show_url_qr_code_button.clicked.connect(
|
||||
self.show_url_qr_code_button_clicked
|
||||
)
|
||||
self.show_url_qr_code_button.setFlat(True)
|
||||
self.show_url_qr_code_button.setStyleSheet(
|
||||
self.common.gui.css["server_status_url_buttons"]
|
||||
)
|
||||
|
||||
self.copy_hidservauth_button.setFlat(True)
|
||||
self.copy_hidservauth_button.setStyleSheet(
|
||||
self.common.gui.css["server_status_url_buttons"]
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user