Skip to content

TP-F1 — File watcher for user themes folder (#160) - #164

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/160-theme-folder-watcher
Jun 15, 2026
Merged

TP-F1 — File watcher for user themes folder (#160)#164
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/160-theme-folder-watcher

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Add ThemeFolderWatcher — recursive Directory.watch on {appSupport}/themes/ with 400ms debounce
  • Start watcher from ThemeController.load(); expose stopThemeFolderWatcher() for tests
  • Ignore hidden/temp files; coalesce rapid events; skip overlapping refreshes
  • Removing active theme file reuses existing loadAvailableThemes + startup fallback sync

Closes #160

Test plan

  • flutter analyze — clean
  • flutter test test/core/theme/theme_folder_watcher_test.dart --concurrency=1 — green
  • flutter test test/core/theme/theme_controller_test.dart — green
  • Manual: copy a .json theme into themes folder → picker updates without Refresh themes

Add ThemeFolderWatcher with debounced Directory.watch on
{appSupport}/themes/, wire it into ThemeController.load(), and cover
start/stop, debounce, and integration refresh behavior in tests.

Closes #160
@github-actions github-actions Bot added enhancement New feature or request theme Theming, colors, VS Code themes filesystem Theme parser epic label: filesystem frontend Theme parser epic label: frontend registry Theme parser epic label: registry labels Jun 15, 2026
@github-actions github-actions Bot added this to the 0.4.3 milestone Jun 15, 2026

@ZhuchkaTriplesix ZhuchkaTriplesix left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

123

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit fe3ed7b into dev Jun 15, 2026
4 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/160-theme-folder-watcher branch June 19, 2026 03:34
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jun 20, 2026
ZhuchkaTriplesix added a commit that referenced this pull request Jul 27, 2026
TP-F1 — File watcher for user themes folder (#160)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request filesystem Theme parser epic label: filesystem frontend Theme parser epic label: frontend registry Theme parser epic label: registry theme Theming, colors, VS Code themes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant