Make stats bar overlay use module tint and lighter text
This commit is contained in:
parent
a5ad368d0f
commit
f2ac544d75
|
|
@ -487,12 +487,12 @@ func (c *ConversionStatsBar) UpdateStatsWithDetails(running, pending, completed,
|
||||||
|
|
||||||
// CreateRenderer creates the renderer for the stats bar
|
// CreateRenderer creates the renderer for the stats bar
|
||||||
func (c *ConversionStatsBar) CreateRenderer() fyne.WidgetRenderer {
|
func (c *ConversionStatsBar) CreateRenderer() fyne.WidgetRenderer {
|
||||||
bg := canvas.NewRectangle(color.NRGBA{R: 30, G: 30, B: 30, A: 255})
|
// Transparent background so the parent tinted bar color shows through
|
||||||
bg.CornerRadius = 4
|
bg := canvas.NewRectangle(color.Transparent)
|
||||||
bg.StrokeColor = GridColor
|
bg.CornerRadius = 0
|
||||||
bg.StrokeWidth = 1
|
bg.StrokeWidth = 0
|
||||||
|
|
||||||
statusText := canvas.NewText("", TextColor)
|
statusText := canvas.NewText("", color.NRGBA{R: 230, G: 236, B: 245, A: 255})
|
||||||
statusText.TextStyle = fyne.TextStyle{Monospace: true}
|
statusText.TextStyle = fyne.TextStyle{Monospace: true}
|
||||||
statusText.TextSize = 11
|
statusText.TextSize = 11
|
||||||
|
|
||||||
|
|
@ -525,7 +525,7 @@ func (r *conversionStatsRenderer) Layout(size fyne.Size) {
|
||||||
|
|
||||||
// Layout text and progress bar
|
// Layout text and progress bar
|
||||||
textSize := r.statusText.MinSize()
|
textSize := r.statusText.MinSize()
|
||||||
padding := float32(8)
|
padding := float32(10)
|
||||||
|
|
||||||
// If there's a running job, show progress bar
|
// If there's a running job, show progress bar
|
||||||
if r.bar.running > 0 && r.bar.progress > 0 {
|
if r.bar.running > 0 && r.bar.progress > 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user