Commit Graph

2413 Commits

Author SHA1 Message Date
ck eb2fff404f chore: bump version to 5.6.11
update changelog
2023-05-08 15:07:20 +08:00
wangfei dcb6217d4b fix: adjust floatbutton's size in compact mode
In compact mode, add the margins to sizehint.

Log: modify floatbutton's content size to 36*36
Issue: https://github.com/linuxdeepin/dtk/issues/36
2023-05-05 11:13:02 +08:00
wangfei 85a476724d chore: update translation files
delete some deprecate words.
add some words about custom toolbar.

Log: update translation files
2023-05-05 11:12:11 +08:00
rewine 802ed1d930 fix: must set CMAKE_INSTALL_PREFIX before GNUInstallDirs
Log:
Never modify the value of CMAKE_INSTALL_PREFIX after including GNUInstallDirs
Otherwise incorrect CMAKE_INSTALL_FULL_XXXX values will be computed
2023-04-28 07:39:52 +00:00
wangfei 0f0f79f6ca fix: the redundant field "version" has been added
remove the redundant field "version: " in about dialog

Issue: https://github.com/linuxdeepin/dtk/issues/62
2023-04-26 13:40:14 +08:00
bluesky f0323b6608 fix: titlebar was not updated when titlebarHeight was changed
修复titlebarHeight属性被修改时,标题栏没有实时生效。

Issue: https://github.com/linuxdeepin/dtk/issues/51
2023-04-26 13:14:50 +08:00
donghualin 2f8df6c939 fix: 修复ArrowRectanble设置位置错误
当给ArrowRectanble设置parent的时候,调用show方法没有计算顶层窗口的位置导致最终计算的窗口错误

Log: 修复锁屏界面竖屏无法显示网络列表
Influence: 登陆界面和锁屏界面的网络列表
Bug: https://pms.uniontech.com/bug-view-195913.html
2023-04-24 14:50:18 +08:00
YeShanShan 7692c1572e feat: Deprecate DApplicationSettings
The feature has been moved to DGuiApplicationHelper in the
commit 19492cbfb71954a4939028b37ce66981d34e324e
2023-04-24 13:58:34 +08:00
Felix Yan 45c20d90e5 fix: suppress cmake warning for missing directory specified
Fixes the following warning:

```
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.
```
2023-04-21 13:22:03 +08:00
Felix Yan 29cdb8b79f fix: remove unused librsvg dependency from dtkwidget.spec
It's no longer in use.
2023-04-21 13:21:34 +08:00
bluesky 0354aa60f1 doc: update DSwitchButton docs
更新DSwitchButton控件的文档

Log: update docs
2023-04-21 10:30:49 +08:00
wangfei 359121fea6 chore: init option by baseStyleOption() in diconbutton
init option by virtual function baseStyleOption() in diconbutton

Log: init option by baseStyleOption() in diconbutton
2023-04-20 16:31:31 +08:00
wangfei 47c5b4576f Revert "fix: icon size is abnormal when dpi > 1"
This reverts commit de8d8f9920.
2023-04-20 16:30:09 +08:00
wangyixue 89a20b8120 feat: add DMPRISControl example
Add example in collections for DMPRISControl widget.
2023-04-18 10:10:56 +08:00
wangyixue 287fd228c5 fix: DMPRISControl style conflicts with design
* Icon is too small compared to design, replace the icon with new
icon that is 36x36 and fix the button size (52x52) and icon size.
* Spacing between media control buttons is smaller than design. Set
fixed spacing in control buttons layout (Default is 80px).
* Add DMPRISControl example in collections.

Log: fix DMPRISControl style conflicts with design
2023-04-18 10:10:56 +08:00
ck 1521966be9 chore: update to 5.6.10
Log: update changelog
2023-04-17 18:03:29 +08:00
Felix Yan 2efad74dcd fix: don't set CMAKE_BUILD_TYPE in CMakeLists.txt
Distributions actually prefer CMAKE_BUILD_TYPE being `None` (the default value) so that their CFLAGS/LDFLAGS are used instead of the cmake presets. Let's do not overwrite it with "Release".
2023-04-17 17:56:00 +08:00
Felix Yan dd2e38e77c fix: remove unused cmake option from PKGBUILD
`HUNTER_ENABLED` isn't mentioned elsewhere in this project.
2023-04-17 17:32:32 +08:00
Felix Yan 0a9216852a fix: remove unused librsvg dependency from PKGBUILD
It's not mentioned anymore in this project.
2023-04-17 17:29:16 +08:00
YeShanShan 34ecd23d86 fix: DFloatingButton can't display dciicon
Option's `features` is overridden.
2023-04-17 15:45:58 +08:00
deepin-admin-bot 099a440836 chore: Sync by 2dd22560f7
sync by github workflow

Log: none
Influence: none
2023-04-14 08:42:25 +00:00
deepin-admin-bot 4c4f49199b chore: Sync by c5d10d3aeb
sync by github workflow

Log: none
Influence: none
2023-04-14 08:32:43 +00:00
YeShanShan 1f516707cf fix: TextAction doesn't display in center
We calculate text rect including origin text and action text
in AliginVCenter layout, and then paint it.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/408
2023-04-13 15:54:08 +08:00
YeShanShan acaeb90360 fix: Modify ButtonMargin from 10 to 8
According to designer.
  It results display error for dde-control-center's shutcut keys
for `10`, so we change it back.

Issue: https://github.com/linuxdeepin/dtkwidget/pull/373
2023-04-13 15:53:48 +08:00
wangfei b1954f2ec2 Fix: Qt::ToolButtonTextUnderIcon does't work
set a fixed layout mode Qt::ToolButtonTextBesideIcon in codebase

Log: delete fixed layout Qt::ToolButtonTextBesideIcon
Issue: https://github.com/linuxdeepin/dtkwidget/issues/403
2023-04-12 16:49:49 +08:00
YeShanShan dbf50f00c5 fix: ListView's widget switching hide and show frequently
It's apparent when we set a widget for DStandardItem, and
hovering it, it look obvious when changing Widget's cursor.
  We hide widget depending on the different of last and current
frame, When we hover one item, Viewport also to be repaint,
and it's area is an item hovered, this caused we made a
calculation error.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/364
2023-04-11 09:14:35 +08:00
wangfei de8d8f9920 fix: icon size is abnormal when dpi > 1
ButtonIconSize does't multiply ratio in dstyle, which lead to
both pixmap size and rect size disagree.

Log: modify ButtonIconSize's default value
Issue: https://github.com/linuxdeepin/dtkwidget/issues/390
2023-04-07 10:09:02 +08:00
YeShanShan d9e2e16cd6 fix: Build error for Qt 5.15~6.1
PM_LineEditIconSize is introduced in qt6.2 or patch,
the iconSize is always 20 in NormalMode or CompactMode.
Building error is introduced in 'ec55b744d6ae766911d01948c56eac8b18fc5289'

Log:
2023-04-04 13:32:27 +08:00
wangfei 091b978048 fix: SwitchButtonHandle isn't expanded when switchbutton is expanded
set the handle's width to half of switchbutton's width;
set the handle's height to switchbutton's height.

Log: modify the handle's size in switchbutton
Issue: https://github.com/linuxdeepin/dtkwidget/issues/389
2023-04-04 09:54:11 +08:00
ck 9c56701109 chore: update to 5.6.9
Log: update changelog
2023-04-03 10:28:26 +08:00
ssk-wh 92573ab37e feat: 增加覆盖指定界面的水印类DWaterMarkHelper
可通过DWaterMarkHelper的接口设置水印样式,并通过registerWidget添加水印

Log:
Influence: 无
Task: https://pms.uniontech.com/task-view-243575.html
Change-Id: I84cf4d3fb0eb17deb0ab9c2e7b154bf884167a0b
2023-04-03 10:10:47 +08:00
YeShanShan ec55b744d6 fix: Modify SearchEdit's icon
`search_indicator` and `search_action`'s size is 36 * 36, and
they have more than white space, now we update those icon in
dtkgui and qt5integration, and remove unnecessary avoidance.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/325
Log: It depends dtkgui and qt5integration.
2023-04-03 10:07:25 +08:00
tsic404 3447fb3c8b chore(CI): add OBS workflows
add OBS workflows and modify PKGBUILD support OBS build

log:
2023-03-29 09:40:37 +08:00
bluesky 1e6cb03ba8 fix: update updateTitlebarHeight
修改updateTitlebarHeight函数,取消titlebarHeight等于50的判断,配置文件默认值为-1

Issue: https://github.com/linuxdeepin/dtkwidget/issues/367
2023-03-28 09:09:19 +00:00
wang fei 2db46873a9 fix: adjust daboutdialog's ui
adjust the ui of daboutdialog

Log: adjust daboutdialog's ui
Issue: https://github.com/linuxdeepin/dtkwidget/issues/361
Influence: daboutdialog
2023-03-28 10:54:49 +08:00
ck 2d9f4dad45 chore: tx config tweak
update group name
tx --version : TX Client, version=1.6.5
tx pull --all --branch master
2023-03-28 10:51:33 +08:00
bluesky 3d9e9f91a8 feat: add the ability to configure the default height of the DTitleBar
新增通过DConfig配置DTitleBar的功能

Issue: https://github.com/linuxdeepin/dtkwidget/issues/367
2023-03-28 02:20:05 +00:00
wang fei d0222e84fc fix: modify listview for compact mode
In compact mode:
modify margins to margin(10, 6, 10, 6)
modify icon size to QSize(24, 24)

Log: modify listview in compact mode
Issue: https://github.com/linuxdeepin/dtkwidget/issues/324
Influence: compact mode
2023-03-24 11:14:54 +08:00
jiawen 3dd052196f doc: update docs
更新dwindowoption docs

Log: update docs

Task: linuxdeepin/dtkwidget/issues/360
2023-03-18 08:54:33 +00:00
YeShanShan accac81a38 fix: Adjust icon size for subclass of lineedit
DLineEditPrivate provides a default size for subclass.
2023-03-17 14:46:48 +08:00
YeShanShan 2712141845 fix: Modify edit widgets to adapt CompactMode
Adjust the interval between widget to 10 for edit.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/325
2023-03-17 14:46:48 +08:00
YeShanShan 03f6b462a8 fix: Adjust SwitchButtonhandler's width in CompactMode
SwitchButtonhandlerWidth is different,
  It's SwitchButtonGroove's width is 40 in CompactMode, and 50 in NormalMode,
It's just by 5 / 3 * PM_SwitchButtonHandleWidth.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-17 14:46:21 +08:00
xzl 4a681b4501 chore: set BUILD_DOCS OFF
Log:
2023-03-16 18:33:28 +08:00
YeShanShan 0e725e4097 fix: Modify PushButton to adapt CompactMode
Use `ButtonMargin` as Arrow's margin with frame, and changes it
from 8 to 10.
  Modify Indicator in CompactMode.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-16 16:46:58 +08:00
Ye ShanShan 3887d00daf fix: Modify size style for toolbar
Adjust toolbar iconsize from 24 to 16.
  Add example for toolbutton.

Log: 依赖qt5integration升级
Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-16 16:37:01 +08:00
wang fei 44aea4b9ad chore: remove log about sidebar
remove userless log obout sidebar

Log: remove log about sidebar
Influence: none
2023-03-16 05:36:56 +00:00
YeShanShan 7a8cf71ff7 fix: Restore window's size for example
Restore window size
2023-03-16 10:38:51 +08:00
YeShanShan 6afbc61abe fix: Modify style for example's titlebar
Clipping TitleBar control and modifing radius from 16 to DMainWindow's radius.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/323
2023-03-16 10:38:29 +08:00
ck 46ac16a586 fix: DAbstractDialog translucent background
if windowmanager not support blur window effect
do not set `Qt::WA_TranslucentBackground` attribute
setblurEnabled will not work

Issue: https://github.com/linuxdeepin/dtkwidget/issues/358
Log: fix Dialog translucent background
2023-03-15 14:10:11 +08:00
xzl 13e2126112 docs: update readme
add docs link

Log:
2023-03-14 16:14:35 +08:00