mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Visual modes and gamuts
This commit is contained in:
@@ -372,11 +372,6 @@ public static class AppConfig
|
|||||||
return ContainsModel("ProArt");
|
return ContainsModel("ProArt");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool IsVivoZenbook()
|
|
||||||
{
|
|
||||||
return ContainsModel("Vivobook") || ContainsModel("Zenbook");
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsVivoZenPro()
|
public static bool IsVivoZenPro()
|
||||||
{
|
{
|
||||||
return ContainsModel("Vivobook") || ContainsModel("Zenbook") || ContainsModel("ProArt");
|
return ContainsModel("Vivobook") || ContainsModel("Zenbook") || ContainsModel("ProArt");
|
||||||
|
|||||||
@@ -70,13 +70,13 @@ namespace GHelper.Display
|
|||||||
|
|
||||||
public static SplendidGamut GetDefaultGamut()
|
public static SplendidGamut GetDefaultGamut()
|
||||||
{
|
{
|
||||||
return AppConfig.IsVivoZenbook() ? SplendidGamut.VivoNative : SplendidGamut.Native;
|
return AppConfig.IsVivoZenPro() ? SplendidGamut.VivoNative : SplendidGamut.Native;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Dictionary<SplendidGamut, string> GetGamutModes()
|
public static Dictionary<SplendidGamut, string> GetGamutModes()
|
||||||
{
|
{
|
||||||
|
|
||||||
bool isVivo = AppConfig.IsVivoZenbook();
|
bool isVivo = AppConfig.IsVivoZenPro();
|
||||||
|
|
||||||
Dictionary<SplendidGamut, string> _modes = new Dictionary<SplendidGamut, string>();
|
Dictionary<SplendidGamut, string> _modes = new Dictionary<SplendidGamut, string>();
|
||||||
|
|
||||||
@@ -148,13 +148,13 @@ namespace GHelper.Display
|
|||||||
|
|
||||||
public static SplendidCommand GetDefaultVisualMode()
|
public static SplendidCommand GetDefaultVisualMode()
|
||||||
{
|
{
|
||||||
return AppConfig.IsVivoZenbook() ? SplendidCommand.VivoNormal : SplendidCommand.Default;
|
return AppConfig.IsVivoZenPro() ? SplendidCommand.VivoNormal : SplendidCommand.Default;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Dictionary<SplendidCommand, string> GetVisualModes()
|
public static Dictionary<SplendidCommand, string> GetVisualModes()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (AppConfig.IsVivoZenbook())
|
if (AppConfig.IsVivoZenPro())
|
||||||
{
|
{
|
||||||
return new Dictionary<SplendidCommand, string>
|
return new Dictionary<SplendidCommand, string>
|
||||||
{
|
{
|
||||||
@@ -291,7 +291,7 @@ namespace GHelper.Display
|
|||||||
private static bool RunSplendid(SplendidCommand command, int? param1 = null, int? param2 = null)
|
private static bool RunSplendid(SplendidCommand command, int? param1 = null, int? param2 = null)
|
||||||
{
|
{
|
||||||
var splendid = GetSplendidPath();
|
var splendid = GetSplendidPath();
|
||||||
bool isVivo = AppConfig.IsVivoZenbook();
|
bool isVivo = AppConfig.IsVivoZenPro();
|
||||||
bool isSplenddid = File.Exists(splendid);
|
bool isSplenddid = File.Exists(splendid);
|
||||||
|
|
||||||
if (isSplenddid)
|
if (isSplenddid)
|
||||||
|
|||||||
@@ -524,7 +524,7 @@ namespace GHelper.Input
|
|||||||
case "micmute":
|
case "micmute":
|
||||||
bool muteStatus = Audio.ToggleMute();
|
bool muteStatus = Audio.ToggleMute();
|
||||||
Program.toast.RunToast(muteStatus ? Properties.Strings.Muted : Properties.Strings.Unmuted, muteStatus ? ToastIcon.MicrophoneMute : ToastIcon.Microphone);
|
Program.toast.RunToast(muteStatus ? Properties.Strings.Muted : Properties.Strings.Unmuted, muteStatus ? ToastIcon.MicrophoneMute : ToastIcon.Microphone);
|
||||||
if (AppConfig.IsVivoZenbook()) Program.acpi.DeviceSet(AsusACPI.MicMuteLed, muteStatus ? 1 : 0, "MicmuteLed");
|
if (AppConfig.IsVivoZenPro()) Program.acpi.DeviceSet(AsusACPI.MicMuteLed, muteStatus ? 1 : 0, "MicmuteLed");
|
||||||
break;
|
break;
|
||||||
case "brightness_up":
|
case "brightness_up":
|
||||||
SetBrightness(+10);
|
SetBrightness(+10);
|
||||||
|
|||||||
Reference in New Issue
Block a user