Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bar): optional workspaces on Komorebi widget #1177

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

alex-ds13
Copy link
Contributor

@alex-ds13 alex-ds13 commented Dec 14, 2024

This commit makes the workspaces on Komorebi widget optional. This way it allows adding the workspaces on one Alignment and the focused_window on another one, for example.

For some reason if you had some widget on the center_widgets with only icons, like the focused_window with just icons or the workspaces with 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 the center_widgets Area 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 the RenderConfig so 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.

@alex-ds13 alex-ds13 force-pushed the fix(bar)/optional-workspaces branch 2 times, most recently from 9a9dd0b to 7b856f7 Compare December 14, 2024 17:17
@alex-ds13 alex-ds13 force-pushed the fix(bar)/optional-workspaces branch from 7b856f7 to 57e5c02 Compare December 17, 2024 15:58
@LGUG2Z
Copy link
Owner

LGUG2Z commented Dec 17, 2024

Ah sorry, this might need another rebase; I updated the icon size commit message to include the context that was on the PR

This commit makes the `workspaces` on `Komorebi` widget optional. This
way it allows adding the `workspaces` on one Alignment and the
`focused_window` on another one, for example.
@alex-ds13 alex-ds13 force-pushed the fix(bar)/optional-workspaces branch from 57e5c02 to 53c74a2 Compare December 17, 2024 22:27
@alex-ds13
Copy link
Contributor Author

Ah sorry, this might need another rebase; I updated the icon size commit message to include the context that was on the PR

Should be good to go now.

@LGUG2Z LGUG2Z merged commit c3769e7 into LGUG2Z:master Dec 17, 2024
6 checks passed
@alex-ds13 alex-ds13 deleted the fix(bar)/optional-workspaces branch December 17, 2024 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants