MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / GetResourceForState

Method GetResourceForState

Xaml/Pages/ColorPickerPage.cpp:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 std::wstring_view ColorPickerPage::GetResourceForState(txmp::TaskbarState state)
80 {
81 switch (state)
82 {
83 using enum txmp::TaskbarState;
84 case Desktop: return L"/TranslucentTB.Xaml/Resources/TrayFlyoutPage_Desktop/Text";
85 case VisibleWindow: return L"/TranslucentTB.Xaml/Resources/TrayFlyoutPage_VisibleWindow/Text";
86 case MaximisedWindow: return L"/TranslucentTB.Xaml/Resources/TrayFlyoutPage_MaximizedWindow/Text";
87 case StartOpened: return L"/TranslucentTB.Xaml/Resources/TrayFlyoutPage_StartOpened/Text";
88 case SearchOpened: return L"/TranslucentTB.Xaml/Resources/TrayFlyoutPage_SearchOpened/Text";
89 case TaskViewOpened: return L"/TranslucentTB.Xaml/Resources/TrayFlyoutPage_TaskViewOpened/Text";
90 case BatterySaver: return L"/TranslucentTB.Xaml/Resources/TrayFlyoutPage_BatterySaver/Text";
91 default: throw std::invalid_argument("Unknown taskbar state");
92 }
93 }
94
95 fire_and_forget ColorPickerPage::OpenConfirmDialog()
96 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected