roblillack / spot

React-like desktop GUI toolkit for Go
MIT License
1.11k stars 17 forks source link

how to change fltk Scheme? #17

Closed ystyle closed 5 months ago

ystyle commented 5 months ago

In Linux, the default is base, and the interface looks very old.

roblillack commented 5 months ago

Hey @ystyle,

you can call FLTK's fltk.SetScheme(…) function after ui.Init() in your code:

import (
    "github.com/pwiecz/go-fltk"
    "github.com/roblillack/spot"
    "github.com/roblillack/spot/ui"
)

func main() {
    ui.Init()
    fltk.SetScheme("plastic")

    spot.MountFn(…)

    ui.Run()
}
grafik

Hope that helps!

ystyle commented 5 months ago

thanks