mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Button to download Color Profiles
This commit is contained in:
@@ -276,12 +276,31 @@ namespace GHelper
|
||||
sliderGamma.ValueChanged += SliderGamma_ValueChanged;
|
||||
}
|
||||
|
||||
var gamuts = VisualControl.GetGamutModes();
|
||||
if (gamuts.Count < 1) return;
|
||||
|
||||
if (!dimming) labelGammaTitle.Text = "Visual Mode";
|
||||
else labelGammaTitle.Text += " / Visual";
|
||||
|
||||
var gamuts = VisualControl.GetGamutModes();
|
||||
|
||||
if (gamuts.Count < 1)
|
||||
{
|
||||
if (ColorProfileHelper.ProfileExists())
|
||||
{
|
||||
tableVisual.ColumnCount = 2;
|
||||
|
||||
buttonInstallColor.Text = "Download Color Profile(s)";
|
||||
buttonInstallColor.Visible = true;
|
||||
buttonInstallColor.Click += ButtonInstallColorProfile_Click;
|
||||
|
||||
panelGamma.Visible = true;
|
||||
tableVisual.Visible = true;
|
||||
}
|
||||
return;
|
||||
} else
|
||||
{
|
||||
tableVisual.ColumnCount = 3;
|
||||
buttonInstallColor.Visible = false;
|
||||
}
|
||||
|
||||
panelGamma.Visible = true;
|
||||
tableVisual.Visible = true;
|
||||
|
||||
@@ -321,6 +340,12 @@ namespace GHelper
|
||||
|
||||
}
|
||||
|
||||
private async void ButtonInstallColorProfile_Click(object? sender, EventArgs e)
|
||||
{
|
||||
await ColorProfileHelper.InstallProfile();
|
||||
InitVisual();
|
||||
}
|
||||
|
||||
private void ComboGamut_SelectedValueChanged(object? sender, EventArgs e)
|
||||
{
|
||||
AppConfig.Set("gamut", (int)comboGamut.SelectedValue);
|
||||
|
||||
Reference in New Issue
Block a user