dotnet / dotnet/wpf

Public API Requirements : ThemeManager, ThemeMode ??

Open
#8,540 3 comments 2 reactions 0 assignees View on GitHub
User Story Win 11 Theming
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

There are a few public API changes related to theme management for Fluent theme that may be needed in the future, but we are not set on what those APIs should be to make it feature complete.

Currently we have experimental ThemeMode APIs for Application and Window which are only Fluent specific and do not function for other themes. This needs to be changed and we need to find a better way to deal with theme and theme variants.

Previously there has been a lot of discussion on this topic on the following threads :
- https://github.com/dotnet/wpf/issues/8759
- https://github.com/dotnet/wpf/issues/8932

WPF.UI has the following APIs :

- ThemeService
- ApplicationThemeManager
- SystemThemeManager
- SystemThemeWatcher
- ApplicationTheme
- SystemTheme
- ThemeChangedEvent
- IThemeService

WPF may need some or most of these APIs, but that can be discussed only after we finalize the approach on how we are going to use Fluent as default theme.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.