Skip to content

Conversation

@AorsiniYT
Copy link

This pull request introduces significant updates to the CMake configuration, application localization, and button customization in the project. The changes streamline cross-compilation setup, enhance internationalization (i18n) features, and add flexibility for button content customization. Below is a summary of the most important changes:

Cross-compilation improvements:

  • Refactored MinGWCross.cmake to address compatibility issues with CMake 3.28+ by reworking toolchain configuration and introducing a workaround for MSYSTEM_PREFIX. This includes setting compilers, linker flags, and pkg-config paths explicitly.

Localization enhancements:

  • Added Application::setLocale to allow forcing the application's locale before initialization. This includes a new forcedLocale static variable and logic to prioritize it in getLocale(). [1] [2] [3] [4]

Button customization:

  • Introduced Button::setCustomContent to replace the default button content with a custom view, enabling more flexible UI designs. [1] [2]

Miscellaneous:

  • Enabled Yoga event handling by defining YG_ENABLE_EVENTS in application.cpp.

These changes collectively improve the project's configurability, internationalization support, and UI customization capabilities.

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