Skip to content

fix(quick-panel): adjust icon and text color opacity with hover effects#471

Open
MyLeeJiEun wants to merge 1 commit into
linuxdeepin:masterfrom
MyLeeJiEun:fork-from-master-0618-fix-issue-314503
Open

fix(quick-panel): adjust icon and text color opacity with hover effects#471
MyLeeJiEun wants to merge 1 commit into
linuxdeepin:masterfrom
MyLeeJiEun:fork-from-master-0618-fix-issue-314503

Conversation

@MyLeeJiEun

Copy link
Copy Markdown
  1. Add kNormalOpacity (0.7) and kHoverOpacity (1.0) constants in CommonIconButton, controlling icon/text transparency via parentHovered state
  2. Add HoverEventFilter to QuickPluginItem, forwarding enter/leave events to child widgets for hover state tracking
  3. Add QGraphicsOpacityEffect to PluginItemWidget for icon/label/connect button with enterEvent/leaveEvent overrides
  4. Update SliderContainer to read _dtl_plugin_hovered property and adjust progress track opacity accordingly
  5. Backport identical opacity logic to wireless-casting plugin's CommonIconButton copy

Log: Adjust colors and hover effects for quick panel icons and text

fix(快捷面板): 调整快捷面板图标和文字颜色及hover效果

  1. CommonIconButton 增加 kNormalOpacity(0.7) 和 kHoverOpacity(1.0) 常量,通过 parentHovered 状态控制图标/文字透明度
  2. QuickPluginItem 增加 HoverEventFilter,将 enter/leave 事件转发到子控件实现 hover 状态跟踪
  3. PluginItemWidget 增加 icon/label/connect button 的 QGraphicsOpacityEffect,重写 enterEvent/leaveEvent
  4. SliderContainer 读取 _dtl_plugin_hovered 属性,根据 hover 状态调整进度条透明度
  5. 无线投屏插件中的 CommonIconButton 同步相同的透明度逻辑

Log: 调整快捷面板图标和文字颜色及hover效果
PMS: BUG-314503

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @MyLeeJiEun, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: MyLeeJiEun

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-ci-robot

Copy link
Copy Markdown

Hi @MyLeeJiEun. Thanks for your PR. 😃

@deepin-ci-robot

Copy link
Copy Markdown

Hi @MyLeeJiEun. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@MyLeeJiEun MyLeeJiEun force-pushed the fork-from-master-0618-fix-issue-314503 branch 6 times, most recently from b637814 to a824da9 Compare June 22, 2026 07:56
1. Add QGraphicsOpacityEffect and enterEvent/leaveEvent overrides to brightness, sound, media, and common quick panel widgets
2. Add per-element opacity effects (icon/name/state) to bluetooth, eye-comfort-mode, and wireless-casting quick panel widgets
3. Implement updateOpacity logic: icon follows hover or active state, text always follows hover
4. Set normal opacity to 0.7 and hover opacity to 1.0 for consistent visual feedback
5. Apply the same pattern to JumpSettingButton and PluginItemDelegate for unified dock hover behavior

Log: Add hover highlight effect to all dock quick panel widgets for better visual feedback

fix(dde-dock): 为所有快捷面板控件添加悬停透明度效果

1. 为亮度、声音、媒体和公共快捷面板控件添加 QGraphicsOpacityEffect 及 enterEvent/leaveEvent 重写
2. 为蓝牙、护眼模式和无线投屏控件添加逐元素(图标/名称/状态)透明度效果
3. 实现 updateOpacity 逻辑:图标跟随悬停或激活状态,文字始终跟随悬停
4. 设置常规透明度为 0.7,悬停透明度为 1.0,实现一致的视觉反馈
5. 对 JumpSettingButton 和 PluginItemDelegate 应用相同模式,统一 Dock 悬停行为

Log: 为所有 Dock 快捷面板控件添加悬停高亮效果,改善视觉反馈
PMS: BUG-314503
@MyLeeJiEun MyLeeJiEun force-pushed the fork-from-master-0618-fix-issue-314503 branch from a824da9 to d88fe16 Compare June 23, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants