Commit Graph

517 Commits

Author SHA1 Message Date
tsic404 d30876386c chore(CI): add OBS workflows
add OBS workflows and modify PKGBUILD support OBS build

log:
2023-03-29 09:28:15 +08:00
ck 9e54cba93c feat: add DIconTheme::createIconEngine
DIconTheme::createIconEngine for qt5integration
1. try createBuiltinIconEngine first
2. try createXdgProxyIconEngine or fallback to fromTheme
3. add docs
Warning : do not call from qplatformTheme createIconEngine without
DontFallbackToQIconFromTheme flag

Log: add createIconEngine
2023-03-22 17:33:58 +08:00
ck 2e966e94bf fix: dci icon image scale calculation error
qreal pixmapScale = 48 / 256; // 0
qreal pixmapScale = qreal(48) / 256; // 0.1875

Log: dci image size calculation error
2023-03-10 14:41:18 +08:00
ck 6549a67eb3 chore: update readme and help message
update readme and usage

Log: none
Change-Id: Ibf40852aaa8aca2d21f51fdc37657fc79fd33966
2023-03-09 11:30:05 +08:00
wangyixue 419e11629b chore: update changelog
Bump version to 5.6.8.
2023-02-22 15:44:58 +08:00
Felix Yan 8a5e67652c chore: correct a typo in dci-icon-theme/main.cpp
Correct a typo in dci-icon-theme/main.cpp
2023-02-22 15:07:46 +08:00
wangyixue cca33d94c8 chore: update changelog
Release 5.6.6.

Log: update changelog
2023-02-21 11:58:30 +08:00
ck f893e02fdf chore: update archlinux build
1. add DTK_DISABLE_LIBRSVG build option to disable librsvg
2. archlinux DTK_DISABLE_LIBRSVG=ON by default
3. use QSvgRenderer instead of librsvg if option on

Log: archlinux build
2023-02-20 09:30:15 +08:00
wangyixue 5c948aa7ee fix: qch generate error
Correct markdown title level to fix qch generate error.

Log: fix qch generate error
2023-02-15 17:05:28 +08:00
chenhongtao ebde919132 chore: fix PKGBUILD
Dependiencies not plugin and hard link to library should not mark as
optdepends

Log: fix PKGBUILD
2023-02-14 12:55:15 +00:00
zccrs 66ab7451f2 feat: Support animation for DDciIcon
See also https://github.com/linuxdeepin/deepin-specifications/pull/1,
This implementation complies with the specification by DSG on animation
dci's icons.

New class: DDciIconImage DDciIconImagePlayer DDciIconPlayer
2023-02-14 13:17:17 +08:00
zccrs 7fa65a0792 fix: Don't change color if the HSL values no variation
If all the adjust parameters are 0, do not make any changes for the base
color. Because when trying to adjust the HSL value of an RGB spec color,
it will first convert the RGB spec to the HSL spec, and this conversion
will cause some precision loss, and cause the color has changed when
conversion back to the RGB spec.
2023-02-14 13:17:17 +08:00
ck e244d5d3fb chore: quality option must specify
1. must specify quality option
2. scaled counts depends on quality params
3. help message tweak
4. update version to 0.0.4

Log: scale quality
Change-Id: Ideecb18175a7d58cb2e94898246df01fe19147b4
2023-02-08 17:38:12 +08:00
ck c1286c6502 chore: dci-icon-theme tweak
1. update version to 0.0.3
2. fix initQuality not init if --quality not set

Log: none
Change-Id: I66f2d494f9e34194ffed17564334b3e29109737a
2023-02-08 09:25:37 +08:00
wangyixue 088bfea481 fix: lost dependency of Qt5Gui
Add dependency of Qt5Gui cause dtkgui depends it.

Log: add find_dependency(Qt5Gui)
2023-02-07 06:41:10 +00:00
renbin 3b8ab9c49b fix: Fix DImageHandler build warnings.
Fix DImageHandler build warnings, modified the code according to cppcheck.
Add CMAKE_CXX_FLAGS '-fopenmp'.

Log: Fix DImageHandler build warnings.
Issue: fix #110
Influence: CCMAKE_CXX_FLAGS environment variable
2023-02-07 01:26:00 +00:00
ck 451b85b4b2 fix(build): build failed when cmake < 3.16
do not use PkgConfig::libraw
cmake 3.16 changelog
If a full path to the found library can't be determined, but it's still
visible to the linker, pass it through as ``-l<name>``.  Previous versions
of CMake failed in this case.

