mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-13 19:24:01 +00:00
Add application icon to about dialog
This commit is contained in:
@@ -86,8 +86,7 @@ and <a href="http://www.flaticon.com/authors/madebyoliver">Madebyoliver</a>,
|
||||
<a href="https://www.flaticon.com/authors/smashicons">Smashicons</a>
|
||||
from <a href="https://www.flaticon.com">www.flaticon.com</a>""")
|
||||
|
||||
text = _("""<p align="center"><span style="font-size:15px;font-weight:bold;">MusicBrainz Picard</span><br/>
|
||||
Version %(version)s</p>
|
||||
text = _("""<p align="center">Version %(version)s</p>
|
||||
<p align="center"><small>
|
||||
%(third_parties_versions)s
|
||||
</small></p>
|
||||
|
||||
@@ -10,12 +10,46 @@ from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
class Ui_AboutDialog(object):
|
||||
def setupUi(self, AboutDialog):
|
||||
AboutDialog.setObjectName("AboutDialog")
|
||||
AboutDialog.resize(600, 400)
|
||||
AboutDialog.resize(640, 430)
|
||||
AboutDialog.setMinimumSize(QtCore.QSize(400, 300))
|
||||
self.vboxlayout = QtWidgets.QVBoxLayout(AboutDialog)
|
||||
self.vboxlayout.setContentsMargins(0, 0, 0, 0)
|
||||
self.vboxlayout.setSpacing(6)
|
||||
self.vboxlayout.setObjectName("vboxlayout")
|
||||
self.header = QtWidgets.QHBoxLayout()
|
||||
self.header.setContentsMargins(9, 9, 9, 0)
|
||||
self.header.setObjectName("header")
|
||||
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||||
self.header.addItem(spacerItem)
|
||||
self.logo = QtWidgets.QLabel(AboutDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.logo.sizePolicy().hasHeightForWidth())
|
||||
self.logo.setSizePolicy(sizePolicy)
|
||||
self.logo.setMinimumSize(QtCore.QSize(48, 48))
|
||||
self.logo.setMaximumSize(QtCore.QSize(48, 48))
|
||||
self.logo.setPixmap(QtGui.QPixmap(":/images/128x128/org.musicbrainz.Picard.png"))
|
||||
self.logo.setScaledContents(True)
|
||||
self.logo.setObjectName("logo")
|
||||
self.header.addWidget(self.logo)
|
||||
self.app_name = QtWidgets.QLabel(AboutDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.app_name.sizePolicy().hasHeightForWidth())
|
||||
self.app_name.setSizePolicy(sizePolicy)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(20)
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
self.app_name.setFont(font)
|
||||
self.app_name.setTextFormat(QtCore.Qt.PlainText)
|
||||
self.app_name.setObjectName("app_name")
|
||||
self.header.addWidget(self.app_name)
|
||||
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||||
self.header.addItem(spacerItem1)
|
||||
self.vboxlayout.addLayout(self.header)
|
||||
self.scrollArea = QtWidgets.QScrollArea(AboutDialog)
|
||||
self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||||
self.scrollArea.setFrameShadow(QtWidgets.QFrame.Plain)
|
||||
@@ -25,10 +59,10 @@ class Ui_AboutDialog(object):
|
||||
self.scrollArea.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
|
||||
self.scrollArea.setObjectName("scrollArea")
|
||||
self.scrollAreaWidgetContents = QtWidgets.QWidget()
|
||||
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 600, 400))
|
||||
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 640, 366))
|
||||
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
|
||||
self.verticalLayout.setContentsMargins(9, 9, 9, 9)
|
||||
self.verticalLayout.setContentsMargins(9, 0, 9, 9)
|
||||
self.verticalLayout.setSpacing(6)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.label = QtWidgets.QLabel(self.scrollAreaWidgetContents)
|
||||
@@ -47,3 +81,4 @@ class Ui_AboutDialog(object):
|
||||
def retranslateUi(self, AboutDialog):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
AboutDialog.setWindowTitle(_("About Picard"))
|
||||
self.app_name.setText(_("MusicBrainz Picard"))
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>600</width>
|
||||
<height>400</height>
|
||||
<width>640</width>
|
||||
<height>430</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
@@ -35,6 +35,99 @@
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="header">
|
||||
<property name="leftMargin">
|
||||
<number>9</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>9</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>9</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="logo">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>48</width>
|
||||
<height>48</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>48</width>
|
||||
<height>48</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap>:/images/128x128/org.musicbrainz.Picard.png</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="app_name">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>MusicBrainz Picard</string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::PlainText</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QScrollArea" name="scrollArea">
|
||||
<property name="frameShape">
|
||||
@@ -60,8 +153,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>600</width>
|
||||
<height>400</height>
|
||||
<width>640</width>
|
||||
<height>366</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
@@ -72,7 +165,7 @@
|
||||
<number>9</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>9</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>9</number>
|
||||
|
||||
Reference in New Issue
Block a user