Merge pull request !135 from likehomedream/UIFIX
This commit is contained in:
KevinDuan 2024-06-11 10:09:00 +00:00 committed by Gitee
commit 66dfbc96f9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
34 changed files with 97 additions and 59 deletions

View File

@ -61,7 +61,7 @@
- 宽度 3840 像素
- 高度 2160 像素
- 文件大小限制 10MB
- 支持的文件格式:PNG、JPG
- 支持的文件格式JPG
这样的参数设置确保了用户在选择壁纸时能够使用符合指定尺寸和文件格式的图片。这有助于保持壁纸的质量和兼容性,并确保在不同屏幕上都能够正常显示。在控制面板中点击全局主题效果图时会生效,该壁纸不会额外显示在控制面板-个性化/壁纸中。
@ -153,8 +153,10 @@
打开主题制作工坊,点击制作全局主题模块或点击图标主题模块即可开始图标主题制作,点击图标主题模块制作时,无法选择其他模块进行制作。
系统使用位置:控制面板-个性化/主题:图标。
素材要求SVG
应用图标:定制每个应用的图标,支持常见的应用如 biometric-manager、box-manager 等。
应用图标:定制每个应用的图标,支持常见的应用如 biometric-manager、box-manager 等。
![](img/20.png)
@ -162,6 +164,9 @@
![](img/21.png)
文件夹与设备图标修改桌面与文件管理器内显示的文件夹图标以及设备图标包括computer、inode-directory等。
![](img/26.png)
图标规范见附录
### 光标主题
@ -176,11 +181,16 @@
### 开机动画
打开主题制作工坊,点击制作全局主题模块或点击开机动画模块即可开始开机动画制作,点击开机动画模块制作时,无法选择其他模块进行制作。
支持的格式
MP4 文件格式:允许用户上传和应用 MP4 格式的开机动画
文件大小限制10MB
PNG 图片:支持将一张 PNG 图片作为开机动画,为用户提供更多创意空间。
文件大小限制20KB
- 支持的格式
- MP4 文件格式:允许用户上传和应用 MP4 格式的开机动画
- 文件大小限制10MB
- PNG 图片:支持将一张 PNG 图片作为开机动画,为用户提供更多创意空间。
- 文件大小限制20KB
![](img/23.png)
@ -188,16 +198,22 @@
打开主题制作工坊点击制作全局主题模块或点击Grub主题模块即可开始开机动画制作点击Grub主题模块制作时无法选择其他模块进行制作。
上传自定义图片:选择并上传用户喜欢的图片作为 Grub 界面的背景。
尺寸设置:
宽度 3840 像素
高度 2160 像素
文件大小限制 10MB
支持的文件格式PNG
- 尺寸设置:
- 宽度 3840 像素
- 高度 2160 像素
- 文件大小限制 10MB
- 支持的文件格式PNG
![](img/24.png)
![](img/25.png)
### 打包信息收集
制作主题包前后、新建模块修改退出后、历史记录修改退出后会弹出相关信息收集页面
@ -207,10 +223,34 @@
- 用户名为必须内容不可输入非英文、输入内容不可大于15个字节
- 邮箱为必须内容不可输入非英文输入内容需要遵守邮箱规则不能大于35个字节不可小于6个字节
![](img/26.png)
通过主题制作工坊,用户能够将 openKylin 操作系统打造成符合自己独特品味和需求的个性化系统,从而提升整体的用户体验。
## 关于上传
当完成一个主题的制作后,点击上传主题平台按钮
![](img/27.png)
1、登录应用软件分发平台
![](img/28.png)
2、点击软件上架业务
![](img/29.png)
3、填写平台相关信息
![](img/30.png)
4、上传主题包注意软件源选择“openKylin”
![](img/31.png)
5、等待人工审核
审核通过后就可以在软件商店内找到自己制作的主题包!
## 附录
### 应用图标规范名
| 图标 | 图标名 |

BIN
img/1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 323 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 557 KiB

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 KiB

After

Width:  |  Height:  |  Size: 329 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 321 KiB

BIN
img/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 655 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 423 KiB

BIN
img/26.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 KiB

BIN
img/27.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
img/28.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

BIN
img/29.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

BIN
img/3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 527 KiB

After

Width:  |  Height:  |  Size: 612 KiB

BIN
img/30.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
img/31.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
img/4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 551 KiB

After

Width:  |  Height:  |  Size: 501 KiB

BIN
img/5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 506 KiB

After

Width:  |  Height:  |  Size: 611 KiB

BIN
img/6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 527 KiB

After

Width:  |  Height:  |  Size: 559 KiB

BIN
img/7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 457 KiB

After

Width:  |  Height:  |  Size: 622 KiB

