diff --git a/settings/appearance/appearance.go b/settings/appearance/appearance.go index ed67db4..5ba39d9 100644 --- a/settings/appearance/appearance.go +++ b/settings/appearance/appearance.go @@ -1,4 +1,5 @@ // Package appearance is a helper package for reading appearance settings. package appearance -const appearanceNamespace = "org.freedesktop.appearance" +// Namespace defines the namespace of the appearance portal. +const Namespace = "org.freedesktop.appearance" diff --git a/settings/appearance/color.go b/settings/appearance/color.go index b00d494..8a7cc6d 100644 --- a/settings/appearance/color.go +++ b/settings/appearance/color.go @@ -21,7 +21,7 @@ const ( // GetColorScheme returns the currently set color scheme. func GetColorScheme() (ColorScheme, error) { - value, err := settings.ReadOne(appearanceNamespace, "color-scheme") + value, err := settings.ReadOne(Namespace, "color-scheme") if err != nil { return NoPreference, err } @@ -37,7 +37,7 @@ func GetColorScheme() (ColorScheme, error) { // GetAccentColor returns the currently set accent color. // If not set, the ErrorNotSet will be returned. func GetAccentColor() (*color.RGBA, error) { - value, err := settings.ReadOne(appearanceNamespace, "accent-color") + value, err := settings.ReadOne(Namespace, "accent-color") if err != nil { return nil, ErrNotSet } diff --git a/settings/appearance/contrast.go b/settings/appearance/contrast.go index 7f69ee9..0cf900a 100644 --- a/settings/appearance/contrast.go +++ b/settings/appearance/contrast.go @@ -12,7 +12,7 @@ const ( // GetContrast returns the currently set contrast setting. func GetContrast() (Contrast, error) { - value, err := settings.ReadOne(appearanceNamespace, "color-scheme") + value, err := settings.ReadOne(Namespace, "color-scheme") if err != nil { return NormalContrast, err }