good
This commit is contained in:
parent
ee91b72805
commit
1283e11f30
3 changed files with 7938 additions and 42 deletions
7887
logs/app.log
7887
logs/app.log
File diff suppressed because it is too large
Load diff
Binary file not shown.
|
|
@ -2778,50 +2778,59 @@ class DownloadMissingTracksModal(QDialog):
|
||||||
return f"{seconds // 60}:{seconds % 60:02d}"
|
return f"{seconds // 60}:{seconds % 60:02d}"
|
||||||
|
|
||||||
def create_buttons(self):
|
def create_buttons(self):
|
||||||
"""Create improved button section"""
|
"""Create improved button section"""
|
||||||
button_frame = QFrame(styleSheet="background-color: transparent; padding: 10px;")
|
button_frame = QFrame(styleSheet="background-color: transparent; padding: 10px;")
|
||||||
layout = QHBoxLayout(button_frame)
|
layout = QHBoxLayout(button_frame)
|
||||||
layout.setSpacing(15)
|
layout.setSpacing(15)
|
||||||
layout.setContentsMargins(0, 10, 0, 0)
|
layout.setContentsMargins(0, 10, 0, 0)
|
||||||
|
|
||||||
self.correct_failed_btn = QPushButton("🔧 Correct Failed Matches")
|
self.correct_failed_btn = QPushButton("🔧 Correct Failed Matches")
|
||||||
self.correct_failed_btn.setFixedWidth(220)
|
self.correct_failed_btn.setFixedWidth(220)
|
||||||
self.correct_failed_btn.setStyleSheet("""
|
self.correct_failed_btn.setStyleSheet("""
|
||||||
QPushButton { background-color: #ffc107; color: #000000; }
|
QPushButton { background-color: #ffc107; color: #000000; border-radius: 20px; font-weight: bold; }
|
||||||
QPushButton:hover { background-color: #ffca28; }
|
QPushButton:hover { background-color: #ffca28; }
|
||||||
""")
|
""")
|
||||||
self.correct_failed_btn.clicked.connect(self.on_correct_failed_matches_clicked)
|
self.correct_failed_btn.clicked.connect(self.on_correct_failed_matches_clicked)
|
||||||
self.correct_failed_btn.hide()
|
self.correct_failed_btn.hide()
|
||||||
|
|
||||||
self.begin_search_btn = QPushButton("Begin Search")
|
self.begin_search_btn = QPushButton("Begin Search")
|
||||||
self.begin_search_btn.setFixedSize(160, 40)
|
self.begin_search_btn.setFixedSize(160, 40)
|
||||||
self.begin_search_btn.clicked.connect(self.on_begin_search_clicked)
|
# THIS IS THE FIX: The specific stylesheet for this button is restored below
|
||||||
|
self.begin_search_btn.setStyleSheet("""
|
||||||
self.cancel_btn = QPushButton("Cancel")
|
QPushButton {
|
||||||
self.cancel_btn.setFixedSize(110, 40)
|
background-color: #1db954; color: #000000; border: none;
|
||||||
self.cancel_btn.setStyleSheet("""
|
border-radius: 20px; font-size: 14px; font-weight: bold;
|
||||||
QPushButton { background-color: #d32f2f; color: #ffffff; }
|
}
|
||||||
QPushButton:hover { background-color: #f44336; }
|
QPushButton:hover { background-color: #1ed760; }
|
||||||
""")
|
""")
|
||||||
self.cancel_btn.clicked.connect(self.on_cancel_clicked)
|
self.begin_search_btn.clicked.connect(self.on_begin_search_clicked)
|
||||||
self.cancel_btn.hide()
|
|
||||||
|
self.cancel_btn = QPushButton("Cancel")
|
||||||
self.close_btn = QPushButton("Close")
|
self.cancel_btn.setFixedSize(110, 40)
|
||||||
self.close_btn.setFixedSize(110, 40)
|
self.cancel_btn.setStyleSheet("""
|
||||||
self.close_btn.setStyleSheet("""
|
QPushButton { background-color: #d32f2f; color: #ffffff; border-radius: 20px;}
|
||||||
QPushButton { background-color: #616161; color: #ffffff; }
|
QPushButton:hover { background-color: #f44336; }
|
||||||
QPushButton:hover { background-color: #757575; }
|
""")
|
||||||
""")
|
self.cancel_btn.clicked.connect(self.on_cancel_clicked)
|
||||||
self.close_btn.clicked.connect(self.on_close_clicked)
|
self.cancel_btn.hide()
|
||||||
|
|
||||||
layout.addStretch()
|
self.close_btn = QPushButton("Close")
|
||||||
layout.addWidget(self.begin_search_btn)
|
self.close_btn.setFixedSize(110, 40)
|
||||||
layout.addWidget(self.cancel_btn)
|
self.close_btn.setStyleSheet("""
|
||||||
layout.addWidget(self.correct_failed_btn)
|
QPushButton { background-color: #616161; color: #ffffff; border-radius: 20px;}
|
||||||
layout.addWidget(self.close_btn)
|
QPushButton:hover { background-color: #757575; }
|
||||||
|
""")
|
||||||
return button_frame
|
self.close_btn.clicked.connect(self.on_close_clicked)
|
||||||
|
|
||||||
|
layout.addStretch()
|
||||||
|
layout.addWidget(self.begin_search_btn)
|
||||||
|
layout.addWidget(self.cancel_btn)
|
||||||
|
layout.addWidget(self.correct_failed_btn)
|
||||||
|
layout.addWidget(self.close_btn)
|
||||||
|
|
||||||
|
return button_frame
|
||||||
|
|
||||||
|
|
||||||
def on_begin_search_clicked(self):
|
def on_begin_search_clicked(self):
|
||||||
"""Handle Begin Search button click - starts Plex analysis"""
|
"""Handle Begin Search button click - starts Plex analysis"""
|
||||||
self.begin_search_btn.hide()
|
self.begin_search_btn.hide()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue