2022-12-19 22:47:10 +01:00
|
|
|
namespace PowerControl.Options
|
|
|
|
|
{
|
|
|
|
|
public static class Brightness
|
|
|
|
|
{
|
|
|
|
|
public static Menu.MenuItemWithOptions Instance = new Menu.MenuItemWithOptions()
|
|
|
|
|
{
|
|
|
|
|
Name = "Brightness",
|
2022-12-19 23:36:22 +01:00
|
|
|
Options = { "0", "5", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55", "60", "65", "70", "75", "80", "85", "90", "95", "100" },
|
2022-12-19 22:47:10 +01:00
|
|
|
CycleOptions = false,
|
|
|
|
|
CurrentValue = delegate ()
|
|
|
|
|
{
|
2022-12-19 23:36:22 +01:00
|
|
|
return Helpers.WindowsSettingsBrightnessController.Get(5.0).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
|
|
|
{
|
2022-12-19 23:36:22 +01:00
|
|
|
Helpers.WindowsSettingsBrightnessController.Set(int.Parse(selected));
|
|
|
|
|
return Helpers.WindowsSettingsBrightnessController.Get(5.0).ToString();
|
2022-12-19 22:47:10 +01:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|