| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected