MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / setConfigurationSourceTheme

Method setConfigurationSourceTheme

FastCopy/AcrylicHelper.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void 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
90void MicaHelper::EnsureWindowsSystemDispatcherQueueController()
91{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected