Commit Graph

379 Commits

Author SHA1 Message Date
ck d1188cf35b fix(build): invalid digit "8" in octal constant
when BUILD_VERSION start with 0 was recognized as octal

Log:
Influence: debian build
Change-Id: Ic71784120cacd66f763a72f38937fc0d99fb0454
2022-08-18 13:13:56 +08:00
ShootingStarDragons 7f227daf8a feat(tocmake): tocmake
I change the source code from qmake to cmake. Move the files
which will be install to the /usr/include to $root/include, which will
help to mattern match and easylier to do install. and the change will
break the build of qmake

Log: from qmake to cmake

Influence: qmake is breaked
2022-08-17 16:59:12 +08:00
deepin-bot[bot] b9d3127db6
chore: Sync by 8fb17418f4 (#49)
chore: Sync by 8fb17418f4
2022-08-16 09:28:16 +00:00
deepin-bot[bot] bdfcc85de9
chore: Sync by ab82576125 (#48)
chore: Sync by ab82576125
2022-08-16 00:07:28 +00:00
wangyixue 7efd175217 chore: Rename zh_CN README
Rename README_zh_CN.md to README.zh_CN.md.

Log: Rename zh_CN README
Influence: None
2022-08-15 08:12:50 +00:00
deepin-bot[bot] 689785e07e
chore: Sync by 64c2bdac28 (#46)
chore: Sync by 64c2bdac28
2022-08-15 02:22:49 +00:00
wangyixue 1ad9b719d5 chore: Add zh_CN README
Add zh_CN README.

Log: Add zh_CN README
Influence: None
2022-08-15 01:50:18 +00:00
deepin-bot[bot] c4bd7a1dd5
chore: Sync by 1086c873ff (#44)
chore: Sync by 1086c873ff
2022-08-12 01:59:12 +00:00
deepin-bot[bot] 0f802e61e4
chore: Sync by 8cd7951872 (#43)
chore: Sync by 8cd7951872
2022-08-11 08:45:53 +00:00
xzl 987b356f46 chore: adapt REUSE license header
修改版权声明

Log: 修改版权声明
2022-08-11 05:01:51 +00:00
Chen Bin 75e7f708ae chore: Add stream operators for DciIcon
Register the stream operators when the ddciicon
has been initialized. It is convenient to drag
and drop in the list view and register it into
the meta object.

Log:
Influence: None
Change-Id: I90ba9199bd3139e0423f1a3d8a6897990e697708
2022-08-11 02:41:51 +00:00
Wang Zichong c58b078b79 chore: build doxygen documentation
追加基于 doxygen 的文档构建

Log:
2022-08-09 07:58:58 +00:00
Chen Bin 8a9fa760f0 feat: Register the DciIcon as a meta type
After registering the DciIcon as a meta type, it is
convenient for applications to use it on QVariant.

The << and >> operators are provided to facilitate
applications to read and write.

Log:
Influence: None
Change-Id: I0df76a9e5378a46dcb075b2368fd05eb360d074d
2022-07-29 07:31:23 +00:00
zccrs 2c345bbd26 fix: remove unused depend of Archlinux
Remove 'qt5-x11extras'.

Log:
2022-07-27 11:34:32 +08:00
deepin-bot[bot] 7e2f328a57
chore: Sync by fed570b6d7 (#35)
chore: Sync by fed570b6d7
2022-07-26 05:40:33 +00:00
Cloud 20fd72d9d3 fix: build failed when the .git folder exist
build failed when the .git folder exist

Log: fix build failed when the .git folder exist
2022-07-25 08:58:53 +00:00
justforlxz ffe5dfa572 fix: missing runtime qtxdg
add qtxdg package

Log:
2022-07-21 18:05:06 +08:00
deepin-bot[bot] 0c3dd24063
chore: Sync by (#33)
chore: Sync by
2022-07-21 09:55:45 +00:00
deepin-bot[bot] 6002ec2b37
chore: Sync by (#30)
chore: Sync by
2022-07-19 10:28:40 +00:00
ck ea044318c0 fix(build): arch build failed
add makedepends libqtxdg

Log:
Influence: none
Change-Id: I7993a5bd0ca9cadac0c2af38a10e9d45afd8d75a
2022-07-19 10:22:35 +08:00
ck a479eaa5a8 chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: Iefda76009421210bfb0132576e973757407fafd4
2022-07-19 10:22:35 +08:00
ck 4976a77764 chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I6ba374db79ab7e5448317008cf97f26c5ba23b29
2022-07-19 10:22:35 +08:00
Chen Bin d0bf83a9f6 fix: Icon fallback for mode option only
In the method of getting icons in QML, only the mode of
the icon needs to be fallback, so change all fallback to
only fallback mode to ensure the consistency of the interface.

Log:
Influence: None
Change-Id: If95c352b77c89fba2e393e542d43f19aff665ba3
2022-07-19 10:22:35 +08:00
Chen Bin 454ba294a9 fix: DciIcon allows no fallback when matching icons
When using DciIcon, it is allowed to apply a fallback mechanism
that does not use DciIcon's own. In this case, the target icon
will be found directly by the parameters.

Log:
Influence: None
Change-Id: Ia288e3ba3bd08c2a7729cf9f6154e77e4ad7b512
2022-07-19 10:22:35 +08:00
Chen Bin b917cd8f65 fix: Add default icon fill style
1. For icons that do not use the palette, it is hoped that the
effect can be achieved by modifying the brightness of icons in
different states. Therefore, it is necessary to add an interface
for DciIcon to determine whether to use the palette.

2. Add the interface to modify the icon style by default, traverse
the pixels of the picture, and uniformly reduce the brightness.

Log:
Influence: None
Change-Id: I2c8592fab72751f887b51d48f346e562f82a51cc
2022-07-19 10:22:35 +08:00
ck 3cba7f1fce chore: update changelog version
update verion to 5.6.1

Log: none
Influence: none
Change-Id: I39e316f1e556d2fe67fc68bce5bcf2a303f25cbd
2022-07-19 10:22:35 +08:00
ck 326eb00c69 chore: use Qt5XdgIconLoader instead of Qt5Xdg
Qt5Xdg depends Qt5Widgets, dtkgui not depends Qt5Widgets

Log: none
Influence: none
Change-Id: I8dd89e323ff7c7cdaa5c9ac9ea62bc70d6d506e8
2022-07-19 10:22:35 +08:00
ck 71b349d2c7 fix(build): 覆盖旧配方rc文件重复添加
util.pri 中添加过 RESOURCES,去掉重复添加的

Log: none
Influence: none
Change-Id: Ie576f712405dc9309c164324f745567603a74bbc
2022-07-19 10:22:35 +08:00
wang fei 0f52bb9546 chore: 更新changelog
develop/snipe 分支更新changelog 到 5.6.0.1

Log:
Influence: changelog
Change-Id: I4da222f8d3b65b85acb3d507acff51c219453aa1
2022-07-19 10:22:35 +08:00
ck e7568851c4 revert: 将拼写错误接口标记废弃
This revert commit 06d2103534a21346e3996dbbcdf7cd403411bf0e
标记废弃而不删除,保证接口不减少

Log:
Incluence: abi
Change-Id: I4c5a24088eeafacad7a421f91f4c97b069ebed48
2022-07-19 10:22:35 +08:00
Chen Bin 5c15f33b5d fix: Memory leakage of icons
When the picture data is empty, an uninitialized variable generates a
random-size picture, which takes up a lot of memory space. So these
variables must be initialized before they can be used to prevent unknown
problems.

Log:
Influence: Dci Icon
Change-Id: Ife9f6e02f3fe2cc07e9d6f9f39d76b6230c6c930
2022-07-19 10:22:35 +08:00
Chen Bin 4b8687678b fix: DCI path has one more '/' symbol
When looking for icon theme, redundant '/' symbols will
appear in the icon of parsing application.

Log:
Influence: None
Change-Id: Ib55a8d6132eb1ed2aec98918529d59c3dd9c9536
2022-07-19 10:22:35 +08:00
Chen Bin 503ac5d6b0 chore: fix typo
DPalette中存在错别字接口修复。

Log:
Influence: 使用dtkgui的应用的接口影响
Change-Id: I4622c7c9c40e2aa7f3924f332dbe9f20a0dfd9ac
2022-07-19 10:22:35 +08:00
ck 7eefcfe8ae fix(build): can't build with source format '3.0 (quilt)'
debian: switch packaging format from "quilt" to "native"

Log:
Influence: build
Change-Id: I2fdda4245fcc0e467b9d815c846d791791950b3f
2022-07-19 10:22:35 +08:00
Ye ShanShan ca0a01c9c7 feat: add openUrl function
it's convenient for qml moved openUrl from dtkwidget to dtkgui.

Log: 
Influence: dtkdeclarative relys on this commit.
Change-Id: I7f720b02e91467a2bfb2bd3608afba8ad0d12312
2022-07-19 10:22:35 +08:00
Ye ShanShan 679a234177 feat: Add user manual functon
widgets and quick both use user manual,
so it is moved from DApplication.

Log: 
Influence: dtkdeclarative relys on this commit.
Change-Id: Ie2a5fb7edffb9ceeee48d42ba1b396291a4e5539
2022-07-19 10:22:35 +08:00
ck 7484c50c08 fix: 修复异常退出时再次启动失败的问题
reverts commit 88e0b51da7
去掉原来通过共享内存记录pid的方式来避免快速启动应用导致单进程失败的实现
改成启动时通过QLockFile来确保是 server 还是 client。保证只有一个 server ,其他
都是 client (旧逻辑:启动先通过localsocket连接 localserver,连接失败再启动
server,正常启动时没有问题, 当脚本快速多次启动(detached)单进程应用时,都在
等待连接,超时之后就启动了多个应用)

Bug: https://pms.uniontech.com/bug-view-111699.html
Log:
Influence: single-instance
Change-Id: I9b38e039abbbd70de969a1abf2f4f37fe07e1315
2022-07-19 10:22:35 +08:00
Chen Bin 6393c2e1ee refactor: Refactor the attribute parsing function
1. Separate the logic of each step so that the parsing part of each
property does not interfere with each other.

2. Fix the problem of parsing failure when it has `padding` and no
`palette` in the property

Log:
Influence: None
Change-Id: I35c2b807a72d6329a222fbcd99ce5b656e1dc412
2022-07-19 10:22:35 +08:00
wang fei 2c0a96ce2a feat: ddciicon增加fromTheme接口
1. 增加static DDciIcon fromTheme(const QString &name);
2. 增加static DDciIcon fromTheme(const QString &name, const DDciIcon &fallback);

Log:
Influence: fromTheme接口
Change-Id: I280bbac69e68bd500069ad145baf02861311f3f7
2022-07-19 10:22:35 +08:00
zccrs 3dd4b9b5fa feat: support group name on find dci icon file
Use the '/' to split the icon group name and it's actual icon name.
In the dtkdeclarative and dtkwidget, should be add the application
id for prefix for the icon name, eg: the "test" built-in icon in the
"org.deepin.app" application,  when to find it with
DIconTheme::findDciIconFile, the "iconName" argument should is
"org.deepin.app/test".

Influence: 无

Log:
Change-Id: Icc45faf16926993a6281aca5bee995b839c5b462
2022-07-19 10:22:35 +08:00
zccrs 54ef3e64ca feat: supported fallback to without theme directory for get dci icon
Use the DStandardPaths::paths(DStandardPaths::DSG::DataDir) instead of
the DStandardPaths::path(DStandardPaths::DSG::DataDir), support multi
path for find icon from theme.

Influence: 无

Log:
Change-Id: Ie444eea4e6a93ff37a8585aee8b451940302cd7f
2022-07-19 10:22:35 +08:00
Chen Bin e9c615b5dc feat: Add the webp plugin dependence
DCI icons need the support of webp plugin when parsing
some icons, otherwise the images will not be displayed
normally.

Log:
Influence: Dtkgui dependence
Change-Id: I9c4a780dc23fdf2e96c9e23e6580b4efd56f695b
2022-07-19 10:22:35 +08:00
Chen Bin d145d3027d fix(DciIcon): Image scaling sawtooth
Fast scaling of the image will cause aliasing problems, Use
smooth scaling to solve this problem.

Log:
Influence: Dci icon
Change-Id: I4fa8e464539e03bd7bee79fe2f3e34463b3bd6c3
2022-07-19 10:22:35 +08:00
Chen Bin 411ceb5116 fix(DciIcon): Function add const keyword
Add keywords to limit the call scope of a function.

Log:
Influence: Dci icon
Change-Id: I091fca795da23aa128ffc0e5bbecf361d5db9b15
2022-07-19 10:22:35 +08:00
Chen Bin eba6c902da fix: macos runtime error.
Add runtime environment dependencies for MacOS.

Log:
Influence: dci image tool
Change-Id: I1d8869b719fcaa1ff6cbab9d88b7a330f6fa3b67
2022-07-19 10:22:35 +08:00
Chen Bin 533d213b1b feat: Add dci image convert tool
Some images saved into dci icon should convert it's format
to alpha8. therefore, we need to add a tool to complete the
format conversion.

Log:
Influence: none
Change-Id: Ia9e146db60e9e7cc4b323c5a4b892777a9313a42
2022-07-19 10:22:35 +08:00
Chen Bin 885c1fd01f feat(DCI icon): Add analytical adaptation under alpha8 format
Alpha8 format only retains the alpha channel, so the file size
of DCI icon will be effectively reduced. However, due to the
compression problem of some image formats, this behavior only
supports images in the format of "PNG".

Log:
Influence: dci icon
Change-Id: Ifbc99fc1a5995adbf593d24aa60b943a49d4b308
2022-07-19 10:22:35 +08:00
Chen Bin 794fdc7af4 fix: Determine if the icon file is empty when painting
There may be situations where the icon data reading fails
or the icon file cannot be read, resulting in the inability
 to obtain the pixmap data with warnings.

Log:
Influence: Built-in Icon
Change-Id: I6fa4677bc4c5d7986d5546c4068d390976591e98
2022-07-19 10:22:35 +08:00
Chen Bin 1d4d680ded fix(icon theme): Search built-in theme when themeName is empty
We expect to find icons from built-in icon themes without icon themes.

Log:
Influence: DCI icon theme
Change-Id: Ie625c4f9c431c4fb95f5c509d16742715d79a9a1
2022-07-19 10:22:35 +08:00
Chen Bin 6d092b93f0 feat: Add icon padding property
Layers with some icons may have a padding attribute that
makes the layer not take up Icon space beyond the padding
area (based on this design).

1. Padding will increase in scale ratio to fit icon size
2. The resulting icon file will contain all sizes of the
icon (including padding sizes).
3. If the target icon size is larger than the source icon
size, padding scales to fit the icon size.

Log:
Influence: DCI icon
Change-Id: I5f1594e24202bf5ee1891885322e327d37344d23
2022-07-19 10:22:35 +08:00