feat(bar): optional workspaces on Komorebi widget #1177
+163
−158
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit makes the
workspaces
onKomorebi
widget optional. This way it allows adding theworkspaces
on one Alignment and thefocused_window
on another one, for example.For some reason if you had some widget on the
center_widgets
with only icons, like thefocused_window
with just icons or theworkspaces
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 thecenter_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.