Commit Graph

539 Commits

Author SHA1 Message Date
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
renbin 2600e5ea59 feat: Add the DImagehandler class.
Add the DImagehandler class, provide functions such as reading image,
rotating image, getting image metadata. DImagehandler dynamically load
libfreeimage to support extended image formats.

Log: Add the DImagehandler class.
Influence: Add build dependency libfreeimage-dev.
2022-12-12 06:16:33 +00:00
ck 70cea31810 fix: edit clearbutton pressed style incorrect
QLineEditIconButton(Qt 5.15) get pixmap from Active state
instead of Selected state when button is down
add active state pixmap (note that dstyle  will fill
10% opacity black or white on active state)

Bug: https://pms.uniontech.com/bug-view-172425.html
Incluence: QLineEdit clearbutton
Log: none
Change-Id: I182e6ec7b68bd251a3eb935616d2e3f6393d6676
2022-12-12 13:22:08 +08:00
ck d6cd2c8c63 fix: AreadList metaType override
qRegisterMetaType<AreaList>("AreaList");
覆盖导致dock使用接口出现位置异常
cc2a09558b/libdframeworkdbus/types/arealist.cpp (L35)

Bug: https://pms.uniontech.com/bug-view-175747.html
Log: none
Influence: dock hide and show
Change-Id: Ie10bd436ddaa66e0477b5db40d6e36fbea2d0733
2022-12-07 15:49:46 +08:00
wangyixue 89698b4c1c chore: fix linking error
DtkGuiConfig.cmake will always find the library under system library
path. This will cause a linking error when you want to use the version
deployed by yourself. Fix that by appending the path prefix.

Log: fix DtkGuiConfig.cmake.in
Influence: DtkGuiConfig.cmake.in
2022-12-05 10:37:45 +08:00
ck f0c7c06e79 fix: uengine not set appname cause crashed
uengine app not set appname cause DSGApplication::id() assert

Log: none
Influence: uengine app
2022-12-03 15:19:59 +08:00
ck 36eb4ff565 chore: 适配 XEventMonitor 服务改名
修改 XEventMonitor 服务名为 org.deepin.api.XEventMonitor1

Log: 修改XEventMonitor服务名。
Influence: 无。
2022-12-02 13:52:35 +08:00
ck b1a1654f69 chore: update changelog
5.6.2.2

Log: none
Influence: none
2022-11-30 11:54:26 +08:00
Ye ShanShan 9fb5d8c794 fix: Remove ASan check for debug
Removing asan check

Log: 移除库的asan检测
Influence: none
Change-Id: I248ae4d41dfcb70e565fc68d510b9c318c459ee1
2022-11-29 14:51:24 +08:00
ck b6d844990b feat: construct DDciIconPalette from QPalette
add a way to construct DDciIconPalette from QPalette

Log: none
Influence: none
Change-Id: I4e9b9f8bf3a653c066bf92c7ba1a3ef72526e2ac
2022-11-29 11:42:52 +08:00
ck 1e305e8e38 fix: 包含 href 特性的 svg 图标无法显示
librsvg2 对 SVG2 的 href 解析有问题,需要改成 xlink:href 规避
当前是临时规避方案,如果后续 librsvg2 升级修复这个问题,可以 revert
https://www.w3.org/TR/2018/CR-SVG2-20181004/types.html#InterfaceSVGURIReference

Task: https://pms.uniontech.com/task-view-218689.html
Influence: 包含href的svg图标
Log: 修复包含href的svg图标无法显示的问题
Change-Id: Idaf0ca9519153cd8fe217aeaaeab250b18f35393
2022-11-25 16:20:41 +08:00
deepin-admin-bot 7f0057bcd0 chore: Sync by 3de30af6dc
sync by github workflow

Log: none
Influence: none
2022-11-24 08:45:32 +00:00
deepin-admin-bot f688039440 chore: Sync by 6aa579e31c
sync by github workflow

Log: none
Influence: none
2022-11-18 02:00:24 +00:00
ck 934be318be feat: add DIcon
get pixmap of specified devicePixelRatio
Fix https://pms.uniontech.com/bug-view-162771.html

Log: none
Change-Id: I38b16c8402be74d1ef216faf7c77fa096282dadc
2022-11-17 13:54:12 +08:00
deepin-admin-bot de0385eca6 chore: Sync by 50ad27fb2a
sync by github workflow

Log: none
Influence: none
2022-11-16 03:44:34 +00:00
deepin-admin-bot f94b34cf37 chore: Sync by d15debb9d3
sync by github workflow

Log: none
Influence: none
2022-11-11 06:54:33 +00:00
Ye ShanShan 27eeedefdf feat: Moving loadTranslator from dtkwidget
moving implement of loadTranslator from dtkwidget,
  refact the code's logic.

