Skip to content

Commit

Permalink
Hide Alpha-channel slider when AlphaEnabled is false.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kovalenko committed Nov 2, 2014
1 parent e02a849 commit efeef87
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/editors/xrSdkControls/Controls/ColorPicker/ColorPicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ public bool AlphaEnabled
nslAlpha.Value = nslAlpha.Maximum;
ignoreOnChanged = false;
UpdateColor();
lAlpha.Enabled = alphaEnabled;
nslAlpha.Enabled = alphaEnabled;
lAlpha.Visible = alphaEnabled;
nslAlpha.Visible = alphaEnabled;
int delta = (alphaEnabled ? 1 : -1)*27;
Point loc = chkHexadecimal.Location;
loc.Y += delta;
chkHexadecimal.Location = loc;
}
}

Expand Down

0 comments on commit efeef87

Please sign in to comment.