1
0
Fork 0
mirror of synced 2024-06-28 03:00:49 +12:00

Fix green button hardcoding (#87)

* Fix green button hardcoding and add material design stylesheet

* rebase onto dev
This commit is contained in:
Tabulate 2021-06-24 04:03:35 -04:00 committed by GitHub
parent a2bc9ced09
commit 9dcba184d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -106,9 +106,7 @@ class SyncWidget(QGroupBox):
elif self.res == SaveGameStatus.REMOTE_NEWER:
status = self.tr("Cloud save is newer")
self.download_button = QPushButton(self.tr("Download Cloud saves"))
self.download_button.setStyleSheet("""
QPushButton{ background-color: lime}
""")
self.download_button.setObjectName("success")
self.upload_button = QPushButton(self.tr("Upload Saves"))
self.logger.info(f'Cloud save for "{igame.title}" is newer:')
self.logger.info(f'- Cloud save date: {dt_remote.strftime("%Y-%m-%d %H:%M:%S")}')
@ -122,9 +120,7 @@ class SyncWidget(QGroupBox):
elif self.res == SaveGameStatus.LOCAL_NEWER:
status = self.tr("Local save is newer")
self.upload_button = QPushButton(self.tr("Upload saves"))
self.upload_button.setStyleSheet("""
QPushButton{ background-color: lime}
""")
self.download_button.setObjectName("success")
self.download_button = QPushButton(self.tr("Download saves"))
self.logger.info(f'Local save for "{igame.title}" is newer')
if dt_remote:

View file

@ -170,6 +170,10 @@ QPushButton:hover#menu_button {
background-color: #334;
}
QPushButton#success{
background-color: lime;
}
QRadioButton {
background-color: none;
border-radius: 50%;