mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-06 13:59:15 -04:00
Makes copy button and other server url buttons default OS button style
This commit is contained in:
parent
f94674ec87
commit
6a226adc23
2 changed files with 1 additions and 11 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue