Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Theme Support to Calculator Application
Description
This pull request introduces a new feature that allows users to switch between different themes in the calculator application. The following changes have been made:
Theme Class: A new class has been created to encapsulate theme properties such as styles for combo boxes, labels, buttons, and background images.
Theme Instances: Multiple theme instances have been defined, each with unique styles and background images.
Apply Theme Function: A new function class to apply the selected theme to all UI elements.
Theme Selection: Actions for selecting different themes have been connected to the function.
Changes
Created theme.h in the Calculator folder to define the class.
Updated to include theme.h, add the function, define theme instances, and connect theme selection actions.
Added Appropriate Comments.
How to Test
Build and run the application.
Use the menu to select different themes.
Verify that the UI elements update according to the selected theme.
Additional Notes
More themes can be easily added by defining new instances of the class and connecting them to actions.
The current implementation includes two sample themes and Additional themes can be added as needed.
Checklist
Code compiles without errors.
All existing and new tests pass.
Documentation has been updated to reflect the changes.
Screenshots have been included for visual reference.
Thank you for reviewing this pull request. Please let me know if there are any questions or further improvements needed.