Skip to content

Reapply "ui(raylib): create BaseWindow (#35074)" #35077

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 4 commits into from
May 8, 2025
Merged

Conversation

incognitojam
Copy link
Contributor

@incognitojam incognitojam commented Apr 26, 2025

This reverts commit 83b84a5.

Fixes issues with window title name and logging

This is only used for windows which need to be controlled programmatically.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR re-applies a previously reverted commit that introduced a new BaseWindow abstraction for UI windows, refactoring both the TextWindow and Spinner to benefit from common window management.

  • Refactored TextWindow to subclass BaseWindow and implement _create_renderer.
  • Refactored Spinner similarly to subclass BaseWindow and remove duplicated threading logic.
  • Introduced a new BaseWindow in system/ui/lib/window.py to centralize window and threading functionality.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
system/ui/text.py Refactors TextWindow to extend BaseWindow and simplify lifecycle management.
system/ui/spinner.py Refactors Spinner to extend BaseWindow and removes custom thread management.
system/ui/lib/window.py Adds BaseWindow that encapsulates common UI window threading and teardown logic.

@incognitojam incognitojam marked this pull request as ready for review April 28, 2025 15:30
Copy link
Contributor

github-actions bot commented May 8, 2025

This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity.

@github-actions github-actions bot added the stale label May 8, 2025
@github-actions github-actions bot added the ui label May 8, 2025
@incognitojam incognitojam merged commit 73ee0c0 into master May 8, 2025
18 checks passed
@incognitojam incognitojam deleted the ui-raylib-window branch May 8, 2025 15:18
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant