mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1465] [MERGED] refactor(bar): split komorebi widget into smaller parts #1412
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1465
Author: @JustForFun88
Created: 5/27/2025
Status: ✅ Merged
Merged: 8/1/2025
Merged by: @LGUG2Z
Base:
master← Head:ContainerInformation📝 Commits (9)
2283d14Creatre and use MonitorInfo instead of KomorebiNotificationState7d5e7abRemove unusedstack_accent2ce6c1eExtract WorkspacesBarc8e7b81Extractrender_layout694df48ExtractFocusedContainerBar95d88c6ExtractWorkspaceLayerBar5a986e4ExtractLockedContainerBar68e7f79Extractrender_config_switcher275cea8Remove old code📊 Changes
3 files changed (+898 additions, -775 deletions)
View changed files
📝
komorebi-bar/src/bar.rs(+101 -66)📝
komorebi-bar/src/widgets/komorebi.rs(+791 -707)📝
komorebi-client/src/lib.rs(+6 -2)📄 Description
This PR significantly refactors the
Komorebibar rendering logic, simplifying state management, and addressing some found bugs. The primary motivation was to make the codebase more readable and maintainable.Key Changes
..Barstructure. If a widget is enabled, its structure is present; otherwise, it is None. This eliminates the need for runtime enabled checks.Found bug fixes:
icon_sizetotext_size.Testing
Some parts of the new code have already been tested for 2-3 weeks, but not all changes are fully covered yet, so additional testing is needed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.