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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alex-ds13
Copy link
Contributor

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.

@alex-ds13 alex-ds13 force-pushed the fix(bar)/optional-workspaces branch from b97ae80 to 9a9dd0b Compare December 14, 2024 17:02
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.
@alex-ds13 alex-ds13 force-pushed the fix(bar)/optional-workspaces branch from 9a9dd0b to 7b856f7 Compare December 14, 2024 17:17
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.

1 participant