Upgrade tomo version
This commit is contained in:
parent
0d7536b575
commit
e00bc615c2
2
go.mod
2
go.mod
@ -3,6 +3,6 @@ module git.tebibyte.media/tomo/aluminum
|
|||||||
go 1.20
|
go 1.20
|
||||||
|
|
||||||
require (
|
require (
|
||||||
git.tebibyte.media/tomo/tomo v0.24.0
|
git.tebibyte.media/tomo/tomo v0.26.1
|
||||||
golang.org/x/image v0.11.0
|
golang.org/x/image v0.11.0
|
||||||
)
|
)
|
||||||
|
4
go.sum
4
go.sum
@ -1,5 +1,5 @@
|
|||||||
git.tebibyte.media/tomo/tomo v0.24.0 h1:Zv5S/SmGjoEzssIOx/ADZBmnIfdeeVEwHdHVQHcls9M=
|
git.tebibyte.media/tomo/tomo v0.26.1 h1:V5ciRuixMYb79aAawgquFEfJ1icyEmMKBKFPWwi94NE=
|
||||||
git.tebibyte.media/tomo/tomo v0.24.0/go.mod h1:C9EzepS9wjkTJjnZaPBh22YvVPyA4hbBAJVU20Rdmps=
|
git.tebibyte.media/tomo/tomo v0.26.1/go.mod h1:C9EzepS9wjkTJjnZaPBh22YvVPyA4hbBAJVU20Rdmps=
|
||||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
|
14
theme.go
14
theme.go
@ -8,6 +8,7 @@ import "git.tebibyte.media/tomo/tomo/data"
|
|||||||
import "git.tebibyte.media/tomo/tomo/theme"
|
import "git.tebibyte.media/tomo/tomo/theme"
|
||||||
import "git.tebibyte.media/tomo/tomo/input"
|
import "git.tebibyte.media/tomo/tomo/input"
|
||||||
import "git.tebibyte.media/tomo/tomo/event"
|
import "git.tebibyte.media/tomo/tomo/event"
|
||||||
|
import "git.tebibyte.media/tomo/tomo/canvas"
|
||||||
|
|
||||||
func hex (color uint32) (c color.RGBA) {
|
func hex (color uint32) (c color.RGBA) {
|
||||||
c.A = uint8(color)
|
c.A = uint8(color)
|
||||||
@ -45,7 +46,9 @@ var backgroundColor = hex(0xd6d6d6FF)
|
|||||||
var gutterColor = hex(0xbfc6d1FF)
|
var gutterColor = hex(0xbfc6d1FF)
|
||||||
var gutterColorHovered = hex(0xc5cbd6FF)
|
var gutterColorHovered = hex(0xc5cbd6FF)
|
||||||
|
|
||||||
type Theme struct { }
|
type Theme struct {
|
||||||
|
initialized bool
|
||||||
|
}
|
||||||
|
|
||||||
func (this *Theme) RGBA (id theme.Color) (r, g, b, a uint32) {
|
func (this *Theme) RGBA (id theme.Color) (r, g, b, a uint32) {
|
||||||
switch id {
|
switch id {
|
||||||
@ -218,24 +221,27 @@ func (this *Theme) Apply (object tomo.Object, role theme.Role) event.Cookie {
|
|||||||
return event.MultiCookie()
|
return event.MultiCookie()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Theme) Icon (theme.Icon, theme.IconSize) tomo.Texture {
|
func (this *Theme) Icon (theme.Icon, theme.IconSize) canvas.Texture {
|
||||||
this.ensure()
|
this.ensure()
|
||||||
// TODO
|
// TODO
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Theme) MimeIcon (data.Mime, theme.IconSize) tomo.Texture {
|
func (this *Theme) MimeIcon (data.Mime, theme.IconSize) canvas.Texture {
|
||||||
this.ensure()
|
this.ensure()
|
||||||
// TODO
|
// TODO
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Theme) ApplicationIcon (theme.ApplicationIcon, theme.IconSize) tomo.Texture {
|
func (this *Theme) ApplicationIcon (theme.ApplicationIcon, theme.IconSize) canvas.Texture {
|
||||||
this.ensure()
|
this.ensure()
|
||||||
// TODO
|
// TODO
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Theme) ensure () {
|
func (this *Theme) ensure () {
|
||||||
|
if this.initialized { return }
|
||||||
|
this.initialized = true
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user