From efc0b5b7cd88a94ef98555e267b562a690e2a4d0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 11:45:59 +0000 Subject: [PATCH] Go Dependency: Bump github.com/rymdport/portal from 0.2.6 to 0.3.0 Bumps [github.com/rymdport/portal](https://github.com/rymdport/portal) from 0.2.6 to 0.3.0. - [Release notes](https://github.com/rymdport/portal/releases) - [Commits](https://github.com/rymdport/portal/compare/v0.2.6...v0.3.0) --- updated-dependencies: - dependency-name: github.com/rymdport/portal dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- .../rymdport/portal/settings/appearance/appearance.go | 3 ++- .../github.com/rymdport/portal/settings/appearance/color.go | 4 ++-- .../rymdport/portal/settings/appearance/contrast.go | 2 +- vendor/modules.txt | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 772f125d..72a60841 100644 --- a/go.mod +++ b/go.mod @@ -26,7 +26,7 @@ require ( github.com/jsummers/gobmp v0.0.0-20230614200233-a9de23ed2e25 // indirect github.com/nicksnyder/go-i18n/v2 v2.4.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/rymdport/portal v0.2.6 // indirect + github.com/rymdport/portal v0.3.0 // indirect github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c // indirect github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef // indirect github.com/stretchr/testify v1.9.0 // indirect diff --git a/go.sum b/go.sum index 16a34eb4..e9b03b79 100644 --- a/go.sum +++ b/go.sum @@ -250,8 +250,8 @@ github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6L github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/rymdport/portal v0.2.6 h1:HWmU3gORu7vWcpr7VSwUS2Xx1HtJXVcUuTqEZcMEsIg= -github.com/rymdport/portal v0.2.6/go.mod h1:kFF4jslnJ8pD5uCi17brj/ODlfIidOxlgUDTO5ncnC4= +github.com/rymdport/portal v0.3.0 h1:QRHcwKwx3kY5JTQcsVhmhC3TGqGQb9LFghVNUy8AdB8= +github.com/rymdport/portal v0.3.0/go.mod h1:kFF4jslnJ8pD5uCi17brj/ODlfIidOxlgUDTO5ncnC4= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/shurcooL/go v0.0.0-20200502201357-93f07166e636/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= diff --git a/vendor/github.com/rymdport/portal/settings/appearance/appearance.go b/vendor/github.com/rymdport/portal/settings/appearance/appearance.go index ed67db43..5ba39d9d 100644 --- a/vendor/github.com/rymdport/portal/settings/appearance/appearance.go +++ b/vendor/github.com/rymdport/portal/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/vendor/github.com/rymdport/portal/settings/appearance/color.go b/vendor/github.com/rymdport/portal/settings/appearance/color.go index b00d4941..8a7cc6d2 100644 --- a/vendor/github.com/rymdport/portal/settings/appearance/color.go +++ b/vendor/github.com/rymdport/portal/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/vendor/github.com/rymdport/portal/settings/appearance/contrast.go b/vendor/github.com/rymdport/portal/settings/appearance/contrast.go index 7f69ee9f..0cf900ab 100644 --- a/vendor/github.com/rymdport/portal/settings/appearance/contrast.go +++ b/vendor/github.com/rymdport/portal/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 } diff --git a/vendor/modules.txt b/vendor/modules.txt index ae8c1ffc..1d292e80 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -136,7 +136,7 @@ github.com/nicksnyder/go-i18n/v2/internal/plural # github.com/pmezard/go-difflib v1.0.0 ## explicit github.com/pmezard/go-difflib/difflib -# github.com/rymdport/portal v0.2.6 +# github.com/rymdport/portal v0.3.0 ## explicit; go 1.19 github.com/rymdport/portal github.com/rymdport/portal/internal/apis