splashscreen

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package splashscreen keeps the launch screen's color up until your first screen has what it needs, so the app doesn't flash empty.

nimbus native plugin add splash-screen

ui.Effect(c, func(ctx context.Context) func() {
	go func() {
		load(ctx)
		splashscreen.Hide(ctx)
	}()
	return nil
}, ui.Once)

It hides by itself after 10 seconds, so a bug can't leave the app stuck.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hide

func Hide(ctx context.Context) error

Hide fades the launch screen away.

Types

This section is empty.

Jump to

Keyboard shortcuts

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