mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2025-12-06 07:12:01 +01:00
29 lines
780 B
C#
29 lines
780 B
C#
using PowerControl.Helpers.AMD;
|
|
|
|
namespace PowerControl.Options
|
|
{
|
|
public static class GPUColors
|
|
{
|
|
public static Menu.MenuItemWithOptions Instance = new Menu.MenuItemWithOptions()
|
|
{
|
|
Name = "Colors",
|
|
PersistentKey = "GPUColors",
|
|
ApplyDelay = 1000,
|
|
Options = Enum.GetNames<DCE.Mode>(),
|
|
CurrentValue = delegate ()
|
|
{
|
|
return DCE.Current?.ToString();
|
|
},
|
|
ApplyValue = (selected) =>
|
|
{
|
|
if (DCE.Current is null)
|
|
return null;
|
|
|
|
DCE.Current = Enum.Parse<DCE.Mode>(selected);
|
|
RadeonSoftware.Kill();
|
|
return DCE.Current.ToString();
|
|
}
|
|
};
|
|
}
|
|
}
|