fix: svg tags in AppInfoPage display error

Qt6 cannot render svg correctly, fallback to png

Log: delete duplicated icon resources; use png instead of svg for tags
This commit is contained in:
忘记、过去 2025-03-08 10:47:51 +08:00
parent e3e8684f18
commit 4abfc19399
13 changed files with 68 additions and 56 deletions

@ -45,24 +45,33 @@
<file>icon/light/update.svg</file>
<file>icon/logo.svg</file>
<file>json/features.json</file>
<file>tags/a2d-small.png</file>
<file>tags/a2d_full.svg</file>
<file>tags/a2d.png</file>
<file>tags/community-small.png</file>
<file>tags/a2d.svg</file>
<file>tags/community_full.svg</file>
<file>tags/community.png</file>
<file>tags/community.svg</file>
<file>tags/deepin-small.png</file>
<file>tags/debian_full.svg</file>
<file>tags/debian.png</file>
<file>tags/debian.svg</file>
<file>tags/deepin_full.svg</file>
<file>tags/deepin.png</file>
<file>tags/deepin.svg</file>
<file>tags/dtk-small.png</file>
<file>tags/dwine2-small.png</file>
<file>tags/dwine5-small.png</file>
<file>tags/dtk_full.svg</file>
<file>tags/dtk.png</file>
<file>tags/dtk.svg</file>
<file>tags/dwine2_full.svg</file>
<file>tags/dwine2.png</file>
<file>tags/dwine2.svg</file>
<file>tags/dwine5_full.svg</file>
<file>tags/dwine5.png</file>
<file>tags/dwine5.svg</file>
<file>tags/logo_icon.svg</file>
<file>tags/ubuntu-small.png</file>
<file>tags/ubuntu_full.svg</file>
<file>tags/ubuntu.png</file>
<file>tags/uos-authorize.svg</file>
<file>tags/uos-small.png</file>
<file>tags/ubuntu.svg</file>
<file>tags/uos_full.svg</file>
<file>tags/uos.png</file>
<file>tags/uos.svg</file>
<file>translations/qtwebengine_zh.qm</file>
<file>tags/debian.svg</file>
</qresource>
</RCC>

Binary file not shown.

Before

(image error) Size: 4.7 KiB

Binary file not shown.

Before

(image error) Size: 5.7 KiB

Binary file not shown.

Before

(image error) Size: 4.8 KiB

Binary file not shown.

Before

(image error) Size: 5.0 KiB

Binary file not shown.

Before

(image error) Size: 4.9 KiB

Binary file not shown.

Before

(image error) Size: 4.7 KiB

Binary file not shown.

Before

(image error) Size: 4.5 KiB

File diff suppressed because one or more lines are too long

Before

(image error) Size: 19 KiB

Binary file not shown.

Before

(image error) Size: 5.0 KiB

File diff suppressed because one or more lines are too long

Before

(image error) Size: 18 KiB

Binary file not shown.

Before

(image error) Size: 4.7 KiB

@ -363,6 +363,19 @@
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_9">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
@ -383,7 +396,7 @@
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
<height>40</height>
</size>
</property>
<property name="toolTip">
@ -392,8 +405,8 @@
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Ubuntu 22.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/ubuntu.png&quot; height=40 width=40 /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<property name="pixmap">
<pixmap resource="../assets/assets.qrc">:/tags/ubuntu.png</pixmap>
</property>
</widget>
</item>
@ -402,7 +415,7 @@
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
<height>40</height>
</size>
</property>
<property name="toolTip">
@ -411,8 +424,8 @@
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to UOS home 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/uos-authorize.svg&quot; height=40 width=40 /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<property name="pixmap">
<pixmap resource="../assets/assets.qrc">:/tags/uos.png</pixmap>
</property>
</widget>
</item>
@ -421,7 +434,7 @@
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
<height>40</height>
</size>
</property>
<property name="toolTip">
@ -430,21 +443,27 @@
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to deepin 23&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/deepin.svg&quot; height=40 width=40 /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<property name="pixmap">
<pixmap resource="../assets/assets.qrc">:/tags/deepin.png</pixmap>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="tag_debian">
<property name="maximumSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Debian Stable&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Debian Stable&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/debian.svg&quot; height=40 width=40 /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<property name="pixmap">
<pixmap resource="../assets/assets.qrc">:/tags/debian.png</pixmap>
</property>
</widget>
</item>
@ -463,22 +482,6 @@
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_9">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_13">
<item>
@ -499,7 +502,7 @@
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
<height>40</height>
</size>
</property>
<property name="toolTip">
@ -508,8 +511,8 @@
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An Appimage to deb app.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/a2d.png&quot;height=40 width=40 /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<property name="pixmap">
<pixmap resource="../assets/assets.qrc">:/tags/a2d.png</pixmap>
</property>
</widget>
</item>
@ -518,7 +521,7 @@
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
<height>40</height>
</size>
</property>
<property name="toolTip">
@ -527,8 +530,8 @@
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/community.svg&quot; height=40 width=40 /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<property name="pixmap">
<pixmap resource="../assets/assets.qrc">:/tags/community.png</pixmap>
</property>
</widget>
</item>
@ -537,7 +540,7 @@
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
<height>40</height>
</size>
</property>
<property name="toolTip">
@ -546,8 +549,8 @@
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/logo_icon.svg&quot; height=40 width=40 /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<property name="pixmap">
<pixmap resource="../assets/assets.qrc">:/tags/dtk.png</pixmap>
</property>
</widget>
</item>
@ -556,7 +559,7 @@
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
<height>40</height>
</size>
</property>
<property name="toolTip">
@ -565,8 +568,8 @@
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine2 app. Spark Store will automatically configure the wine kit for you.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine2-small.png&quot; height=40 width=40 &gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<property name="pixmap">
<pixmap resource="../assets/assets.qrc">:/tags/dwine2.png</pixmap>
</property>
</widget>
</item>
@ -575,7 +578,7 @@
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
<height>40</height>
</size>
</property>
<property name="toolTip">
@ -584,8 +587,8 @@
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A Wine app.Spark Store will automatically configure the wine kit for you&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine5.svg&quot; height=40 width=40 /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<property name="pixmap">
<pixmap resource="../assets/assets.qrc">:/tags/dwine5.png</pixmap>
</property>
</widget>
</item>
@ -1449,6 +1452,8 @@ QListWidget::item::selected
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="../assets/assets.qrc"/>
</resources>
<connections/>
</ui>