| 75 | } |
| 76 | |
| 77 | void AcrylicHelper::setConfigurationSourceTheme() |
| 78 | { |
| 79 | switch (m_window.Content().as<winrt::Microsoft::UI::Xaml::FrameworkElement>().ActualTheme()) |
| 80 | { |
| 81 | case winrt::Microsoft::UI::Xaml::ElementTheme::Dark: |
| 82 | m_configurationSource.Theme(winrt::Microsoft::UI::Composition::SystemBackdrops::SystemBackdropTheme::Dark); break; |
| 83 | case winrt::Microsoft::UI::Xaml::ElementTheme::Light: |
| 84 | m_configurationSource.Theme(winrt::Microsoft::UI::Composition::SystemBackdrops::SystemBackdropTheme::Light); break; |
| 85 | case winrt::Microsoft::UI::Xaml::ElementTheme::Default: |
| 86 | m_configurationSource.Theme(winrt::Microsoft::UI::Composition::SystemBackdrops::SystemBackdropTheme::Default); break; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | void MicaHelper::EnsureWindowsSystemDispatcherQueueController() |
| 91 | { |
nothing calls this directly
no outgoing calls
no test coverage detected