Initial stylesheet support

This commit is contained in:
2024-07-29 15:13:02 -04:00
parent 905953b7f9
commit f42dee22f5
8 changed files with 523 additions and 61 deletions

View File

@@ -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) }