Log: 加载翻译功能移至dtkgui,以便供dtkdeclarative使用
Bug: https://pms.uniontech.com/bug-view-157977.html
Influence: qml相关应用没有加载翻译
Change-Id: I75483320cbb6f8a1378cb8a93f00da3d8abfc26f
2022-11-03 10:24:56 +08:00
kamiyadm cedce64025 fix: cannot find dman if the installation path not /usr/bin
find dman from system environment variables

Log: none
2022-10-28 13:11:55 +08:00
wang fei aa23085099 feat: Add Warning for unsupport Image format
it causes paint error when load unsupport image format, we add
output some information.
  we can install package `qt5-image-formats-plugins`.
  it's need to support `webp` image for some dci icon.

Log: 添加dciicon图标解析失败导致无法绘制时的警告信息
Influence: none
Change-Id: Ief27263af5caa74c4a9f0436ebdf8759ea39bd82
2022-10-27 11:24:16 +08:00
ck 37aa254da9 fix: filedrag do not send data in ll-box
qApp->applicationPid() 获取的是沙箱中的pid
QDBusConnectionInterface::servicePid 获取的是沙箱外的pid
改成相同的pid

Log: 修复v23无法拖拽邮件到桌面
Bug: https://pms.uniontech.com/bug-view-156601.html
Change-Id: I1e41a47e7f1e5030a33fff766b7fa35c675b7ae7
2022-10-20 11:36:13 +08:00
deepin-admin-bot 3fc47d2201 chore: Sync by 6fbf8e00b9
sync by github workflow

Log: none
Influence: none
2022-10-14 05:24:57 +00:00
rewine 5204f570ef feat: Improve install path information
Log:
1. Add DtkGui_LIBRARY_DIRS
2. fix typo in Config.cmake
3. replace the previously missed  INCLUDE_INSTALL_DIR
2022-09-27 03:35:46 +00:00
Ye ShanShan d30618f92b fix: Cast error when platform theme changed
QMetaMethod::invoke will test whether object is an instance
of the QMetaObject by Q_ASSERT(mobj->cast(object)),
but invokeOnGadge will not, and their role seem to be the same,
we only use DirectConnection to invoke it.
  DPlatformTheme is inherits DNativeSettings, and it's metaobject
is changed to DNativeSettings in qt5platform-plugin.

Log: 调用invoke会做assert判断,导致当qt为debug编译时,改变主题会导致程序崩溃
Influence: 当qt为debug编译时,改变主题会导致程序崩溃
Change-Id: I9133430ba6f3df4c4a806ff9fa96ba8ec8213ce4
2022-09-27 02:10:05 +00:00
Ye ShanShan 999b6f5fc5 fix: Application theme can't follow change by system
DPlatformTheme is invalid when DGuiApplicationHelper::instance()
is called before QApplication constructed. it causes application
theme can't follow change by control-center setted.

  for example:
```c++
DGuiApplicationHelper::instance();
QApplication a(argc, argv);
```
  it also reports warning info about `Must construct a QGuiApplication
before accessing a platform function` in QGuiApplication.

Log: 延迟DPlantfromTheme构造
Bug: https://pms.uniontech.com/bug-view-160485.html
Influence: 先调用DGuiApplicationHelper::instance()可能有影响,
若先构造QApplication,与之前逻辑一致

Change-Id: I91297fb47c38c1ebb6d97f9c62915aa5d5557624
2022-09-26 11:38:24 +08:00
rewine f7324e32cf feat: Improve version information
1. 使用 CMakePackageConfigHelpers 生成 Config.cmake
2. 提供 DtkWidgetConfigVersion.cmake 供调用者检查版本
3. 使用 GNUInstallDir 提供的 FULL 版本变量配置 pkg-config 路径
4. 补充 pkg-config -L 参数
5. 增加引入 dtkcore 版本检查
2022-09-22 14:34:03 +08:00
chenhongtao 69f96446c0 fix(licence): licence
README and LICENSE

Log: fix licence
2022-09-22 05:33:34 +00:00
Wang Zichong 798f77411a chore: update .reuse/dep5 for dox format doc files
更新 dep5 文件,追加对 dox 格式文档文件的声明
2022-09-08 01:36:08 +00:00
Wang Zichong 084d467a83 docs: update docs related to DGuiApplicationHelper
更新与 DGuiApplicationHelper 相关的文档

相关反馈:https://github.com/orgs/linuxdeepin/discussions/3412

Log:
2022-09-08 01:36:08 +00:00
chenhongtao 4cffb60f92 chore(mkspecs): define mkspecs self
一开始只处理了archlinux和debian,但是nixos更加特殊,以外还有很多不知道的处理,所以让打包者自定义好了

Log: mkspecs path
2022-09-06 06:23:02 +00:00