app

package
v0.0.0-...-4500097 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2026 License: BSD-3-Clause Imports: 38 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package app provides app implementations for working with Fyne graphical interfaces. The fastest way to get started is to call app.New() which will normally load a new desktop application. If the "ci" tag is passed to go (go run -tags ci myapp.go) it will run an in-memory application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() fyne.App

New returns a new application instance with the default driver and no unique ID (unless specified in FyneApp.toml)

func NewWithID

func NewWithID(id string) fyne.App

NewWithID returns a new app instance using the appropriate runtime driver. The ID string should be globally unique to this app.

func SetMetadata

func SetMetadata(m fyne.AppMetadata)

SetMetadata overrides the packaged application metadata. This data can be used in many places like notifications and about screens.

Types

type SettingsSchema

type SettingsSchema struct {
	// these items are used for global settings load
	ThemeName         string  `json:"theme"`
	Scale             float32 `json:"scale"`
	PrimaryColor      string  `json:"primary_color"`
	CloudName         string  `json:"cloud_name"`
	CloudConfig       string  `json:"cloud_config"`
	DisableAnimations bool    `json:"no_animations"`
}

SettingsSchema is used for loading and storing global settings

func (*SettingsSchema) StoragePath

func (*SettingsSchema) StoragePath() string

StoragePath returns the location of the settings storage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL