UI Tweaks

This commit is contained in:
Serge
2023-05-21 18:06:41 +02:00
parent 4ee97fdbc4
commit e0346a8af8
6 changed files with 60 additions and 47 deletions

View File

@@ -34,12 +34,13 @@
}
}
public static void Adjust(int delta)
public static int Adjust(int delta)
{
int brightness = Get();
Debug.WriteLine(brightness);
brightness = Math.Min(100, Math.Max(0, brightness + delta));
Set(brightness);
return brightness;
}
}