diff --git a/comictaggerlib/seriesselectionwindow.py b/comictaggerlib/seriesselectionwindow.py index 7c1c479..7ab4fda 100644 --- a/comictaggerlib/seriesselectionwindow.py +++ b/comictaggerlib/seriesselectionwindow.py @@ -161,6 +161,17 @@ class SeriesSelectionWindow(QtWidgets.QDialog): # Load to retrieve settings self.talker_api = talker_api + # Display talker logo and set url + self.lblSourceName.setText( + f'

Data Source: {talker_api.static_options.website}

' + ) + source_label_logo = QtGui.QPixmap(talker_api.source_details.logo) + if source_label_logo.height() > 100 or source_label_logo.width() > 300: + source_label_logo = source_label_logo.scaled( + 300, 100, QtCore.Qt.KeepAspectRatio, QtCore.Qt.SmoothTransformation + ) + self.lblSourceLogo.setPixmap(source_label_logo) + # Set the minimum row height to the default. # this way rows will be more consistent when resizeRowsToContents is called self.twList.verticalHeader().setMinimumSectionSize(self.twList.verticalHeader().defaultSectionSize()) diff --git a/comictaggerlib/ui/seriesselectionwindow.ui b/comictaggerlib/ui/seriesselectionwindow.ui index 4812423..967768f 100644 --- a/comictaggerlib/ui/seriesselectionwindow.ui +++ b/comictaggerlib/ui/seriesselectionwindow.ui @@ -7,7 +7,7 @@ 0 0 950 - 480 + 600 @@ -17,23 +17,84 @@ false - + - - - - 300 - 450 - + + + 0 - - - 300 - 450 - + + QLayout::SetMaximumSize - + + 0 + + + + + + 0 + 0 + + + + + 300 + 450 + + + + + 300 + 450 + + + + + + + + 2 + + + 1 + + + Qt::Horizontal + + + + + + + Data Source: + + + + + + + + 300 + 100 + + + + + 300 + 100 + + + + 0 + + + + + + + @@ -85,17 +146,11 @@ Year - - AlignCenter - Issues - - AlignCenter - diff --git a/comictalker/talkers/comicvine.py b/comictalker/talkers/comicvine.py index 3b264f3..0bc7223 100644 --- a/comictalker/talkers/comicvine.py +++ b/comictalker/talkers/comicvine.py @@ -167,7 +167,9 @@ class ComicVineTalker(ComicTalker): wait_on_ratelimit: bool = False, ): super().__init__(version, cache_folder, api_url, api_key) - self.source_details = SourceDetails(name="Comic Vine", ident="comicvine") + self.source_details = SourceDetails( + name="Comic Vine", ident="comicvine", logo="comictalker/talkers/logos/comicvine.png" + ) self.static_options = SourceStaticOptions( website="https://comicvine.gamespot.com/", has_issues=True, diff --git a/comictalker/talkers/logos/comicvine.png b/comictalker/talkers/logos/comicvine.png new file mode 100644 index 0000000..9e3bb89 Binary files /dev/null and b/comictalker/talkers/logos/comicvine.png differ