Skip to content
Snippets Groups Projects
Commit 3d99b58f authored by Cy8aer's avatar Cy8aer
Browse files

About: put Label in Column. podcast.py there are jpeg extensions

parent 58e4cfe5
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ class Podcast:
iconpath = PodcastFactory().iconpath
rdot = self.logo_url.rfind(".")
ext = self.logo_url[rdot+1:]
if ext == "jpg" or ext == "png" or ext == "gif":
if ext == "jpg" or ext == "jpeg" or ext == "png" or ext == "gif":
name = hashlib.sha256(self.logo_url.encode()).hexdigest() + "." + ext
logo_path = os.path.join(iconpath, name)
......
......@@ -29,18 +29,22 @@ Page {
VerticalScrollDecorator { }
// contentWidth: aboutlabel.width
contentHeight: aboutlabel.height + aboutlabel.spacing
Label {
id: aboutlabel
text: page.abouttext
font.pixelSize: Theme.fontSizeSmall
anchors.margins: margin
width: page.width
wrapMode: Text.WordWrap
textFormat: Text.AutoText
linkColor: Theme.highlightColor
onLinkActivated: Qt.openUrlExternally(link)
contentHeight: aboutcolumn.height + aboutcolumn.spacing
Column {
id: aboutcolumn
width: parent.width
Label {
id: aboutlabel
text: page.abouttext
font.pixelSize: Theme.fontSizeSmall
anchors.margins: margin
width: parent.width
wrapMode: Text.WordWrap
textFormat: Text.AutoText
linkColor: Theme.highlightColor
onLinkActivated: Qt.openUrlExternally(link)
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment