Compare commits
3 Commits
a5f7feb5eb
...
880904d5fa
Author | SHA1 | Date | |
---|---|---|---|
880904d5fa | |||
593a74924d | |||
bf50e8c27a |
@ -5,6 +5,7 @@ import "image"
|
||||
import "strings"
|
||||
import "net/url"
|
||||
import "git.tebibyte.media/tomo/tomo"
|
||||
import "git.tebibyte.media/tomo/tomo/canvas"
|
||||
import "git.tebibyte.media/tomo/nasin/internal/registrar"
|
||||
|
||||
// Application represents an application object.
|
||||
@ -118,7 +119,7 @@ func RunApplication (application Application) {
|
||||
// owned by the application. The window's icon will be automatically set by
|
||||
// looking for an icon with the name of the application's ID. If that is not
|
||||
// found, the default icon for the application's ApplicationRole will used.
|
||||
func NewApplicationWindow (application Application, bounds image.Rectangle) (tomo.MainWindow, error) {
|
||||
func NewApplicationWindow (application Application, bounds image.Rectangle) (tomo.Window, error) {
|
||||
window, err := tomo.NewWindow(bounds)
|
||||
if err != nil { return nil, err }
|
||||
description := application.Describe()
|
||||
@ -128,7 +129,7 @@ func NewApplicationWindow (application Application, bounds image.Rectangle) (tom
|
||||
}
|
||||
|
||||
func setApplicationWindowIcon (window tomo.Window, description ApplicationDescription) {
|
||||
allSizes := func (icon tomo.Icon) (sizes []image.Image) {
|
||||
allSizes := func (icon tomo.Icon) (sizes []canvas.Texture) {
|
||||
small := icon.Texture(tomo.IconSizeSmall)
|
||||
medium := icon.Texture(tomo.IconSizeMedium)
|
||||
large := icon.Texture(tomo.IconSizeLarge)
|
||||
|
6
go.mod
6
go.mod
@ -3,9 +3,9 @@ module git.tebibyte.media/tomo/nasin
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
git.tebibyte.media/tomo/backend v0.2.0
|
||||
git.tebibyte.media/tomo/objects v0.16.0
|
||||
git.tebibyte.media/tomo/tomo v0.35.0
|
||||
git.tebibyte.media/tomo/backend v0.3.0
|
||||
git.tebibyte.media/tomo/objects v0.17.0
|
||||
git.tebibyte.media/tomo/tomo v0.36.0
|
||||
git.tebibyte.media/tomo/xdg v0.1.0
|
||||
golang.org/x/image v0.11.0
|
||||
)
|
||||
|
12
go.sum
12
go.sum
@ -1,10 +1,10 @@
|
||||
git.tebibyte.media/sashakoshka/xgbkb v1.0.0/go.mod h1:pNcE6TRO93vHd6q42SdwLSTTj25L0Yzggz7yLe0JV6Q=
|
||||
git.tebibyte.media/tomo/backend v0.2.0 h1:9vMQxIRnfzyMVGP3wBTz9qoWzSwLcCYzKIogikk05a0=
|
||||
git.tebibyte.media/tomo/backend v0.2.0/go.mod h1:os77Uo/YkQ9EmNZK8U1ljsEUkTK36P27dKmp5p8TMeE=
|
||||
git.tebibyte.media/tomo/objects v0.16.0 h1:Q/w8yHZepj0ESYtPGvWtXxZXkTU+k03rfPxvoxXU5AQ=
|
||||
git.tebibyte.media/tomo/objects v0.16.0/go.mod h1:jRRpraLGpBzwiOv6kl1Ram229BpJZxJaS4eqIhze194=
|
||||
git.tebibyte.media/tomo/tomo v0.35.0 h1:1XvcUcWg1rBZXov3KfuX6VfiuBQ2mcJHIslHMLn07no=
|
||||
git.tebibyte.media/tomo/tomo v0.35.0/go.mod h1:C9EzepS9wjkTJjnZaPBh22YvVPyA4hbBAJVU20Rdmps=
|
||||
git.tebibyte.media/tomo/backend v0.3.0 h1:YFy826xA8I473aUsEpn3ZRACEMfnd5WB+1ZgV1ZiKjA=
|
||||
git.tebibyte.media/tomo/backend v0.3.0/go.mod h1:7FTMMVDlyNEMY+HwogG24kDsnREEIevya+0AjVRFyv0=
|
||||
git.tebibyte.media/tomo/objects v0.17.0 h1:MykZmSiRje/a4CfI3LcXPoUvJFYNHOGGAUAiWsRGONQ=
|
||||
git.tebibyte.media/tomo/objects v0.17.0/go.mod h1:U1UeBk4bfA30q2MBrdVZeldITTjTp8hiyJnnrqPpcZs=
|
||||
git.tebibyte.media/tomo/tomo v0.36.0 h1:V9vyPYb4kpUceBhcDF/XyLDACzE5lY8kYEGHAkIsqs0=
|
||||
git.tebibyte.media/tomo/tomo v0.36.0/go.mod h1:C9EzepS9wjkTJjnZaPBh22YvVPyA4hbBAJVU20Rdmps=
|
||||
git.tebibyte.media/tomo/typeset v0.7.1 h1:aZrsHwCG5ZB4f5CruRFsxLv5ezJUCFUFsQJJso2sXQ8=
|
||||
git.tebibyte.media/tomo/typeset v0.7.1/go.mod h1:PwDpSdBF3l/EzoIsa2ME7QffVVajnTHZN6l3MHEGe1g=
|
||||
git.tebibyte.media/tomo/xdg v0.1.0 h1:6G2WYPPiM2IXleCpKKHuJA34BxumwNWuLsUoX3yu5zA=
|
||||
|
Loading…
Reference in New Issue
Block a user