statusbar

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: 3 Imported by: 0

Documentation

Overview

Package statusbar sets the look of the status bar, the strip with the clock. By default it follows your Theme; these override that.

nimbus native plugin add status-bar

statusbar.SetStyle(ctx, statusbar.LightContent) // over a dark photo
statusbar.Hide(ctx)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hide

func Hide(ctx context.Context) error

Hide hides the status bar.

func SetColor

func SetColor(ctx context.Context, c ui.Color) error

SetColor sets the bar's background. Android only: on iOS the bar is transparent and your screen shows through it.

func SetStyle

func SetStyle(ctx context.Context, s Style) error

SetStyle sets the color of the clock and icons.

func Show

func Show(ctx context.Context) error

Show brings it back.

Types

type Style

type Style string

Style is the color of what's in the status bar.

const (
	Auto         Style = "auto"  // follow the theme
	DarkContent  Style = "dark"  // dark icons, for a light background
	LightContent Style = "light" // light icons, for a dark background
)

Jump to

Keyboard shortcuts

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