summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheDukeofErl <TheDukeofErl@users.noreply.github.com>2022-05-23 20:59:38 -0500
committerTheDukeofErl <TheDukeofErl@users.noreply.github.com>2022-05-23 21:04:52 -0500
commit102d6fd57ac6ec6d847fb1ddf24d54522ce12111 (patch)
tree644012117fa2eca2beda0f3cb40b2ea129578f8b
parent9f5cfdfc793e60c020e2beb85c6846387400f1ac (diff)
Status as unconfigured when both filters are disabled.
Using virtualDeviceInUse in addition to noiseSupressorState as a way to tell if the device is actually in use or not for setting the status message.
-rw-r--r--ui.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui.go b/ui.go
index dcf682d..db1d026 100644
--- a/ui.go
+++ b/ui.go
@@ -55,6 +55,7 @@ const (
var green = color.RGBA{34, 187, 69, 255}
var red = color.RGBA{255, 70, 70, 255}
var orange = color.RGBA{255, 140, 0, 255}
+var lightBlue = color.RGBA{173, 216, 230, 255}
var patreonImg *image.RGBA
@@ -94,7 +95,11 @@ func mainView(ctx *ntcontext, w *nucular.Window) {
}
if ctx.noiseSupressorState == loaded {
- w.LabelColored("NoiseTorch active", "RC", green)
+ if (ctx.virtualDeviceInUse) {
+ w.LabelColored("NoiseTorch active", "RC", green)
+ } else {
+ w.LabelColored("NoiseTorch unconfigured", "RC", lightBlue)
+ }
} else if ctx.noiseSupressorState == unloaded {
w.LabelColored("NoiseTorch inactive", "RC", red)
} else if ctx.noiseSupressorState == inconsistent {