Fix green button hardcoding (#87)
* Fix green button hardcoding and add material design stylesheet * rebase onto dev
This commit is contained in:
parent
a2bc9ced09
commit
9dcba184d0
2 changed files with 6 additions and 6 deletions
|
@ -106,9 +106,7 @@ class SyncWidget(QGroupBox):
|
||||||
elif self.res == SaveGameStatus.REMOTE_NEWER:
|
elif self.res == SaveGameStatus.REMOTE_NEWER:
|
||||||
status = self.tr("Cloud save is newer")
|
status = self.tr("Cloud save is newer")
|
||||||
self.download_button = QPushButton(self.tr("Download Cloud saves"))
|
self.download_button = QPushButton(self.tr("Download Cloud saves"))
|
||||||
self.download_button.setStyleSheet("""
|
self.download_button.setObjectName("success")
|
||||||
QPushButton{ background-color: lime}
|
|
||||||
""")
|
|
||||||
self.upload_button = QPushButton(self.tr("Upload Saves"))
|
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 for "{igame.title}" is newer:')
|
||||||
self.logger.info(f'- Cloud save date: {dt_remote.strftime("%Y-%m-%d %H:%M:%S")}')
|
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:
|
elif self.res == SaveGameStatus.LOCAL_NEWER:
|
||||||
status = self.tr("Local save is newer")
|
status = self.tr("Local save is newer")
|
||||||
self.upload_button = QPushButton(self.tr("Upload saves"))
|
self.upload_button = QPushButton(self.tr("Upload saves"))
|
||||||
self.upload_button.setStyleSheet("""
|
self.download_button.setObjectName("success")
|
||||||
QPushButton{ background-color: lime}
|
|
||||||
""")
|
|
||||||
self.download_button = QPushButton(self.tr("Download saves"))
|
self.download_button = QPushButton(self.tr("Download saves"))
|
||||||
self.logger.info(f'Local save for "{igame.title}" is newer')
|
self.logger.info(f'Local save for "{igame.title}" is newer')
|
||||||
if dt_remote:
|
if dt_remote:
|
||||||
|
|
|
@ -170,6 +170,10 @@ QPushButton:hover#menu_button {
|
||||||
background-color: #334;
|
background-color: #334;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QPushButton#success{
|
||||||
|
background-color: lime;
|
||||||
|
}
|
||||||
|
|
||||||
QRadioButton {
|
QRadioButton {
|
||||||
background-color: none;
|
background-color: none;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|
Loading…
Reference in a new issue