Commit Graph

2624 Commits

Author SHA1 Message Date
github-actions[bot] f20be8bedc chore: New release 5.7.18
Log:
2025-06-27 09:19:14 +00:00
yeshanshan 2d88b9ec79 fix: make version optional in release workflow and update spec file
1. Changed version parameter to be optional in GitHub workflow to allow
more flexible release process
2. Updated rpm spec file formatting for consistency and added %{?dist}
macro for proper package naming

The changes allow for:
- More flexible release process where version can be omitted
- Better formatted spec file with proper dist macro for package naming

fix: 使发布工作流中的版本可选并更新spec文件

1. 将GitHub工作流中的版本参数改为可选,以实现更灵活的发布流程
2. 更新rpm spec文件格式以保持一致性,并添加%{?dist}宏以正确命名包

这些更改允许:
- 更灵活的发布流程,可以省略版本号
- 格式更好的spec文件,带有正确的dist宏用于包命名
2025-06-27 16:44:07 +08:00
github-actions[bot] 468c8e7b1f chore(rpm): New release 5.7.17
Log:
2025-06-19 10:22:21 +08:00
asterwyx d65f32d9f1 chore: update .syncexclude
Exclude CHANGELOG.md.
2025-06-18 17:00:40 +08:00
Ye ShanShan d377893d9f feat: update window control icons and drawing logic
1. Replaced window_normal.dci with window_restore.dci and
window_quit_full.dci icons
2. Updated icon references in dtk-icon-theme.qrc resource file
3. Simplified title bar button drawing functions to use new icons
instead of manual drawing
4. Modified DStyle implementation to use the new icon assets
5. Improved visual consistency by using pre-made icons rather than
programmatic drawing

The changes were made to:
- Standardize window control icons across the application
- Replace programmatic drawing with higher quality vector icons
- Make the UI more maintainable by using consistent icon assets
- Prepare for future theme support by using icon resources

feat: 更新窗口控制图标和绘制逻辑

1. 用 window_restore.dci 和 window_quit_full.dci 图标替换了
window_normal.dci
2. 更新了 dtk-icon-theme.qrc 资源文件中的图标引用
3. 简化了标题栏按钮绘制函数,使用新图标替代手动绘制
4. 修改了 DStyle 实现以使用新的图标资源
5. 通过使用预制图标而非程序绘制提高了视觉一致性

这些修改的目的是:
- 标准化应用程序中的窗口控制图标
- 用更高质量的矢量图标替代程序绘制
- 通过使用一致的图标资源提高UI可维护性
- 通过使用图标资源为未来主题支持做准备
2025-06-18 14:33:42 +08:00
Yixue Wang 9618f0c4d4 feat(ci): Add auto release workflow
Log: as title
2025-06-11 11:47:29 +08:00
Yixue Wang 888f22cd21 feat: Support VERSION file
Use VERSION file to manage DTK version. VERSION file defines package version. It also decides the initial value of cached variable DTK_VERSION which controls the project version in cmake build system. VERSION file is not synchronized to DTK6, as DTK6 has its own VERSION file. One can still pass version to DTK_VERSION when running cmake configure. This is helpful for developers.

Signed-off-by: Yixue Wang <wangyixue@deepin.org>
2025-06-11 11:47:29 +08:00
Ye ShanShan 809f6d3f0f chore: bump version to 5.7.16
update changelog to 5.7.16
2025-05-19 09:26:18 +00:00
Ye ShanShan f31f35a717 chore: bump version to 5.7.15
update changelog to 5.7.15
2025-05-08 10:48:41 +00:00
Ye ShanShan 70e23381ad fix: correct text elision behavior with shortcuts
Fixed the text elision behavior in DLabel to properly handle cases
where the label contains shortcut mnemonics. The change modifies the
Qt::TextShowMnemonic flag to only be applied when the label actually has
a shortcut (d->hasShortcut). This prevents incorrect text display when
eliding labels without shortcuts.

fix: 修正带快捷键标签的文本省略行为

修复了 DLabel 中文本省略行为,正确处理包含快捷键助记符的情况。修改了
Qt::TextShowMnemonic 标志,使其仅在标签实际具有快捷键(d->hasShortcut)时
应用。这防止了在没有快捷键的标签上出现错误的文本显示。

pms: BUG-285143
2025-04-29 10:45:24 +08:00
Ye ShanShan d6ed6eaae0 style: adjust website link style in about dialog
1. Removed fixed font-size from website link template to use consistent
font sizing
2. Added font binding for website label using font manager with T8 size
and Medium weight
3. This ensures consistent typography across the application and better
accessibility

style: 调整关于对话框中网站链接样式

1. 从网站链接模板中移除固定字体大小,改用一致的字体大小设置
2. 为网站标签添加字体管理器绑定,使用T8大小和中等等级
3. 确保应用程序中一致的排版和更好的可访问性

