[PR #904] [MERGED] Theme: Allow to set up theme to follow system theme. #1251

Closed
opened 2026-02-26 09:34:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/NickeManarin/ScreenToGif/pull/904
Author: @pawlos
Created: 5/24/2021
Status: Merged
Merged: 5/30/2021
Merged by: @NickeManarin

Base: feature/898-Automatic-theme-switchHead: issue-898


📝 Commits (2)

  • b41addc Theme: Allow to set up theme to follow system theme.
  • 3cb21b8 Added reaction to UserPreferenceChanged event.

📊 Changes

7 files changed (+57 additions, -1 deletions)

View changed files

📝 ScreenToGif/Resources/Localization/StringResources.en.xaml (+1 -0)
📝 ScreenToGif/Resources/Localization/StringResources.pl.xaml (+1 -0)
📝 ScreenToGif/Util/Enums.cs (+1 -0)
📝 ScreenToGif/Util/ThemeHelper.cs (+18 -0)
📝 ScreenToGif/Windows/Editor.xaml.cs (+7 -0)
📝 ScreenToGif/Windows/Options.xaml (+22 -0)
📝 ScreenToGif/Windows/Other/Startup.xaml.cs (+7 -1)

📄 Description

Currently it only works when the change of the theme in application occurs
(or when the application starts) as WPF (probably) doesn't have any event exposed
to react when the change occurs in real time.

This (probably) closes #898


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/NickeManarin/ScreenToGif/pull/904 **Author:** [@pawlos](https://github.com/pawlos) **Created:** 5/24/2021 **Status:** ✅ Merged **Merged:** 5/30/2021 **Merged by:** [@NickeManarin](https://github.com/NickeManarin) **Base:** `feature/898-Automatic-theme-switch` ← **Head:** `issue-898` --- ### 📝 Commits (2) - [`b41addc`](https://github.com/NickeManarin/ScreenToGif/commit/b41addc84b302bd7d194706b2043d2532ef10e0b) Theme: Allow to set up theme to follow system theme. - [`3cb21b8`](https://github.com/NickeManarin/ScreenToGif/commit/3cb21b848f990d44f4362667d92f6ed7df72f019) Added reaction to UserPreferenceChanged event. ### 📊 Changes **7 files changed** (+57 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `ScreenToGif/Resources/Localization/StringResources.en.xaml` (+1 -0) 📝 `ScreenToGif/Resources/Localization/StringResources.pl.xaml` (+1 -0) 📝 `ScreenToGif/Util/Enums.cs` (+1 -0) 📝 `ScreenToGif/Util/ThemeHelper.cs` (+18 -0) 📝 `ScreenToGif/Windows/Editor.xaml.cs` (+7 -0) 📝 `ScreenToGif/Windows/Options.xaml` (+22 -0) 📝 `ScreenToGif/Windows/Other/Startup.xaml.cs` (+7 -1) </details> ### 📄 Description Currently it only works when the change of the theme in application occurs (or when the application starts) as WPF (probably) doesn't have any event exposed to react when the change occurs in real time. This (probably) closes #898 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 09:34:10 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#1251
No description provided.