mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1177] [MERGED] feat(bar): optional workspaces on Komorebi widget #1239
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/1177
Author: @alex-ds13
Created: 12/14/2024
Status: ✅ Merged
Merged: 12/17/2024
Merged by: @LGUG2Z
Base:
master← Head:fix(bar)/optional-workspaces📝 Commits (1)
53c74a2feat(bar): optional workspaces on Komorebi widget📊 Changes
3 files changed (+142 additions, -147 deletions)
View changed files
📝
komorebi-bar/src/bar.rs(+29 -32)📝
komorebi-bar/src/komorebi.rs(+106 -99)📝
komorebi-bar/src/widget.rs(+7 -16)📄 Description
This commit makes the
workspacesonKomorebiwidget optional. This way it allows adding theworkspaceson one Alignment and thefocused_windowon another one, for example.For some reason if you had some widget on thecenter_widgetswith only icons, like thefocused_windowwith just icons or theworkspaceswith just icons and nothing else, EGUI wouldn't show the icon properly. I believe that on the first frame the icons might not have been loaded yet, so it set the height of thecenter_widgetsArea to 0 and afterwards it wouldn't grow to fit the icons unless we've made some config change for example.To fix this we've made the icons have fixed size which is equal to the font size. For this it was required that the font size was added to theRenderConfigso that the widgets would have access to it when rendering.This fix was done by @CtByte on PR #1184 as well with the scaling of icons, so this PR was rebased to that one to make use of said fix. This PR should only be merged after #1184 is merged to avoid conflicts.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.