BIN
img/8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 327 KiB

BIN
img/9.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 323 KiB

View File

@ -154,7 +154,7 @@ bool FileCheck::isLegalMP4File(const QString &filePath)
qint64 maxSize = 1024 * 1024 *10;
if (fileSize > maxSize) {
QMessageBox::information(nullptr, tr("error"), tr("The file size cannot exceed 1MB"));
QMessageBox::information(nullptr, tr("error"), tr("The file size cannot exceed 10MB"));
return false;
}

View File

@ -224,13 +224,13 @@ void PlymouthThemeWidget::initEditWidget()
});
QLabel *tipLabel = new QLabel();
tipLabel->setText("<html>*视频为 MP4 格式<br>*大小不超过 1 MB</html>");
tipLabel->setText("<html>*视频为 MP4 格式<br>*大小不超过 10 MB</html>");
connect(btngroup, QOverload<QAbstractButton*>::of(&QButtonGroup::buttonClicked), [=](QAbstractButton* button) {
if (button == pic) {
tipLabel->setText("<html>*尺寸为 400*400 的 PNG 图片<br>*大小不超过 20 KB</html>");
a->setType("pic");
} else {
tipLabel->setText("<html>*视频为 MP4 格式<br>*大小不超过 1 MB</html>");
tipLabel->setText("<html>*视频为 MP4 格式<br>*大小不超过 10 MB</html>");
a->setType("video");
}
});

View File

@ -132,6 +132,7 @@
<message>
<location filename="../src/fileProcess/filecheck.cpp" line="108"/>
<location filename="../src/fileProcess/filecheck.cpp" line="136"/>
<location filename="../src/fileProcess/filecheck.cpp" line="157"/>
<source>The file size cannot exceed 10MB</source>
<translation type="unfinished"></translation>
</message>
@ -162,11 +163,6 @@
<source>The file is not a mp4</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/fileProcess/filecheck.cpp" line="157"/>
<source>The file size cannot exceed 1MB</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/fileProcess/filecheck.cpp" line="177"/>
<source>The file size cannot exceed 20KB</source>
@ -763,14 +759,14 @@
<message>
<location filename="../src/module/infocreatewidget.cpp" line="91"/>
<location filename="../src/module/infocreatewidget.cpp" line="94"/>
<location filename="../src/module/infocreatewidget.cpp" line="749"/>
<location filename="../src/module/infocreatewidget.cpp" line="756"/>
<source>ThemeName-CN</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="92"/>
<location filename="../src/module/infocreatewidget.cpp" line="96"/>
<location filename="../src/module/infocreatewidget.cpp" line="750"/>
<location filename="../src/module/infocreatewidget.cpp" line="757"/>
<source>ThemeName-EN</source>
<translation type="unfinished"></translation>
</message>
@ -801,54 +797,55 @@
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="192"/>
<location filename="../src/module/infocreatewidget.cpp" line="222"/>
<location filename="../src/module/infocreatewidget.cpp" line="298"/>
<location filename="../src/module/infocreatewidget.cpp" line="229"/>
<location filename="../src/module/infocreatewidget.cpp" line="305"/>
<source>Please enter less than 15 characters</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="201"/>
<location filename="../src/module/infocreatewidget.cpp" line="270"/>
<location filename="../src/module/infocreatewidget.cpp" line="318"/>
<location filename="../src/module/infocreatewidget.cpp" line="374"/>
<location filename="../src/module/infocreatewidget.cpp" line="207"/>
<location filename="../src/module/infocreatewidget.cpp" line="277"/>
<location filename="../src/module/infocreatewidget.cpp" line="325"/>
<location filename="../src/module/infocreatewidget.cpp" line="381"/>
<source>Input format error!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="207"/>
<location filename="../src/module/infocreatewidget.cpp" line="280"/>
<location filename="../src/module/infocreatewidget.cpp" line="327"/>
<location filename="../src/module/infocreatewidget.cpp" line="383"/>
<location filename="../src/module/infocreatewidget.cpp" line="202"/>
<location filename="../src/module/infocreatewidget.cpp" line="214"/>
<location filename="../src/module/infocreatewidget.cpp" line="287"/>
<location filename="../src/module/infocreatewidget.cpp" line="334"/>
<location filename="../src/module/infocreatewidget.cpp" line="390"/>
<source>Input is empty!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="230"/>
<location filename="../src/module/infocreatewidget.cpp" line="237"/>
<source>Please enter more than 1 characters</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="239"/>
<location filename="../src/module/infocreatewidget.cpp" line="246"/>
<source>Please don&apos;t duplicate the name of a package that already exists!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="262"/>
<location filename="../src/module/infocreatewidget.cpp" line="269"/>
<source>Please keep theme names in lowercase!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="354"/>
<location filename="../src/module/infocreatewidget.cpp" line="361"/>
<source>Please enter more than 6 characters</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="428"/>
<location filename="../src/module/infocreatewidget.cpp" line="435"/>
<source>Set as a theme for system use during installation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="346"/>
<location filename="../src/module/infocreatewidget.cpp" line="353"/>
<source>Please enter less than 35 characters</source>
<translation type="unfinished"></translation>
</message>

