From 5ca4bb0157a238ce2d1135a91c2987547343db9d Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Tue, 6 Feb 2018 16:14:56 -0800 Subject: [PATCH] Give server button rounded corners. Change style of persistent URL label --- onionshare_gui/onionshare_gui.py | 2 +- onionshare_gui/server_status.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py index 06629efd..d4f36452 100644 --- a/onionshare_gui/onionshare_gui.py +++ b/onionshare_gui/onionshare_gui.py @@ -123,7 +123,7 @@ class OnionShareGui(QtWidgets.QMainWindow): # Persistent URL notification self.persistent_url_label = QtWidgets.QLabel(strings._('persistent_url_in_use', True)) - self.persistent_url_label.setStyleSheet('padding: 10px 0; font-weight: bold; color: #333333;') + self.persistent_url_label.setStyleSheet('font-weight: bold; color: #333333;') self.persistent_url_label.hide() # Primary action layout diff --git a/onionshare_gui/server_status.py b/onionshare_gui/server_status.py index 92063602..ce2f586d 100644 --- a/onionshare_gui/server_status.py +++ b/onionshare_gui/server_status.py @@ -195,9 +195,9 @@ class ServerStatus(QtWidgets.QWidget): self.copy_hidservauth_button.hide() # Button - button_stopped_style = 'QPushButton { background-color: #5fa416; color: #ffffff; padding: 10px; border: 0; }' - button_working_style = 'QPushButton { background-color: #4c8211; color: #ffffff; padding: 10px; border: 0; font-style: italic; }' - button_started_style = 'QPushButton { background-color: #d0011b; color: #ffffff; padding: 10px; border: 0; }' + button_stopped_style = 'QPushButton { background-color: #5fa416; color: #ffffff; padding: 10px; border: 0; border-radius: 5px; }' + button_working_style = 'QPushButton { background-color: #4c8211; color: #ffffff; padding: 10px; border: 0; border-radius: 5px; font-style: italic; }' + button_started_style = 'QPushButton { background-color: #d0011b; color: #ffffff; padding: 10px; border: 0; border-radius: 5px; }' if self.file_selection.get_num_files() == 0: self.server_button.hide() else: