546 Commits

Author SHA1 Message Date
tsic404
9de057e2cc refactor: add taskmanager from dde-application-manager
1. taskmanager used to identify which entry should map to window
  in x11 environmrnt, listen to xevent in anohter thread, and handle those event
when window create, destory, changed. use some way to identify which entry(desktopfile)
should mapped to changed window.
  in wayland, connected plsamawindow signal(window created destoried.
2. use taskmanager instead of dbus in old dock code

log: as title
2023-07-18 07:35:19 +00:00
tsic404
5f6cacdf2a refactor: Rewrite the calling method of dock settings
Rewrite the calling method of dock settings, using the new dconfig interface instead of AM's dbus interface

log: as title
2023-07-18 07:35:19 +00:00
tsic404
eb33819302 refactor: rewrite encapsulation of the dconfig
log: as title
2023-07-18 07:35:19 +00:00
tsic404
c1aa1cf13c fix: adjust tray icon size to 20
16 pixel size will make tray icon be cutted and
make it to 20 will reserve 2 pixels for each side

log: make tray icon size to 20
2023-05-29 01:55:30 +00:00
tsic404
7928cd6a2e fix: make keyboard layout plugin size fixed
indicator icon size shou be fixed same as other tray icon, should not changed follow system font size.
add text change info from sourceIndicatorWidget to display indicatorWidget

log:
2023-05-29 01:55:30 +00:00
tsic404
ab58721930 fix: dock position changed from left to bottom no date display
update dateFont size when DateTimeDisplayer size changed.

log: fix no date display on dock when postion change from left to bottom
2023-05-22 16:00:58 +08:00
tsic404
f0108d1c41 fix: timedate size issue
when the sum of the pixel dimensions of the time font and the date font is the same as the height,
leave some space so the text doesn't look too crowded.

log: adjust timedate size
2023-05-11 14:03:29 +08:00
tsic404
5908ee1605 fix: set radius for tray inner window
make m_platformWindowHandle protected so subclass can connect to windowRadiusChanged signal,
which make traymainwindow radius changed follow mainwindow

log: make trymainwindows radius changed follow mainwindow
2023-05-06 13:16:56 +08:00
Zhang Dingyuan
dc77b8904d fix: window radius is not set
as title
2023-05-05 14:52:31 +08:00
tsic404
50bbc3cf01 fix: after screen-recorder finished, dock will coredump
When screen-recorder finish recording, will notify dock update item, and dock
will clean all item and readded back. But m_dragInfo->dockItem still point to
old item which has been cleaned.
So dock will coredump, while using this pointer to judge item can drag or not.

log: update m_dragInfo->dockItem pointer when dock itemCountChanged.
2023-05-05 05:21:49 +00:00
zsien
1b5f9554d1 fix: fcitx5 keyboard tray icon blur
Choose the pixmap that fits best in size.
Fixes linuxdeepin/developer-center#4185
2023-04-27 17:13:18 +08:00
tsic404
532350f48d fix: unable drag desktop into dock
RequestDock dbus call, only local path passed into

log: fix unable drag desktop info dock and make it docked
2023-04-20 05:52:34 +00:00
chenhongtao
384fdc46ba chore: bad code fix
bad indentation of else and unused count value

Log: find some bad code and fix
2023-04-18 11:33:54 +08:00
tsic404
b2efe239b6 fix: SNI tray menu unable to click
when first left click SNI tray menu and app without activate to show, will get a dbus error and recall right menu
this will case menu unable to click, move recall to another thread

log: fix SNI tray menu unable to click
2023-04-14 14:09:29 +08:00
tsic404
7abeebc7eb fix: fix timedate display widget size error
when font size changed, timedate widget need to update width and height.
call DFontSizeManager only when font size changed

log: fix timedate widget size erorr
2023-04-14 11:10:22 +08:00
Yutao Meng
ec5c447264 feat: DockPopupWindow改用DBlurEffectWidget实现
DockPopupWindow改为使用DBlurEffectWidget来实现新的设计,以及摆脱原来DArrowRectangle出现的侧边任务栏PopupWindow圆角显示不对称的问题.

Log: DockPopupWindow改用DBlurEffectWidget实现

Signed-off-by: Yutao Meng <mengyutao@uniontech.com>
2023-04-11 08:40:17 +00:00
tsic404
59f462ff09 fix: fix xembed tray flew out
xcb create window must map to xembedtray widget, otherwise the window will fly out

log: fix xembed tray fly out
2023-04-07 18:11:04 +08:00
tsic404
5743806ad8 fix: fix timedate alway request timedate format
use local var to store format, update those when got changed signals

log:
2023-04-04 15:17:42 +08:00
tsic404
fe75a3af39 fix: fix FixedLlugin disapprear after drag
after drag nothing deal with item update

log:
2023-04-04 13:09:58 +08:00
tsic404
4a67d10770 chore: fix build warning
fix package warning
1. replace deprecated QPalette::ColorRole Background and Foreground
2. replace deprecated Qt::SystemLocaleLongDate
3. replace deprecated QMouseEvent constructor
4. CMakeLists.txt rectification

log: remove build warnings
2023-03-26 19:16:00 +08:00
heyuming
32bdd7be5e fix: dock crashed while gragging sniItem
Log: 修复拖拽sni控件时引起的dock崩溃
2023-03-24 14:53:23 +08:00
heyuming
9661d3568f fix: tray always reset while dragging quickItem to trayDock
resolve: https://github.com/linuxdeepin/developer-center/issues/3915

Log: 修复拖动快捷插件到托盘上时托盘总被重置的问题
2023-03-22 11:03:46 +08:00
heyuming
64fe544d0c fix: tray menu is hidden before function call
Log: 修复托盘在菜单中的行为被调用前被隐藏
2023-03-15 14:07:52 +08:00
tsic404
c92497ce03 fix: remove tray item selected status
expandIcon can't be drag but can be selected,
selected status generated by undraggable expandIcon.
by removing selectable attr, selected status will
never generated.

log:
2023-03-15 02:54:24 +00:00
Ye ShanShan
2ff4a236a6 fix: Missing radius for tray's background
Add a common function to draw special background.
  Sub widget request a highlight background for parent.

Issue: https://github.com/linuxdeepin/developer-center/issues/3744
2023-03-14 09:03:34 +08:00
chenhongtao
cfa53d0b1e chore: remove some deprecated function
Log: remove deprecated function
2023-03-13 16:18:12 +08:00
chenhongtao
649dc72742 chore: chmod -x source files
Log: chmod -x
2023-03-10 16:04:32 +08:00
chenhongtao
cf14d9879f fix: layout parent
one widget should only have one layout,
others should not mark parent as this

Log: fix layout parent
2023-03-10 16:04:32 +08:00
zsien
36adcd8fc0 fix: 修复任务栏圆角跟随窗口圆角变化
Fixes linuxdeepin/developer-center#3601
2023-03-10 11:20:06 +08:00
tsic404
c7a02a8719 fix: fix launcher show at a worng postion when using multi screen
dock only set postion calculated by current screen
without curren screen x,y offset from top-left.

log: fix launcher appears in the wrong place
2023-03-03 12:27:06 +08:00
dengbo
7320406161
fix: 任务栏时间右键菜单时间格式显示错误 (#781)
当更改了时间显示格式后,需要更新下menu菜单的显示状态

Log: 修复任务栏时间右键菜单时间格式显示错误的问题
Resolve: https://github.com/linuxdeepin/developer-center/issues/3792
Influence: 任务栏时间插件右键菜单
2023-02-23 13:03:46 +08:00
linxin
3f8593835d fix: 关闭窗口特效后,任务栏托盘窗口出现四个黑角
任务栏托盘窗口实现采用的是自定义绘制,与窗口特效不兼容,改用继承DBlurEffectWidget类的方式实现窗口

Log: 修改托盘窗口绘制方式
Bug: https://github.com/linuxdeepin/developer-center/issues/3615
2023-02-20 14:46:37 +08:00
tsic404
2f185bf3ce chore: resolve v23 merge conflicts
log:
2023-02-16 15:08:28 +08:00
donghualin
1049bfb1d9 fix: 修复任务栏位置发生变化提示消息没有跟着改变的问题
任务栏位置发生变化的时候,发送信号通知osd改变自己的位置

Log:
Influence: 调整任务栏位置,观察通知消息的位置是否跟着变化
Bug: https://pms.uniontech.com/bug-view-184231.html
Change-Id: I4f28d32fb6e57dd1a3fa929cd04dea8ec5d2816f
2023-02-03 17:35:16 +08:00
donghualin
b6002b55dc fix: 修复取消回收站显示后显示桌面失效的问题
取消回收站显示后,显示桌面组件不会隐藏

Log: 修复取消回收站显示后显示桌面失效的问题
Influence: 从控制中心取消回收站的显示,观察高效模式下是否可以显示桌面
Bug: https://pms.uniontech.com/bug-view-180859.html
Change-Id: Ic9ed03f0c94177dc06cd2b19cd5492454b07bd45
2023-02-02 16:59:35 +08:00
donghualin
63c03f58a7 fix: 修复拖动插件到任务栏后所有插件都显示的问题
在保存所有插件的时候,判断该插件是否被移除,如果已经移除,则不保存到配置中

Log:
Influence: 默认所有的快捷面板中的插件都在任务栏显示,从控制中心取消所有插件的勾选,然后从快捷面板拖动一个插件到任务栏,观察任务栏插件显示情况
Bug: https://pms.uniontech.com/bug-view-181945.html
Change-Id: Ic523ff21107f8429c61db1abde6c8c97793bb59d
2023-02-01 15:36:21 +08:00
donghualin
da1b436796 fix: 修复高缩放率下图标显示异常的问题
1、高缩放率下计算图标任务栏尺寸需要乘以缩放率的数值
2、加载声音图标带上具体的后缀名,否则会出现图标显示异常
3、自定义图标的尺寸的显示,需要重新计算图标的宽度

Log: 修复高分屏下图标显示异常
Influence: 高分屏,高缩放率,观察任务栏插件区域的图标
Bug: https://pms.uniontech.com/bug-view-183543.html
Bug: https://pms.uniontech.com/bug-view-184089.html
Change-Id: Iaa8833b20608129e5c10c8614702a9e5afeae2d9
2023-01-31 21:27:52 +08:00
donghualin
a572f8a37d fix: 修复从托盘拖动图标到任务栏引起崩溃的问题
将static_cast修改为dynamic_cast,增加了类型判断

Log:
Influence: 将托盘图标拖动到任务栏
Bug: https://pms.uniontech.com/bug-view-181945.html
Change-Id: I5b23088b8b7508d9a7cf2683a3a8571a57b82e38
2023-01-17 11:03:12 +08:00
donghualin
4800acce2c fix: 修复从任务栏向上拖动插件引起任务栏崩溃的问题
遍历插件的时候,for循环中的容器错误

Log:
Influence: 从任务栏向上拖动插件,观察任务栏是否正常
Bug: https://pms.uniontech.com/bug-view-181945.html
Change-Id: Icf93d225680cd257e446855d03bb9434e07c27ea
2023-01-16 18:24:15 +08:00
donghualin
1be68d06b2 fix: 修复移除蓝牙设备后任务栏插件不消失的问题
1、任务栏插件显示区域移除对配置变化的响应,该功能已经在DockPluginController中实现
2、在配置变化的时候,判断插件是否可以加载的条件增加了判断该插件是否被加载
3、修复拖动快捷面板的问题

Log: 修复移除蓝牙设备后任务栏插件不消失的问题
Influence: 插上蓝牙,从控制中心勾选该插件,在任务栏显示,然后移除蓝牙设备,观察任务栏的蓝牙图标是否消失
Bug: https://pms.uniontech.com/bug-view-181945.html
Change-Id: Ib207f4f0e2ceeb4b100c57b1f3e3899a802b8ed7
2023-01-16 17:08:59 +08:00
donghualin
3e1d5c5551 fix: 修复高效模式下无法打开企业微信的问题
根因:高效模式和时尚模式分别创建了各自的XEmbedTrayItemWidget对象,时尚模式后创建这个对象,在创建这个对象的构造函数中会把QX11Info::connection与容器的id进行配对组合,导致后创建的对象替换了先创建对象的容器id与QX11Info::connection的映射,在点击先创建对象的时候,无法找到对应的匹配关系,导致无法打开XEmbedTrayItemWidget协议对应的窗口
修改:在构造函数不再创建映射,在当前窗口showEvent事件中再对容器id和QX11Info::connection进行映射,这样在点击窗口图标的时候可以打开正确的窗口

Log: 修复高效模式下无法打开企业微信的问题
Influence: 进入高效模式,打开企业微信和微信等应用,观察是否正常打开窗口
Bug: https://pms.uniontech.com/bug-view-182065.html
Change-Id: I41be68e5ac798f1f7dc34f71652e757247595e06
2023-01-14 22:09:27 +08:00
donghualin
b337d88dd4 fix: 修复任务栏适应不同的主题
1、不同的主题变化的时候,音乐播放,声音调节和亮度调整面板颜色发生变化
2、切换任务栏的位置,弹出窗口的箭头方向显示正确

Log: 任务栏插件适配不同的主题
Influence: 从控制中心修改主题颜色,观察任务栏快捷面板的主题颜色是否发生变化
Bug: https://pms.uniontech.com/bug-view-179377.html
Change-Id: Ic77858124d55dce149d8bd78fb8831038caed265
2023-01-14 17:57:49 +08:00
donghualin
9b6d09ffab fix: 修复图标异常问题
1、修复拖动过程中组合图标尺寸显示异常的问题
2、修复从控制中心设置插件显示隐藏引起的异常问题
3、修复高缩放率下的组合图标显示异常问题
4、修复蓝牙面板在不同的主题下颜色的显示的问题
5、社区版键盘布局默认在任务栏显示

Log: 修复图标显示的问题
Influence: 高缩放率下,观察组合图标显示是否正常
Bug: https://pms.uniontech.com/bug-view-181723.html
Change-Id: Id351063095a2290731876ce896c2cd05a32d4ec0
2023-01-14 16:41:51 +08:00
zhaoyingzhen
bdd4c4b722 fix: 解决任务栏时间日期文字显示异常的问题。
系统改变字体后,注销后时间日期显示异常;高效模式下,拉动高度时间字体无变化的问题。

Log:
Bug: https://pms.uniontech.com/bug-view-181387.html
Influence: 时间和日期显示。
Change-Id: I1d35d35afa54095ddd631775d7b9f190c53779fa
2023-01-13 22:34:36 +08:00
donghualin
46f01047a2 fix: 修复展开托盘无法通过菜单移除U盘的问题
原因:在鼠标点击托盘内右键菜单的时候,会隐藏托盘,导致菜单跟着隐藏,结果是菜单的相关功能不生效
解决方案:在点击托盘区域的时候,判断鼠标位置是否在托盘区域内,包括菜单区域,如果在托盘区域内,则不关闭托盘,等菜单点击完成后再关闭

Log: 修复托盘U盘图标右键不生效的问题
Influence: 插入U盘,打开托盘区,右键菜单,点击,观察功能是否生效
Bug: https://pms.uniontech.com/bug-view-182299.html
Change-Id: I7ba5cc65e2509d4a9dab6e21d73906e8894df0b8
2023-01-13 15:40:20 +08:00
donghualin
81edbf0000 fix: 修复高缩放率下插件图标显示异常的问题
高缩放率下,需要将图标按照缩放下的图标进行显示

Log: 优化高缩放率下插件图标显示异常
Influence: 高分屏,设置缩放率为最高,观察任务栏插件区域的图标显示是否正常
Bug: https://pms.uniontech.com/bug-view-183543.html
Change-Id: I3087c87737a8624b906f9076351a952a2dec8452
2023-01-13 09:41:24 +08:00
donghualin
4ed9b915f9 feat: 高效模式下最右侧增加显示桌面区域
高效模式最右侧增加显示桌面区域

Log: 增加显示桌面按钮
Influence: 进入高效模式,鼠标进入最右侧,点击,观察是否可以正常显示桌面
Bug: https://pms.uniontech.com/bug-view-180859.html
Change-Id: I1565d0ad5a47bb3f99c9d51c74c6df67f7f7892c
2023-01-12 13:55:48 +08:00
donghualin
60e5e1b749 fix: 优化插件图标样式
鼠标进入的时候,图标显示底色

Log: 优化图标样式
Influence: 图标样式
Task: https://pms.uniontech.com/bug-view-181945.html
Change-Id: I9eb594119f0dbef36aee64ae4fd7a99fa12389c7
2023-01-12 13:55:48 +08:00
donghualin
f7812cfb66 fix: 修复移除蓝牙后弹框依然显示的问题
移除设备后弹窗不再显示

Log:
Influence: 点击任务栏的蓝牙图标,弹出蓝牙弹窗,然后移除蓝牙,观察蓝牙的弹窗是否存在
Bug: https://pms.uniontech.com/bug-view-181945.html
Change-Id: Idcef18077d9f822b2ea3aca93442a2d098ea146b
2023-01-12 13:54:07 +08:00
donghualin
0c414397e1 chore: 删除多余的文件
删除已经移到插件中的文件

Log:
Influence: 无
Task: https://pms.uniontech.com/task-view-222353.html
Change-Id: Ie4373902170defacebb9f6652b1b21121980ad18
2023-01-12 13:54:06 +08:00