mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-06 06:43:49 +00:00
Fix volume/brightness by 5
This commit is contained in:
parent
aac4810c05
commit
b672c4e9c3
4 changed files with 9 additions and 9 deletions
|
|
@ -24,13 +24,13 @@ namespace PowerControl
|
|||
|
||||
CurrentValue = delegate()
|
||||
{
|
||||
return Helpers.WindowsSettingsBrightnessController.Get10();
|
||||
return Helpers.WindowsSettingsBrightnessController.Get(5.0);
|
||||
},
|
||||
ApplyValue = delegate(object selected)
|
||||
{
|
||||
Helpers.WindowsSettingsBrightnessController.Set((int)selected);
|
||||
|
||||
return Helpers.WindowsSettingsBrightnessController.Get10();
|
||||
return Helpers.WindowsSettingsBrightnessController.Get(5.0);
|
||||
}
|
||||
},
|
||||
new Menu.MenuItemWithOptions()
|
||||
|
|
@ -39,14 +39,14 @@ namespace PowerControl
|
|||
Options = { 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100 },
|
||||
CurrentValue = delegate()
|
||||
{
|
||||
return Helpers.AudioManager.GetMasterVolume10();
|
||||
return Helpers.AudioManager.GetMasterVolume(5.0);
|
||||
},
|
||||
ApplyValue = delegate(object selected)
|
||||
{
|
||||
Helpers.AudioManager.SetMasterVolumeMute(false);
|
||||
Helpers.AudioManager.SetMasterVolume((int)selected);
|
||||
|
||||
return Helpers.AudioManager.GetMasterVolume10();
|
||||
return Helpers.AudioManager.GetMasterVolume(5.0);
|
||||
}
|
||||
},
|
||||
new Menu.MenuItemWithOptions()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue