Skip to content

Simplify the NATIVE_THEME_UPDATE event handler - #8140

Merged
FreeTubeBot merged 1 commit into
FreeTubeApp:developmentfrom
absidue:native-theme-simplification
Oct 16, 2025
Merged

FreeTubeBot merged 1 commit into
FreeTubeApp:developmentfrom
absidue:native-theme-simplification

Conversation

@absidue

@absidue absidue commented Oct 15, 2025

Copy link
Copy Markdown
Member

Pull Request Type

  • Other

Related issue

Description

When I originally implemented the event handler I wasn't aware that Electron's preload isolatd world shares the DOM with the main world, just like a browser extension, so we can do the DOM manipulation directly instead of using execuateJavaScript().

Testing

  1. Set the theme to system default
  2. Change between dark and light mode in the settings at the operating sytem level
  3. FreeTube should still adapt to the system theme changes.

Desktop

  • OS: Windows
  • OS Version: 11

@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 15, 2025
@FreeTubeBot
FreeTubeBot enabled auto-merge (squash) October 15, 2025 20:17
@FreeTubeBot
FreeTubeBot merged commit d170945 into FreeTubeApp:development Oct 16, 2025
@github-actions github-actions Bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 16, 2025
@absidue
absidue deleted the native-theme-simplification branch October 16, 2025 22:22
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Oct 18, 2025
* development:
  Add missing IS_ELECTRON and SUPPORTS_LOCAL_API checks (FreeTubeApp#8147)
  Simplify the NATIVE_THEME_UPDATE event handler (FreeTubeApp#8140)
PikachuEXE added a commit to NishPatel101/FreeTube that referenced this pull request Oct 21, 2025
* development: (88 commits)
  Bump the eslint group with 4 updates (FreeTubeApp#8158)
  Translated using Weblate (German)
  Bump shaka-player from 4.16.4 to 4.16.6 (FreeTubeApp#8167)
  Bump marked from 16.4.0 to 16.4.1 (FreeTubeApp#8159)
  Bump electron from 38.2.2 to 38.3.0 (FreeTubeApp#8161)
  Bump actions/setup-node from 5 to 6 (FreeTubeApp#8162)
  Bump youtubei.js from 16.0.0 to 16.0.1 (FreeTubeApp#8163)
  Translated using Weblate (Persian)
  Translated using Weblate (Czech)
  Translated using Weblate (Bulgarian)
  Add missing IS_ELECTRON and SUPPORTS_LOCAL_API checks (FreeTubeApp#8147)
  Simplify the NATIVE_THEME_UPDATE event handler (FreeTubeApp#8140)
  Bump package version from 0.23.11 to 0.23.12 (FreeTubeApp#8138)
  Add error handling to the deciphering code (FreeTubeApp#8139)
  Fix video playback by using video ID bound poToken (FreeTubeApp#8137)
  Hide subscriptions wrapper on mobile and center bottom SideNav items (FreeTubeApp#8133)
  ! Fix sigFrameScript on dev in windows (FreeTubeApp#8134)
  Translated using Weblate (Estonian)
  Bump github/codeql-action from 3 to 4 (FreeTubeApp#8124)
  Translated using Weblate (Welsh)
  ...
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.

4 participants