~eliasnaur/gio-patches

1

Theme: update default window top bar colors and text

Details
Message ID
<CAD1K+ALTAAiwB2ZOAt2nimSBkasw94QGOiezZaRSMkRwJmqH0g@mail.gmail.com>
DKIM signature
pass
Download raw message
References: https://todo.sr.ht/~eliasnaur/gio/500

diff --git a/widget/material/theme.go b/widget/material/theme.go
index 3da7f4e7..0ed497a6 100644
--- a/widget/material/theme.go
+++ b/widget/material/theme.go
@@ -58,8 +58,8 @@ func NewTheme() *Theme {
        t.Palette = Palette{
                Fg:         rgb(0x000000),
                Bg:         rgb(0xffffff),
-               ContrastBg: rgb(0x3f51b5),
-               ContrastFg: rgb(0xffffff),
+               ContrastBg: rgb(0xdfdbd8),
+               ContrastFg: rgb(0x000000),
        }
        t.TextSize = 16
Details
Message ID
<CAMAFT9U+7qmdmhU-Bevk5xwa2vOcFFr1YXy6b0cn=N6-ds2tvg@mail.gmail.com>
In-Reply-To
<CAD1K+ALTAAiwB2ZOAt2nimSBkasw94QGOiezZaRSMkRwJmqH0g@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
On Mon, 2 Sept 2024 at 20:19, Anthony Starks <ajstarks@gmail.com> wrote:
>
> References: https://todo.sr.ht/~eliasnaur/gio/500
>
> diff --git a/widget/material/theme.go b/widget/material/theme.go
> index 3da7f4e7..0ed497a6 100644
> --- a/widget/material/theme.go
> +++ b/widget/material/theme.go
> @@ -58,8 +58,8 @@ func NewTheme() *Theme {
>         t.Palette = Palette{
>                 Fg:         rgb(0x000000),
>                 Bg:         rgb(0xffffff),
> -               ContrastBg: rgb(0x3f51b5),
> -               ContrastFg: rgb(0xffffff),
> +               ContrastBg: rgb(0xdfdbd8),
> +               ContrastFg: rgb(0x000000),
>         }
>         t.TextSize = 16

This is better for the particular Wayland you're using, but won't fit
better with the
other platforms.
As Egon points out in https://todo.sr.ht/~eliasnaur/gio/500#event-239805, the
right fix seems to introduce a way to query the platform system colors and use
them from Decoration.

Thanks,
Elias
Reply to thread Export thread (mbox)