Changeset - 9d927a271fbb
[Not reviewed]
default
0 1 0
Jason Maltzen (jmaltzen) - 6 years ago 2018-05-17 19:11:12
jason.maltzen@unsanctioned.net
Turn off record button when captured color is clipped.
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
UI/CaptureView.cs
Show inline comments
...
 
@@ -399,6 +399,8 @@ namespace DesertPaintLab
 
                    warning = warning + "\nBlue is too high.";
 
                }
 

	
 
                // Always update the reacted swatch
 
                this.reactionSwatch.Color = reactedColor;
 
                if (warning.Length != 0)
 
                {
 
                    isCaptured = true;
...
 
@@ -411,10 +413,11 @@ namespace DesertPaintLab
 

	
 
                    md.Run();
 
                    md.Destroy();
 
                    // reaction clipped - don't let them record
 
                    recordButton.Sensitive = false;
 
                }
 
                else
 
                {
 
                    this.reactionSwatch.Color = reactedColor;
 
                    recordButton.Sensitive = recordEnabled;
 
                }
 

	
0 comments (0 inline, 0 general)