aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui/stack.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-07-30 23:22:32 +0200
committerReto Brunner <reto@labrat.space>2020-07-30 23:22:32 +0200
commit3d784c5d8c7d037e38159fc1753773a2e81aa43e (patch)
tree2c062c9f4b4641a59e3f4f3ff3317f636bfd49cf /lib/ui/stack.go
parent6ee7b1c3fd40b0e2f93dcaa7ffb3b0bdd56ac285 (diff)
downloadaerc-3d784c5d8c7d037e38159fc1753773a2e81aa43e.tar.gz
Revert "Implement style configuration."
This reverts commit 1ff687ca2b0821c2cacc1fa725abb3302d2af9da.
Diffstat (limited to 'lib/ui/stack.go')
-rw-r--r--lib/ui/stack.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/ui/stack.go b/lib/ui/stack.go
index c9004a0d..690a8699 100644
--- a/lib/ui/stack.go
+++ b/lib/ui/stack.go
@@ -3,19 +3,16 @@ package ui
import (
"fmt"
- "git.sr.ht/~sircmpwn/aerc/config"
-
"github.com/gdamore/tcell"
)
type Stack struct {
children []Drawable
onInvalidate []func(d Drawable)
- uiConfig config.UIConfig
}
-func NewStack(uiConfig config.UIConfig) *Stack {
- return &Stack{uiConfig: uiConfig}
+func NewStack() *Stack {
+ return &Stack{}
}
func (stack *Stack) Children() []Drawable {
@@ -36,8 +33,7 @@ func (stack *Stack) Draw(ctx *Context) {
if len(stack.children) > 0 {
stack.Peek().Draw(ctx)
} else {
- ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ',
- stack.uiConfig.GetStyle(config.STYLE_STACK))
+ ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault)
}
}