SettingsPortal

class SettingsPortal(connection: DBusConnection)(source)

Wrapper around the org.freedesktop.portal.Settings D-Bus interface. Provides convenient methods to read appearance settings with proper types and subscribe to setting changes.

Constructors

Link copied to clipboard
constructor(connection: DBusConnection)

Properties

Link copied to clipboard

A flow that emits when the accent color changes.

Link copied to clipboard

A flow that emits when the color scheme changes.

Link copied to clipboard

A flow that emits when the contrast setting changes.

Link copied to clipboard

A flow that emits when the reduced motion preference changes.

Link copied to clipboard

Returns the interface version.

Functions

Link copied to clipboard

Reads the user's preferred accent color.

Link copied to clipboard

Reads the user's preferred color scheme.

Link copied to clipboard

Reads the user's preferred contrast setting.

Link copied to clipboard

Reads the user's reduced motion preference.