Makes copy button and other server url buttons default OS button style

This commit is contained in:
Saptak S 2021-01-24 04:14:58 +05:30
parent a575f1a4c9
commit 6bbd55fca7
No known key found for this signature in database
GPG Key ID: 2D9B32E54C68A3FB
2 changed files with 1 additions and 11 deletions

View File

@ -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": """

View File

@ -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"]
)