From d515fa8eba2405d30571d306c66f7224d40d5cbd Mon Sep 17 00:00:00 2001 From: Jacalz Date: Sun, 10 Nov 2024 21:32:34 +0100 Subject: [PATCH] Use new namespace constant for appearance --- app/app_xdg.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/app_xdg.go b/app/app_xdg.go index de821dfdf0..71aeae4142 100644 --- a/app/app_xdg.go +++ b/app/app_xdg.go @@ -127,7 +127,7 @@ func watchTheme(s *settings) { s.applyVariant(themeVariant) portalSettings.OnSignalSettingChanged(func(changed portalSettings.Changed) { - if changed.Namespace == "org.freedesktop.appearance" && changed.Key == "color-scheme" { + if changed.Namespace == appearance.Namespace && changed.Key == "color-scheme" { themeVariant := colorSchemeToThemeVariant(appearance.ColorScheme(changed.Value.(uint32))) internalapp.CurrentVariant.Store(uint64(themeVariant)) s.applyVariant(themeVariant) diff --git a/go.mod b/go.mod index a9c5a089c9..188dec6c52 100644 --- a/go.mod +++ b/go.mod @@ -24,7 +24,7 @@ require ( github.com/mcuadros/go-version v0.0.0-20190830083331-035f6764e8d2 github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 github.com/nicksnyder/go-i18n/v2 v2.4.0 - github.com/rymdport/portal v0.2.6 + github.com/rymdport/portal v0.3.0 github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef github.com/stretchr/testify v1.8.4 diff --git a/go.sum b/go.sum index 617cc24c83..91732fb17d 100644 --- a/go.sum +++ b/go.sum @@ -263,8 +263,8 @@ github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/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=