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

Method SetTheme

FastCopy/AcrylicHelper.cpp:179–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void WindowEffectHelper::SetTheme(winrt::Microsoft::UI::Xaml::ElementTheme theme)
180{
181 if (auto element = m_target.Content().try_as<winrt::Microsoft::UI::Xaml::Controls::Page>(); element)
182 {
183 element.RequestedTheme(theme);
184
185 if (m_helper.index() != 2)
186 {
187 element.Background(nullptr);
188 return;
189 }
190 }
191}
192
193void WindowEffectHelper::SetListenThemeChange()
194{

Callers 1

ThemeSelectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected