2022-12-19 22:47:10 +01:00
|
|
|
using PowerControl.Helpers.AMD;
|
|
|
|
|
|
|
|
|
|
namespace PowerControl.Options
|
|
|
|
|
{
|
|
|
|
|
public static class GPUColors
|
|
|
|
|
{
|
|
|
|
|
public static Menu.MenuItemWithOptions Instance = new Menu.MenuItemWithOptions()
|
|
|
|
|
{
|
|
|
|
|
Name = "Colors",
|
2023-01-05 23:52:23 +01:00
|
|
|
PersistentKey = "GPUColors",
|
2022-12-19 22:47:10 +01:00
|
|
|
ApplyDelay = 1000,
|
2022-12-19 23:36:22 +01:00
|
|
|
Options = Enum.GetNames<DCE.Mode>(),
|
2022-12-19 22:47:10 +01:00
|
|
|
CurrentValue = delegate ()
|
|
|
|
|
{
|
2023-12-14 19:05:50 +01:00
|
|
|
return DCE.Current?.ToString();
|
2022-12-19 22:47:10 +01:00
|
|
|
},
|
2022-12-19 23:36:22 +01:00
|
|
|
ApplyValue = (selected) =>
|
2022-12-19 22:47:10 +01:00
|
|
|
{
|
|
|
|
|
if (DCE.Current is null)
|
|
|
|
|
return null;
|
|
|
|
|
|
2022-12-19 23:36:22 +01:00
|
|
|
DCE.Current = Enum.Parse<DCE.Mode>(selected);
|
2022-12-19 22:47:10 +01:00
|
|
|
RadeonSoftware.Kill();
|
2022-12-19 23:36:22 +01:00
|
|
|
return DCE.Current.ToString();
|
2022-12-19 22:47:10 +01:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|