mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Re-apply the explicit title rendering for focusable widgets
This commit is contained in:
parent
17d53ca39a
commit
378cce8726
@ -43,6 +43,7 @@ func (widget *Widget) Refresh() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.View.SetText(widget.contentFrom(todayItems))
|
widget.View.SetText(widget.contentFrom(todayItems))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ func (widget *Widget) Refresh() {
|
|||||||
content = widget.contentFrom(monitors)
|
content = widget.contentFrom(monitors)
|
||||||
}
|
}
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
widget.View.SetTitle(widget.ContextualTitle(fmt.Sprintf("%s", widget.CommonSettings.Title)))
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.View.Clear()
|
widget.View.Clear()
|
||||||
widget.View.SetText(content)
|
widget.View.SetText(content)
|
||||||
})
|
})
|
||||||
|
@ -109,6 +109,7 @@ func (widget *Widget) Refresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.display()
|
widget.display()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -80,6 +80,7 @@ func (widget *Widget) Refresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.display()
|
widget.display()
|
||||||
widget.View.ScrollToEnd()
|
widget.View.ScrollToEnd()
|
||||||
})
|
})
|
||||||
|
@ -69,6 +69,7 @@ func (widget *Widget) Refresh() {
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
widget.View.SetWrap(true)
|
widget.View.SetWrap(true)
|
||||||
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.View.SetText(err.Error())
|
widget.View.SetText(err.Error())
|
||||||
} else {
|
} else {
|
||||||
var stories []Story
|
var stories []Story
|
||||||
|
@ -76,6 +76,7 @@ func (widget *Widget) Refresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.display()
|
widget.display()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@ func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) *
|
|||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.nbascore()
|
widget.nbascore()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,7 @@ func (widget *Widget) Refresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.View.SetText(content)
|
widget.View.SetText(content)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ func (widget *Widget) Refresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
widget.View.SetTitle(widget.ContextualTitle(fmt.Sprintf("%s", widget.CommonSettings.Title)))
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.View.Clear()
|
widget.View.Clear()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ func (widget *Widget) Refresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.display()
|
widget.display()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -74,6 +74,7 @@ func (widget *Widget) Refresh() {
|
|||||||
widget.load()
|
widget.load()
|
||||||
|
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.display()
|
widget.display()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -69,6 +69,7 @@ func (widget *Widget) Refresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.display()
|
widget.display()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,7 @@ func (widget *Widget) Refresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
widget.app.QueueUpdateDraw(func() {
|
widget.app.QueueUpdateDraw(func() {
|
||||||
|
widget.View.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title))
|
||||||
widget.display()
|
widget.display()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user