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

Helpstyle: fix remaining inconsistent layout alignment and styling #873

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

lioneil
Copy link

@lioneil lioneil commented Apr 6, 2024

This builds on #146.

Fixes various Help hints in the Main Menu dialog not inheriting the current theme's styling.

Sample:
I'm using the same theme for both screenshot.

Before (help hint is supposed to be centered):
image

After the fix:
image

Before (Comic-Book theme, help hints are unstyled):
image

After:
image

There are other screens with the same issues: scraper menu, deeper down the custom collection submenus, the TextEdit dialogs, etc.

Hopefully this fixes all of them.

Note: I am not really a C++ developer, so you might see some poor choices I made in code.

@pjft
Copy link
Collaborator

pjft commented Apr 8, 2024

Thanks for sending this over! Let me take a look at this and revert.

const std::string& name2, const std::function<void()>& func2,
const std::string& name3, const std::function<void()>& func3) : GuiComponent(window),
mBackground(window, ":/frame.png"), mGrid(window, Vector2i(1, 2))
GuiMsgBox::GuiMsgBox(Window *window, const std::string &text,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we revert these types of changes if possible, as they're stylistic but not really functional? Thanks.

@pjft
Copy link
Collaborator

pjft commented Jun 14, 2024

Thank you for putting this together. I tested it and it's working as intended.

Could you add it to the Edit Metadata window as well, and potentially squash everything into a single commit?

Any minor adjustments to the code - such as the comment I left regarding minor code style changes - can be applied in the same.

Thank you!

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