Initial stylesheet support
This commit is contained in:
@@ -65,6 +65,15 @@ type ApplicationDescription struct {
|
||||
Role ApplicationRole
|
||||
}
|
||||
|
||||
// GlobalApplicationDescription returns the global application description which
|
||||
// points to cache, data, config, etc. used by Nasin itself.
|
||||
func GlobalApplicationDescription () ApplicationDescription {
|
||||
return ApplicationDescription {
|
||||
Name: "Nasin",
|
||||
ID: "xyz.holanet.Nasin",
|
||||
}
|
||||
}
|
||||
|
||||
// String satisfies the fmt.Stringer interface.
|
||||
func (application ApplicationDescription) String () string {
|
||||
if application.Name == "" {
|
||||
@@ -133,8 +142,9 @@ func RunApplication (application Application) {
|
||||
if err != nil { log.Fatalln("nasin: could not register backend:", err) }
|
||||
err = tomo.Run(func () {
|
||||
err := registrar.SetTheme()
|
||||
err := registrar.SetIconSet()
|
||||
if err != nil { log.Fatalln("nasin: could not set theme:", err) }
|
||||
err = registrar.SetIconSet()
|
||||
if err != nil { log.Fatalln("nasin: could not set icon set:", err) }
|
||||
err = application.Init()
|
||||
if err != nil { log.Fatalln("nasin: could not run application:", err) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user