Skip to content

refactor(ui): remove redundant appearance mode override - #4

Open
MedCy1 wants to merge 1 commit into
Ascendara:mainfrom
MedCy1:fix/dark-mode-override
Open

refactor(ui): remove redundant appearance mode override#4
MedCy1 wants to merge 1 commit into
Ascendara:mainfrom
MedCy1:fix/dark-mode-override

Conversation

@MedCy1

@MedCy1 MedCy1 commented Jan 4, 2026

Copy link
Copy Markdown

Refactor: Remove redundant appearance mode call

What does this PR do?

Removes a redundant ctk.set_appearance_mode("light") call that was placed after the dark mode detection logic.

Why?

The code was confusing - it detected Windows dark mode, then immediately overwrote the setting. While this didn't cause a visible bug (because custom colors handle the theming), the code was misleading and could cause issues if future changes rely on ctk.set_appearance_mode().

Changes

  • [ui/main_window.py]: Removed redundant line, updated comment for clarity

Impact

  • No visual changes
  • Cleaner, more maintainable code

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