move ThemedRectangle to theme package

This commit is contained in:
Drew Weymouth
2023-05-01 17:50:00 -07:00
parent 6c81db4398
commit 61d8d6916a
3 changed files with 4 additions and 4 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package widgets
import (
"log"
"supersonic/ui/layouts"
myTheme "supersonic/ui/theme"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/container"
@@ -41,7 +42,7 @@ func NewListHeader(cols []ListColumn, layout *layouts.ColumnsLayout) *ListHeader
for i, _ := range l.columnVisible {
l.columnVisible[i] = true
}
l.container = container.NewMax(NewThemedRectangle(theme.ColorNameBackground), l.columnsContainer)
l.container = container.NewMax(myTheme.NewThemedRectangle(theme.ColorNameBackground), l.columnsContainer)
l.ExtendBaseWidget(l)
l.buildColumns()
return l