pms: BUG-314767
2025-04-28 10:44:10 +00:00
Ye ShanShan 120663aa05 chore: reuse warning
as title.
2025-04-25 15:35:16 +08:00
Ye ShanShan 955b9205fd fix: watermark can't select picture for PrintPreivew
incorrect format for dialog's filter.

pms: BUG-311847
2025-04-18 14:42:45 +08:00
ComixHe be61a18045 build: compiling failed with Qt 6.9
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-04-18 14:19:42 +08:00
Ye ShanShan 00b28ebdec chore: bump version to 5.7.14
update changelog to 5.7.14
2025-04-17 13:58:17 +00:00
Ye ShanShan fe16c8e9dc fix: wheel event is accepted in qt6
QApplication::notify has change the default action
``` qapplication.cpp
we.setAccepted(true);
we.m_spont = wheel->spontaneous() && w == receiver;
res = d->notify_helper(w, &we);
eventAccepted = we.isAccepted();
```
Event is accepted if we don't call parent class event function,
it cause event will not be passed on to it's parentWidget.
and it's different with qt5.

pms: BUG-306251
2025-04-09 08:39:34 +00:00
覃本学 4fc03629b2 fix: 修复SwitchButton在透明窗口上显示时颜色太亮,太突兀的问题
原本使用的色板中button的颜色,现改为带透明度的黑色和白色

Log: 修复SwitchButton在透明窗口上显示时颜色太亮,太突兀的问题
Bug: https://pms.uniontech.com/bug-view-250757.html
Influence: DTK SwitchButton按钮 (开关)
Change-Id: Ifb231a3a9ec548d6970d240eaf2667e50ffed9f3
2025-04-08 06:57:38 +00:00
wangshaojun ce495514e1 fix: DToolTip宽度计算
DToolTip的SizeHint指定了用单行计算,当DToolTip设置了自动换行,并且文本包含换行符时,会导致计算的宽度错误

Log:
Influence: DToolTip
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I690a85f34b961a531444d32fe43b3a50ef38dc51
2025-03-31 03:45:21 +00:00
wangshaojun 7387db734f fix: DFloatingMessage宽度计算
DFloatingMessage的子控件MessageLabel支持自动换行,当文本内容包含换行符的时候,通过TextSingleLine计算的Size会与实际不符,导致整个控件宽度过大

Log:
Influence: DFloatingMessage的显示效果
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I571a4c24d84cabfabaaf4a70bca8ec931347b157
2025-03-27 09:16:40 +00:00
Ye ShanShan 9d758fe456 chore: bump version to 5.7.13
update changelog to 5.7.13
2025-03-20 18:07:33 +08:00
Ye ShanShan c611da8a15 fix: accessing wild pointer for DAboutDialog
acknowledgementLabel is wild pointer if DDialog::clearContents
is called.
aboutDialog->setLicenseEnabled is not need to call when reactive
the dialog

pms: TASK-368399
2025-03-19 11:30:15 +08:00
zhangkun add9c2ad31 feat: increase fallback for password character
0x26ab code points support fewer fonts, so we added 0x25CF with a wider range of adaptability as a fallback

pms: BUG-305575
2025-03-18 19:27:09 +08:00
Ye ShanShan 599571424d chore: bump version to 5.7.12
update changelog to 5.7.12
2025-03-06 17:41:46 +08:00
Ye ShanShan 65b8848ff9 fix: failed to save too long filename for DPrintPreviewWidget
Truncate file name to limit file's length.

pms: BUG-297841
2025-03-06 16:30:18 +08:00
Ye ShanShan 5a2e699eb7 chore: remove warning in qt6
as title.

pms: TASK-368399
2025-03-06 09:19:59 +08:00
jingshenghao b4454775dd feat: Add files generated by qdbusXML2cpp and DCONG2cpp
Add files generated by qdbusXML2cpp and DCONG2cpp

Log: Add files generated by qdbusXML2cpp and DCONG2cpp
2025-03-04 20:04:21 +08:00
jingshenghao 80e141384d doc: update docs for dwatermarkhelper
更新dwatermarkhelper的文档,添加示例代码

Log: update docs

Issue:
2025-03-04 20:04:21 +08:00
Ye ShanShan 59839f91e4 chore: bump version to 5.7.11
update changelog to 5.7.11
2025-02-27 21:06:39 +08:00
Ye ShanShan da171354d4 fix: window filickering caused by animation for DDrawer
WM's animation is confliclt with Widget.
We disable DDrawer's animation when window is invisible, and
can use D_DTK_DISABLE_ANIMATIONS to disable it's animation.

pms:BUG-242611
2025-02-25 11:24:55 +08:00
Ye ShanShan 9be9d310f4 fix: app crashed for DBlurEffectWidget in qt6
it's maybe a feature for qt6, we can't modify backingStore when
readying the widget.

