summaryrefslogtreecommitdiff
path: root/popups.go
diff options
context:
space:
mode:
Diffstat (limited to 'popups.go')
-rw-r--r--popups.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/popups.go b/popups.go
index f584f3c..b0ee4ae 100644
--- a/popups.go
+++ b/popups.go
@@ -388,7 +388,7 @@ func showFileCompletionPopup(filter string) {
app.SetFocus(widget)
}
-func updateWidgetColors(theme tview.Theme) {
+func updateWidgetColors(theme *tview.Theme) {
bgColor := theme.PrimitiveBackgroundColor
fgColor := theme.PrimaryTextColor
borderColor := theme.BorderColor
@@ -476,7 +476,7 @@ func showColorschemeSelectionPopup() {
tview.Styles = theme
go func() {
app.QueueUpdateDraw(func() {
- updateWidgetColors(theme)
+ updateWidgetColors(&theme)
})
}()
}