mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
UI Tweaks
This commit is contained in:
@@ -19,7 +19,8 @@ namespace GHelper.Input
|
||||
public static Keys keyApp = Keys.F12;
|
||||
|
||||
static ModeControl modeControl = Program.modeControl;
|
||||
|
||||
static ScreenControl screenControl = new ScreenControl();
|
||||
|
||||
static bool isTUF = AppConfig.IsTUF();
|
||||
|
||||
KeyboardListener listener;
|
||||
@@ -245,7 +246,7 @@ namespace GHelper.Input
|
||||
|
||||
static void SetBrightnessDimming(int delta)
|
||||
{
|
||||
int brightness = ScreenControl.SetBrightness(delta: delta);
|
||||
int brightness = VisualControl.SetBrightness(delta: delta);
|
||||
if (brightness >= 0)
|
||||
Program.toast.RunToast(brightness + "%", (delta < 0) ? ToastIcon.BrightnessDown : ToastIcon.BrightnessUp);
|
||||
}
|
||||
@@ -478,7 +479,7 @@ namespace GHelper.Input
|
||||
break;
|
||||
case "miniled":
|
||||
if (ScreenCCD.GetHDRStatus()) return;
|
||||
int miniled = ScreenControl.ToogleMiniled();
|
||||
int miniled = screenControl.ToogleMiniled();
|
||||
Program.toast.RunToast(miniled == 1 ? "Multi-Zone" : "Single-Zone", miniled == 1 ? ToastIcon.BrightnessUp : ToastIcon.BrightnessDown);
|
||||
break;
|
||||
case "aura":
|
||||
|
||||
Reference in New Issue
Block a user