forked from joejulian/gio
widget,widget/material: move Image and Icon to widget package
There is nothing theme-specific about displaying images and icons, so move the types from the material package to the generic widget package. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -39,7 +39,7 @@ type ButtonLayout struct {
|
||||
type IconButton struct {
|
||||
Background color.RGBA
|
||||
Color color.RGBA
|
||||
Icon *Icon
|
||||
Icon *widget.Icon
|
||||
Size unit.Value
|
||||
Padding unit.Value
|
||||
Inset layout.Inset
|
||||
@@ -69,7 +69,7 @@ func (t *Theme) ButtonLayout() ButtonLayout {
|
||||
}
|
||||
}
|
||||
|
||||
func (t *Theme) IconButton(icon *Icon) IconButton {
|
||||
func (t *Theme) IconButton(icon *widget.Icon) IconButton {
|
||||
return IconButton{
|
||||
Background: t.Color.Primary,
|
||||
Color: t.Color.InvText,
|
||||
|
||||
Reference in New Issue
Block a user