Log: build
Change-Id: I48a03142a0f4778a531e5138ea7489a8f42ce5c5
2023-02-06 18:00:07 +08:00
ck 5de5c59984 feat: add quality option
quility of dci icon scaled image
the higher the quality, the larger the dci icon file size

Log: quality option
Change-Id: Ifdfa51091bb560ad76881366a9c5168daf6cc9ab
2023-02-06 16:56:42 +08:00
ck 7d070dd912 feat: add icon finder for dci-icon-theme
dci-icon-theme --find <icon name> or
dci-icon-theme --find <icon name> -t <icon theme name>

output:
"deb" [ "xxx-icon" ]: "/usr/share/dsg/icons/xxx-icon/deb.dci"

Log: none
Change-Id: Ide152e0ba1cba0fb0252ead7304c255a2c0695d4
2023-02-06 13:33:26 +08:00
ck 3135be671d fix: add edit-clear active icon
a74f91cc revert 70cea318...
rebase before push !!

Log: none
Change-Id: I938abc43cd6e44ddd4ea48e5aa76a516a4526cb0
2023-02-06 09:40:09 +08:00
ck 78cb5939ea chore: update changelog
update changelog
Log: update changelog
Influence: none

Change-Id: I67b88d621e4bda0dad68519f04e90e5e362ea6c9
2023-02-02 16:04:51 +08:00
ck f79aeb8aaa feat: add scrollBarPolicy interface
same as Qt::ScrollBarPolicy
0 show as needed auto hide, default
1 always off
2 always on

Task: https://pms.uniontech.com/task-view-240117.html
Log: scrollbar policy
Change-Id: Ia37f2a5661cb27de568bc3f7ece5a4a6a1fcae97
2023-02-02 13:41:08 +08:00
renbin e400ddd110 feat: Optional dependencies libfreeimage and libraw.
Change the build dependencies, libfreeimage and libraw are not
required by default, except for debian and linglong builds.
Set DTK_DISABLE_EX_IMAGE_FORMAT=ON to not support extended
image format.

Log: Optinal dependencies libfreeimage and libraw.
Influence: Add build package options
2023-02-02 02:33:30 +00:00
renbin 0d6cb64ca6 chore: Update linglong.yaml
The linglong org.deepin.base environment includes librsvg2 and
libraw libraries, which do not need to configure it in depends
field. Correct libfreeimage to freeimage.

Log: Update linglong.yaml
Influence: linglong build configuration file.
2023-02-02 02:33:30 +00:00
renbin 5ca5df6ccf feat: Support RAW image formats.
1. Dynamically load libraw.so to support RAW image fomats.
2. Improve some implementations, Update unit cases and docs.
3. Move image-handler from folder example to tool.

Log: Support RAW image formats.
Influence: Add build dependency libraw-dev.
2023-02-02 02:33:30 +00:00
xzl 7539108e26 docs: add doxygen theme
在打开build theme编译选项时会自动下载主题

Log:
2023-01-17 10:20:46 +08:00
wangyixue 34a1fe3f19 chore: change GTest::gtest for compatibility
Change GTest::gtest to GTest::GTest for backward compatibility.

Log: change GTest::gtest to GTest::GTest
2023-01-12 14:00:17 +08:00
ck 306baad983 chore: DDciIcon::fromTheme support absolutePath
return DDciIcon(fileName) if fileName is full path