``` QWidget::paintEvent(QPaintEvent *event)
QPainter pa(this);
// pa.end() // it's ok when modifing backingStore.
QImage image(window()->backingStore()->handle()->toImage());
image.detach();
```

pms:BUG-304317
2025-02-24 14:52:45 +08:00
Ye ShanShan a6a0bd630e fix: titlebar can't drag after close DAboutDialog
There is no need to get dpr based on the window.
It causes the window can't get mouse event if using
new DAboutDialog(window)).

pms:BUG-304097
2025-02-21 11:47:14 +08:00
Ye ShanShan 4284bc78bc fix: PrintPreview can't switch orientation
it's introduced when adapting to qt6 in the commit 637e3eb.

pms:BUG-298085
2025-02-17 12:50:42 +08:00
Ye ShanShan 73dd1e89fd chore: bump version to 5.7.10
update changelog to 5.7.10
2025-02-13 11:01:12 +00:00
覃本学 68e8a18dc1 fix: 修复 桌面/文管文件,打开属性窗口闪烁
窗管渲染动画问题,动画太快则会闪烁,窗管暂时无解决方案,经讨论后采用规避方案,优化动画时间和动画播放曲线
更改后在问题机L410, 还有L420自测均未再复现

Log: 修复 桌面/文管文件,打开属性窗口闪烁
Bug: https://pms.uniontech.com/bug-view-242611.html
     https://pms.uniontech.com/bug-view-242571.html
Influence: DTK DDrawer控件
Change-Id: I72bb837f6a4b1393555e7a55c382d5878147a4fd
2025-02-13 08:57:08 +00:00
deepin-ci-robot fddc7cd1e2 chore: update changelog
Release 5.7.9.
2025-01-23 09:48:05 +00:00
Ye ShanShan 3f6e005d05 fix: missing QT_QPA_PLATFORM for DApplication
it's useful for children process. and like revert the commit
cbcb732b75
2025-01-23 15:35:41 +08:00
deepin-ci-robot d545362250 chore: update changelog
Release 5.7.8.
2025-01-14 12:05:33 +00:00
YeShanShan 91ab817865 fix: access wild pointer for targetWindowHandle
ad title.

pms: BUG-368399
2025-01-14 10:26:51 +08:00
deepin-ci-robot 7345335cc0 chore: update changelog
Release 5.7.7.
2025-01-09 18:33:50 +08:00
deepin-ci-robot ee8238297e chore: update changelog
Release 5.7.6.
2025-01-02 06:40:48 +00:00
覃本学 d0f28c519a fix: 调整滑动条横条和刻度颜色
调整滑动条横条和刻度颜色

Log: 调整滑动条横条和刻度颜色
Bug: https://pms.uniontech.com/bug-view-254295.html
Influence: 调整滑动条横条和刻度颜色
2025-01-02 13:42:06 +08:00
renbin fb8711bdff fix: resident floating message cannot be closed
windowHandle() is not created by default,
use close() instead.

Bug: PMS-297669
2025-01-02 01:45:32 +00:00
deepin-ci-robot 367371aac6 chore: update changelog
Release 5.7.5.
2024-12-17 09:54:39 +08:00
ck cda1bbbbcc fix: webengineView abnormal in DMainWindow
`DPlatformWindowHandle::setWindowSurfaceType(QWindow::OpenGLSurface)`
needs to be called before constructing DMainWindow when use
webengineview
2024-12-09 15:46:52 +08:00
deepin-ci-robot b3410a0241 chore: update changelog
Release 5.7.4.
2024-12-06 11:03:21 +08:00
zhangkun 5b338f0cbc fix: some windows have dual title bars
- 使用windowhandle的close()去关闭窗口
- DDialog和DMainWindow适配Treeland

pms: BUG-286173
2024-11-28 12:02:27 +08:00
renbin 3fb2ebda49 fix: ddialog's lambda func may cause segfault
During call DDialog::exec(), the onButtonClickedClose
flag is set to true by default.
At this point, DDialog connect lambda function captures the
**temporary variable**, and does not disconnect the signal
after the exec() call ends.
As a result of calling the same dialog object multiple times,
other addresses may be **overwritten** by previous temporary
variable writes, causing segfault (crashes).

Use done() to set the return value instead of via connect
lambda function.

Log: Fixed a bug that may cause segfault.
2024-11-22 02:58:54 +00:00
deepin-ci-robot 04bc2b3610 chore: update changelog
Release 5.7.3.
2024-11-22 02:31:41 +00:00
deepin-ci-robot 6081d41904 chore: update changelog
Release 5.7.2.
2024-11-15 05:48:24 +00:00
ck b105f2c31a chore: use testAttribute instead of environment test
DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::IsWaylandPlatform)
2024-11-13 08:10:29 +00:00