Skip to main content

Appearance

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Read the device's light/dark setting, or change it. These call app_appearance.

Appearance​

public string Appearance()
public string Appearance(string mode)

The device's light/dark setting.

Changes the light/dark setting and returns the new one. "light", "dark", or "auto" on Android only. Discards the refs from the last map.

Examples​

Switch to dark mode​

device.Appearance("dark");

The same call from the command line, mobium appearance dark, printed on an Android 15 emulator:

dark (was light)

mobium appearance dark on an Android 15 emulator

mobium appearance dark on an Android 15 emulator