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

Themes improvement #2473

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

Themes improvement #2473

wants to merge 3 commits into from

Conversation

v-ein
Copy link
Contributor

@v-ein v-ein commented Feb 8, 2025


name: Pull Request
about: Create a pull request to help us improve
title: Several fixes on theme internals
assignees: @hoffstadt


Description:
This PR is difficult to test as it fixes internal-looking issues within mvThemes.cpp.

  • Fixes the use of smart pointers and gets rid of circular references.
  • Removes the useless all_item_theme_component (it is never really used by push/pop because of mvAppItemType::All conditions in them).
  • Fixes pop order for components.

Concerning Areas:
None.

v-ein added 3 commits February 9, 2025 02:10
…to other unrelated components and thus hindering their deletion.

Also, std::move in push_theme_components makes things a bit more efficient.
…tPtr on type==All components.

This change both fixes an inefficiency (sometimes leading to errors) and simplifies the code.

With this change, all_item_theme_component becomes useless, too.
This is needed to properly restore _specificComponentPtr back when there are multiple components with the same specificType.
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