Skip to content

Add theme customization - #55

Merged
Amadou-dot merged 21 commits into
3250Group4:mainfrom
Amadou-dot:feature/theme-customization
Apr 27, 2026
Merged

Amadou-dot merged 21 commits into
3250Group4:mainfrom
Amadou-dot:feature/theme-customization

Conversation

@Amadou-dot

@Amadou-dot Amadou-dot commented Apr 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #24

  • Replaces the binary light/dark toggle with a 9-preset theme picker behind a new Preferences dialog (gear button in the header).
  • Curated presets bundle FlatLaf core (Default Dark/Light) with seven IntelliJ Themes (GitHub Light, Solarized Dark/Light, Dracula, Nord, One Dark, Monokai Pro). Each preset is a full LAF — light/dark mood is baked in, so the standalone toggle goes away.
  • FlatLaf-drawn title bar and window border, so the OS chrome themes with the rest of the app.
  • Persistence migrates one-shot from the legacy darkMode boolean to a new themeId string. Unknown saved IDs fall back to Default Dark without overwriting the saved value (downgrade-safe).
  • 17 new unit tests (Theme + ThemeManager) covering equality, apply paths, prefs round-trip, legacy migration both directions, and unknown-ID fallback. 48 tests total, all green.
  • Includes one drive-by fix on `main` already merged in: stale `SubjectTest` was asserting 3 columns when the table model has 4 (Notes column added previously).
image image image

The JComboBox auto-selects its first item when populated, but the
ActionListener that swaps the table model was attached afterward, so the
table stayed on the empty placeholder model until the user manually
changed classes. Force-fire the selection event after wiring the listener
so the saved assignments appear immediately.
@Amadou-dot Amadou-dot changed the title Theme customization with curated presets Add theme customization Apr 27, 2026
@Amadou-dot Amadou-dot self-assigned this Apr 27, 2026
@Amadou-dot
Amadou-dot merged commit 149d30c into 3250Group4:main Apr 27, 2026
4 checks passed
@Amadou-dot
Amadou-dot deleted the feature/theme-customization branch April 27, 2026 23:22
@Amadou-dot
Amadou-dot restored the feature/theme-customization branch April 27, 2026 23:25
@Amadou-dot
Amadou-dot deleted the feature/theme-customization branch April 27, 2026 23:26
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.

Theme customization

1 participant