-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [notify] Rewrite notification item delegate with paint method
Refactored notification item delegate to use direct painting instead of widget-based approach for better performance and visual consistency. Key changes include: - Removed widget-based item delegate implementation - Added custom paint methods for background, icon, text and buttons - Implemented mouse event handling for close button and action buttons - Added text layout handling with proper wrapping and elision - Introduced constants for layout metrics and spacing - Added new roles and data structure for action button info The new implementation provides smoother scrolling and consistent styling while reducing memory usage by eliminating widget creation for each item. Log: Refactor notification item delegate to use paint-based rendering Bug: https://pms.uniontech.com/bug-view-272445.html
- Loading branch information
Showing
7 changed files
with
343 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.