Skip to content

Commit

Permalink
HiDPI: about.png → svg
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercury13 committed Dec 14, 2022
1 parent 1878a3f commit 491c1fa
Show file tree
Hide file tree
Showing 8 changed files with 120 additions and 96 deletions.
178 changes: 96 additions & 82 deletions Bitmaps/Logo/about.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions Unicodia/FmMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,7 @@ void FmMain::translateAbout()

void FmMain::initAbout()
{
ui->wiLogo->load(QString{":/Misc/about.svg"});
connect(ui->lbTofuStats, &QLabel::linkActivated, this, &This::showTofuStats);
}

Expand Down
31 changes: 19 additions & 12 deletions Unicodia/FmMain.ui
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<item>
<widget class="QTabWidget" name="tabsMain">
<property name="currentIndex">
<number>1</number>
<number>3</number>
</property>
<widget class="QWidget" name="tabBlocks">
<attribute name="title">
Expand Down Expand Up @@ -676,15 +676,18 @@ padding-bottom: 1px;</string>
<item>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<widget class="QLabel" name="lbLogo">
<property name="text">
<string notr="true"/>
</property>
<property name="pixmap">
<pixmap resource="Resources/res.qrc">:/Misc/about.png</pixmap>
<widget class="QSvgWidget" name="wiLogo" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<property name="minimumSize">
<size>
<width>270</width>
<height>270</height>
</size>
</property>
</widget>
</item>
Expand Down Expand Up @@ -877,9 +880,13 @@ padding-bottom: 1px;</string>
<header>WiOsStyle.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QSvgWidget</class>
<extends>QWidget</extends>
<header>QSvgWidget</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources>
<include location="Resources/res.qrc"/>
</resources>
<resources/>
<connections/>
</ui>
Binary file removed Unicodia/Resources/Misc/about.png
Binary file not shown.
1 change: 1 addition & 0 deletions Unicodia/Resources/Misc/about.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Unicodia/Resources/res.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<file>Buttons/sort_AZ.png</file>
<file>Buttons/sort_AYa.png</file>
<file>Buttons/globe.png</file>
<file>Misc/about.png</file>
<file>Misc/about.svg</file>
<file>Texts/about.htm</file>
</qresource>
</RCC>
2 changes: 1 addition & 1 deletion Unicodia/Unicodia.pro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
QT += core gui widgets svg
QT += core gui widgets svg svgwidgets
CONFIG += c++2a

win32-g++ {
Expand Down
1 change: 1 addition & 0 deletions rel.bat
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
@copy %QTDIR%\bin\Qt6Gui.dll %DEPLOY%
@copy %QTDIR%\bin\Qt6Widgets.dll %DEPLOY%
@copy %QTDIR%\bin\Qt6Svg.dll %DEPLOY%
@copy %QTDIR%\bin\Qt6SvgWidgets.dll %DEPLOY%
@copy MiscFiles\Unicodia.xml %DEPLOY%
@copy LICENSE %DEPLOY%
@md %DEPLOY%\platforms
Expand Down

0 comments on commit 491c1fa

Please sign in to comment.