mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Vivobook Visual modes and gamuts https://github.com/seerge/g-helper/issues/2342
This commit is contained in:
@@ -5,6 +5,10 @@ namespace GHelper.Display
|
||||
{
|
||||
public enum SplendidGamut : int
|
||||
{
|
||||
VivoNative = 0,
|
||||
VivoSRGB = 1,
|
||||
VivoDCIP3 = 3,
|
||||
ViviDisplayP3 = 4,
|
||||
Native = 50,
|
||||
sRGB = 51,
|
||||
DCIP3 = 53,
|
||||
@@ -15,6 +19,11 @@ namespace GHelper.Display
|
||||
{
|
||||
None = -1,
|
||||
|
||||
VivoNormal = 1,
|
||||
VivoVivid = 2,
|
||||
VivoManual = 6,
|
||||
VivoEycare = 7,
|
||||
|
||||
Init = 10,
|
||||
DimmingAsus = 9,
|
||||
DimmingVisual = 19,
|
||||
@@ -54,6 +63,18 @@ namespace GHelper.Display
|
||||
|
||||
public static Dictionary<SplendidGamut, string> GetGamutModes()
|
||||
{
|
||||
|
||||
if (AppConfig.IsVivoZenbook())
|
||||
{
|
||||
return new Dictionary<SplendidGamut, string>
|
||||
{
|
||||
{ SplendidGamut.VivoNative, "Gamut: Native" },
|
||||
{ SplendidGamut.VivoSRGB, "Gamut: sRGB" },
|
||||
{ SplendidGamut.VivoDCIP3, "Gamut: DCIP3" },
|
||||
{ SplendidGamut.ViviDisplayP3, "Gamut: DisplayP3" },
|
||||
};
|
||||
}
|
||||
|
||||
Dictionary<SplendidGamut, string> _modes = new Dictionary<SplendidGamut, string>();
|
||||
|
||||
string gameVisualPath = GetGameVisualPath();
|
||||
@@ -87,6 +108,18 @@ namespace GHelper.Display
|
||||
|
||||
public static Dictionary<SplendidCommand, string> GetVisualModes()
|
||||
{
|
||||
|
||||
if (AppConfig.IsVivoZenbook())
|
||||
{
|
||||
return new Dictionary<SplendidCommand, string>
|
||||
{
|
||||
{ SplendidCommand.VivoNormal, "Default" },
|
||||
{ SplendidCommand.VivoVivid, "Vivid" },
|
||||
{ SplendidCommand.VivoManual, "Manual" },
|
||||
{ SplendidCommand.VivoEycare, "Eyecare" },
|
||||
};
|
||||
}
|
||||
|
||||
return new Dictionary<SplendidCommand, string>
|
||||
{
|
||||
{ SplendidCommand.Default, "Default"},
|
||||
@@ -114,6 +147,18 @@ namespace GHelper.Display
|
||||
};
|
||||
}
|
||||
|
||||
public static Dictionary<int, string> GetEyeCares()
|
||||
{
|
||||
return new Dictionary<int, string>
|
||||
{
|
||||
{ 0, "0"},
|
||||
{ 1, "1"},
|
||||
{ 2, "2"},
|
||||
{ 3, "3"},
|
||||
{ 4, "4"},
|
||||
};
|
||||
}
|
||||
|
||||
public static void SetGamut(int mode = 50)
|
||||
{
|
||||
if (RunSplendid(SplendidCommand.GamutMode, 0, mode)) return;
|
||||
|
||||
Reference in New Issue
Block a user