Skip to content

Fix: styling: set gamemode icon size and spacing to 0 if use-icon is false - #4448

Merged
Alexays merged 1 commit into
Alexays:masterfrom
winkelnp:gamemode-icon
Oct 1, 2025
Merged

Alexays merged 1 commit into
Alexays:masterfrom
winkelnp:gamemode-icon

Conversation

@winkelnp

@winkelnp winkelnp commented Sep 7, 2025

Copy link
Copy Markdown
Contributor

Fixes #2206

Quite a simple solution, might be a bit crude, is there a better way to do this?

@winkelnp winkelnp changed the title Set icon size and spacing to 0 if use-icon is false Fix: styling: set icon size and spacing to 0 if use-icon is false Sep 15, 2025

@ninetailedtori ninetailedtori left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will work fine, and as a patch that will function more than well enough, this could in fact be how we handle use-icon behaviour for every module in the project. However there may be a technically "better" way of writing this, adding the check in the label format section instead. See l221 in .../gamemode.cpp, l226 in the changes.

@ninetailedtori

Copy link
Copy Markdown

Title of this one should be corrected to specify "gamemode icon size and spacing", unless this will expand to all modules.

@winkelnp winkelnp changed the title Fix: styling: set icon size and spacing to 0 if use-icon is false Fix: styling: set gamemode icon size and spacing to 0 if use-icon is false Sep 15, 2025
@winkelnp

winkelnp commented Sep 15, 2025

Copy link
Copy Markdown
Contributor Author

However there may be a technically "better" way of writing this, adding the check in the label format section instead. See l221 in .../gamemode.cpp, l226 in the changes.

That is a more elegant solution, I can revert/change to that instead? It seems to work the same on my system (tbh why wouldn't it)

@ninetailedtori

Copy link
Copy Markdown

Could you upload it to a separate branch in your fork and link it here? Then we can decide if to force push to this PR, perhaps :]

@winkelnp

Copy link
Copy Markdown
Contributor Author

https://github.com/winkelnp/waybar/tree/gamemode-icon-alt

Realised a smidge late that that branch is technically built off gamemode-icon, not off master, so it has both commits, I hope that's ok?

@ninetailedtori

Copy link
Copy Markdown

Yes, that works well, as a format-based check! I recommend checkout to gamemode-icon, resetting the HEAD on your local gamemode-icon branch to master, then rewriting the changes on the branch in a single commit, because the other branch as you've said includes a commit then the commit that reverts it then adds a separate commit, which is a little messy :] You can force push the single format commit after, and I'll re-approve! ❤️

@ninetailedtori ninetailedtori left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely, and perfectly functional. Approved :)

@Alexays
Alexays merged commit 632af16 into Alexays:master Oct 1, 2025
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.

Gamemode indicator icon takes up space even when disabled

3 participants