Log: none
Influence: none
Change-Id: I6835074c48792877dfb06842402546d7d428fa6c
2023-01-11 15:52:50 +08:00
ck 6a8bbff79e chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: Ib5b8e6af0bde8751ab75d179af18021ea8b3d144
2023-01-10 10:29:46 +08:00
yeshanshan f7e76a9706
feat: Add SizeMode support (#95)
enable SizeMode support by default.
  user can set environment `D_DTK_SIZEMODE` to set
SizeMode support.
  application can set SizeMode by `setSizeMode` explicitly.

Log: 支持紧凑模式切换
Task: https://pms.uniontech.com/task-view-227385.html
Influence: none
Change-Id: I2eefe254f9bbf380d9ab133c4eb0caa979ed1356
2023-01-06 05:00:41 +00:00
deepin-admin-bot b6b4691e55 chore: Sync by
sync by github workflow

Log: none
Influence: none
2023-01-06 01:52:43 +00:00
bluesky c84d977c2b docs: add example for ddciicon
给ddciicon添加例子

Log: add example

Task: deepin-community/coding-quarter#26
2023-01-04 08:27:57 +00:00
xzl 87f2388f31 docs: add docs and group, update dep5
添加文档和分组, 更新分组和dep5文件

Log:
2023-01-04 14:34:51 +08:00
xzl 0a76949970 chore: add gitignore item
添加gitignore item

Log:
2023-01-04 10:34:09 +08:00
ck a74f91cc7b feat: add standard status icons
add info/ok/warning builtin svg icons (32x32 scalable)
add ok/alert/waiting/warning dci icons (20x20)

Log: none
Influence: icons
Change-Id: I57a62d452ccc58688dce57202e384a86772dd99b
2023-01-03 18:01:52 +08:00
ck f0b2a3c536 fix: unexpected reply signature bool
reply type is void not bool

Log: none
Influence: none
Change-Id: I5bdbe7ee89aedbb572e12942742225e07922be86
2023-01-03 18:01:29 +08:00
wangyixue e0081d840f chore: change include and tool directory
Change include and tool directory to dtk${PROJECT_VERSION_MAJOR}.

Log: change include and tool directory
2023-01-03 15:28:56 +08:00
wangyixue a69ed2efdc chore: add export target support
Export target Dtk::Gui. Users can simply use target_link_libraries.

Log: add export target support
2022-12-29 09:52:49 +08:00
ck 2e8f35a33e fix: fix-dark-theme not work on link file
--fix-dark-theme only copy linktarget file to ouputput dir.
record link-target map and makelink after fix job
update version to 0.0.2

Log: none
Influence: none
Change-Id: I9100c98107551eb002656e34937a8524075743bc
2022-12-28 17:38:19 +08:00
ck 0f872fa323 feat: add linglong build support
add linglong.yaml to support linglong build
see https://linglong.dev/guide/ll-builder/manifests.html

Log: linglong
Influence: linglong
Change-Id: Iaefe90c764b6f9370e9b26c07556e7a718822001
2022-12-27 17:08:51 +08:00
xzl ded66d1d3b docs: add dci docs
添加dci文档(初步完成,需要补充例子)

Log:
2022-12-27 00:32:16 -06:00
ck 2eae43e7be feat: add dci-icon-theme tool
add dci-icon-theme tool to generate dci icon theme

Log: none
Influence: dci icon theme
Change-Id: Iec3b6ab5adef6ca2510e2d22bbd78ae7395c7e51
2022-12-27 13:04:05 +08:00
zccrs d0bc6d89d5 feat: using native settings in frameless window example
Add examples for _d_buildNativeSettings platform function.

Log: none
Influence: none
2022-12-19 15:48:23 +08:00
ck eed4e3faee fix: no return value on some case
no return value after asyncCall

Log: undefined behavior
Influence: none
Change-Id: I15a6aec8a8ab57e446f25fbf91c979acde667903
2022-12-19 13:57:10 +08:00
zccrs 195e45f285 feat: add an example
Show the frameless window implementation.

Log: none
Influence: none
2022-12-16 16:09:23 +08:00
ck edd51cbd8a chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I98f818c3f64b509dce012024da2a7f98400e2a2b
2022-12-12 17:49:34 +08:00
ck 8e1a76a607 chore: dbus service and path
<org_name>.<project_name>.<control_version>
org_name        : org.deepin
project_name    : dde
control_version : XEventMonitor1
see https://doc.uniontech.com/docs/erAdP6Xj4ySMyvAG

Log: tweek dbus service and path
Influence: dbus service name and path
Change-Id: I50dedca94bc02a6d482463d7ddecf9bc0d13b6ba
2022-12-12 17:49:34 +08:00
ck 2a9847a5a0 chore: use asyncCall instead of call
1. use asyncCall instead of call to prevent block gui
2. check sessionBus isConnected instead of isServiceRegistered

Log: none
Influence: none
Change-Id: Idac86416735482269d81432aba2993ceceb5e0e5
2022-12-12 14:19:28 +08:00
renbin 5f33adfb3c feat: Doxygen exclude dimagehandlerlibs.
Set DOXYGEN_EXCLUDE_PATTERNS variable to exclude private class
DLibFreeImage.

Log: Doxygen exclude dimagehandlerlibs.
2022-12-12 06:16:33 +00:00
renbin 9dc1bb90d1 feat: Add image algorithms, ut and comment.
Add image algorithms, unit test cases, dox file comment and example.

Log: Add image algorithms, ut and comment.
2022-12-12 06:16:33 +00:00