File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
src/editors/xrSdkControls/Controls/ColorPicker Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ public sealed partial class ColorPicker : UserControl
9
9
{
10
10
public delegate void ColorChangedEventHandler ( object sender , Color color ) ;
11
11
12
- private Color color ;
13
12
private bool hexadecimal ;
14
13
private bool ignoreOnChanged = false ;
15
14
private bool alphaEnabled = true ;
@@ -24,18 +23,18 @@ public ColorPicker()
24
23
25
24
public Color Value
26
25
{
27
- get { return color ; }
26
+ get { return pbColor . ColorSample ; }
28
27
set
29
28
{
30
- if ( color == value )
29
+ if ( pbColor . ColorSample == value )
31
30
return ;
32
- color = value ;
33
31
ignoreOnChanged = true ;
34
32
if ( alphaEnabled )
35
- nslAlpha . Value = color . A ;
36
- nslRed . Value = color . R ;
37
- nslGreen . Value = color . G ;
38
- nslBlue . Value = color . B ;
33
+ nslAlpha . Value = value . A ;
34
+ nslRed . Value = value . R ;
35
+ nslGreen . Value = value . G ;
36
+ nslBlue . Value = value . B ;
37
+ pbColor . ColorSample = value ;
39
38
ignoreOnChanged = false ;
40
39
UpdateColor ( ) ;
41
40
}
You can’t perform that action at this time.
0 commit comments