Binary file not shown.

View File

@ -132,6 +132,7 @@
<message>
<location filename="../src/fileProcess/filecheck.cpp" line="108"/>
<location filename="../src/fileProcess/filecheck.cpp" line="136"/>
<location filename="../src/fileProcess/filecheck.cpp" line="157"/>
<source>The file size cannot exceed 10MB</source>
<translation>10MB</translation>
</message>
@ -163,9 +164,8 @@
<translation>mp4格式</translation>
</message>
<message>
<location filename="../src/fileProcess/filecheck.cpp" line="157"/>
<source>The file size cannot exceed 1MB</source>
<translation>1MB</translation>
<translation type="vanished">1MB</translation>
</message>
<message>
<location filename="../src/fileProcess/filecheck.cpp" line="177"/>
@ -787,14 +787,14 @@
<message>
<location filename="../src/module/infocreatewidget.cpp" line="91"/>
<location filename="../src/module/infocreatewidget.cpp" line="94"/>
<location filename="../src/module/infocreatewidget.cpp" line="749"/>
<location filename="../src/module/infocreatewidget.cpp" line="756"/>
<source>ThemeName-CN</source>
<translation>-</translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="92"/>
<location filename="../src/module/infocreatewidget.cpp" line="96"/>
<location filename="../src/module/infocreatewidget.cpp" line="750"/>
<location filename="../src/module/infocreatewidget.cpp" line="757"/>
<source>ThemeName-EN</source>
<translation>-</translation>
</message>
@ -825,49 +825,50 @@
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="192"/>
<location filename="../src/module/infocreatewidget.cpp" line="222"/>
<location filename="../src/module/infocreatewidget.cpp" line="298"/>
<location filename="../src/module/infocreatewidget.cpp" line="229"/>
<location filename="../src/module/infocreatewidget.cpp" line="305"/>
<source>Please enter less than 15 characters</source>
<translation>15</translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="201"/>
<location filename="../src/module/infocreatewidget.cpp" line="270"/>
<location filename="../src/module/infocreatewidget.cpp" line="318"/>
<location filename="../src/module/infocreatewidget.cpp" line="374"/>
<location filename="../src/module/infocreatewidget.cpp" line="207"/>
<location filename="../src/module/infocreatewidget.cpp" line="277"/>
<location filename="../src/module/infocreatewidget.cpp" line="325"/>
<location filename="../src/module/infocreatewidget.cpp" line="381"/>
<source>Input format error!</source>
<translation></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="207"/>
<location filename="../src/module/infocreatewidget.cpp" line="280"/>
<location filename="../src/module/infocreatewidget.cpp" line="327"/>
<location filename="../src/module/infocreatewidget.cpp" line="383"/>
<location filename="../src/module/infocreatewidget.cpp" line="202"/>
<location filename="../src/module/infocreatewidget.cpp" line="214"/>
<location filename="../src/module/infocreatewidget.cpp" line="287"/>
<location filename="../src/module/infocreatewidget.cpp" line="334"/>
<location filename="../src/module/infocreatewidget.cpp" line="390"/>
<source>Input is empty!</source>
<translation></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="230"/>
<location filename="../src/module/infocreatewidget.cpp" line="237"/>
<source>Please enter more than 1 characters</source>
<translation>1</translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="239"/>
<location filename="../src/module/infocreatewidget.cpp" line="246"/>
<source>Please don&apos;t duplicate the name of a package that already exists!</source>
<translation></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="262"/>
<location filename="../src/module/infocreatewidget.cpp" line="269"/>
<source>Please keep theme names in lowercase!</source>
<translation></translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="354"/>
<location filename="../src/module/infocreatewidget.cpp" line="361"/>
<source>Please enter more than 6 characters</source>
<translation>6</translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="428"/>
<location filename="../src/module/infocreatewidget.cpp" line="435"/>
<source>Set as a theme for system use during installation</source>
<translation>使</translation>
</message>
@ -880,7 +881,7 @@
<translation type="vanished">themename </translation>
</message>
<message>
<location filename="../src/module/infocreatewidget.cpp" line="346"/>
<location filename="../src/module/infocreatewidget.cpp" line="353"/>
<source>Please enter less than 35 characters</source>
<translation>35</translation>
</message>