Use name for URL display. Window sizes.

This commit is contained in:
Mizaki 2023-01-13 21:27:40 +00:00
parent 725b2c66d3
commit 55e3b7c7e0
3 changed files with 21 additions and 12 deletions

View File

@ -163,19 +163,19 @@ class SeriesSelectionWindow(QtWidgets.QDialog):
# Display talker logo and set url
self.lblSourceName.setText(
f'Data Source: <a href="{talker_api.static_options.website}">{talker_api.static_options.website}</a>'
f'Data Source: <a href="{talker_api.static_options.website}">{talker_api.source_details.name}</a>'
)
self.imageSourceWidget = CoverImageWidget(
self.lblSourceLogo,
self.imageSourceLogo,
CoverImageWidget.URLMode,
options.runtime_config.user_cache_dir,
talker_api,
False,
)
gridlayoutSourceLogo = QtWidgets.QGridLayout(self.lblSourceLogo)
gridlayoutSourceLogo = QtWidgets.QGridLayout(self.imageSourceLogo)
gridlayoutSourceLogo.addWidget(self.imageSourceWidget)
gridlayoutSourceLogo.setContentsMargins(0, 0, 0, 0)
gridlayoutSourceLogo.setContentsMargins(0, 2, 0, 0)
self.imageSourceWidget.set_url(talker_api.source_details.logo)
# Set the minimum row height to the default.

View File

@ -67,13 +67,28 @@
</item>
<item>
<widget class="QLabel" name="lblSourceName">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>300</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Data Source:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblSourceLogo">
<widget class="QWidget" name="imageSourceLogo" native="true">
<property name="minimumSize">
<size>
<width>300</width>
@ -83,15 +98,9 @@
<property name="maximumSize">
<size>
<width>300</width>
<height>100</height>
<height>16777215</height>
</size>
</property>
<property name="midLineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB