Skip to content

More theming work #19995

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

Merged
merged 3 commits into from
Feb 17, 2025
Merged

More theming work #19995

merged 3 commits into from
Feb 17, 2025

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Feb 17, 2025

Adds a mechanism for a view to know if it's in a popup, as mentioned in #18802 .

Uses it in a few places.

Also, I changed my mind on the naming ofr PopupHeaderStyle.

(This doesn't solve the slider color issue)

@hrydgard hrydgard added the User Interface PPSSPP's own user interface / UX label Feb 17, 2025
@hrydgard hrydgard added this to the v1.19.0 milestone Feb 17, 2025
@NABN00B
Copy link
Contributor

NABN00B commented Feb 17, 2025

Adds a mechanism for a view to know if it's in a popup

Hopefully this will allow the cleanup of the recent hacky solution of the game list settings menu as well.

EDIT: I see you're way ahead of me -- it's already done. 😄

@hrydgard hrydgard merged commit 41de9c7 into master Feb 17, 2025
19 checks passed
@hrydgard hrydgard deleted the theme-work branch February 17, 2025 20:04
@@ -148,8 +148,8 @@ static void LoadThemeInfo(const std::vector<Path> &directories) {
section.Get("PopupStyleBg", &info.uPopupStyleBg, info.uPopupStyleBg);
section.Get("TooltipStyleFg", &info.uTooltipStyleFg, info.uTooltipStyleFg); // Backwards compat
section.Get("TooltipStyleBg", &info.uTooltipStyleBg, info.uTooltipStyleBg);
section.Get("PopupHeaderStyleFg", &info.uPopupHeaderStyleFg, info.uItemStyleFg); // Backwards compat
section.Get("PopupHeaderStyleBg", &info.uPopupHeaderStyleBg, info.uPopupHeaderStyleBg);
section.Get("PopupHeaderStyleFg", &info.uPopupTitleStyleFg, info.uItemStyleFg); // Backwards compat
Copy link
Contributor

Choose a reason for hiding this comment

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

You forgot to change the first parameter, it's still looking for PopupHeader* in the inis.

Copy link
Owner Author

Choose a reason for hiding this comment

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

oops, fixing

@NABN00B NABN00B mentioned this pull request Feb 17, 2025
21 tasks
hrydgard added a commit that referenced this pull request Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User Interface PPSSPP's own user interface / UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants