~eliasnaur

~eliasnaur/gio-patches

Last active 4 days ago

~eliasnaur/gio

Last active 10 days ago
View more

Recent activity

Re: Theme: update default window top bar colors and text 4 days ago

From Elias Naur to ~eliasnaur/gio-patches

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),

Re: question about how to use io/clipboard in gio v0.0.7 a month ago

From Elias Naur to ~eliasnaur/gio

On Tue, 30 Jul 2024 at 08:33, <masala@riseup.net> wrote:
>
> I'm updating my project that uses gio to v0.0.7 and trying to figure out
> how to get the contents of the clipboard (on wayland); here's a
> simplified example of what I'm doing:
>
> ```
> func (p *Page) Layout(gtx layout.Context) layout.Dimensions {
> ... snip ...
>         if p.foo.Clicked(gtx) {
>                 gtx.Execute(clipboard.ReadCmd{Tag: p})
>         }
>
>         // not getting any events

Re: [PATCH gio] go.mod: update golang.org/x dependencies a month ago

From Elias Naur to ~eliasnaur/gio-patches

Thanks, merged.

Elias

Re: [PATCH gio] app: ensure Invalidate can be invoked when window is closing 2 months ago

From Elias Naur to ~eliasnaur/gio-patches

On Mon, 1 Jul 2024 at 22:21, Chris Waldon
<christopher.waldon.dev@gmail.com> wrote:
>
> This commit ensures that it is safe to invoke Invalidate() from another goroutine
> while a Gio window may be in the process of closing. It can be difficult to prevent
> this from happening, as window handles can easily be managed by a type that doesn't
> know the exact moment of window close (it might be waiting on the window event loop
> to return, but that hasn't happened yet). Without this change, the nil window
> driver results in a panic in this situation.
>
> Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
> ---
>  app/window.go | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Re: About Gio and Golang GUI framework in general 2 months ago

From Elias Naur to ~eliasnaur/gio

(CC'ed the mailing list, I hope you don't mind)

On Thu, 20 Jun 2024 at 19:30, Nino Stephen wrote:
> I'm not a developer by profession, so GUI frameworks and how they work under-the-hood wasn't something that came under my radar. Looking at Gio's source code was really helpful. That along with some blogs did help me get a vague idea about the working of frameworks like Gio.
>
> However, my understanding is on an extremely high-level and the whole thing feels like magic. This is mainly because my batch in college never got to learn graphics programing. As a curious person who likes to understand how things work, I would like to learn more about how Gio works under-the-hood.
>
> If you don't mind me asking, could you share links to resources I could refer? My aim is to build a really basic and barebone version of Gio from the ground up. I'm aiming to create 3 things, namely a window, a label and a button. That too on Linux.
>
> I'm more than happy to read as much documentation as possible to build it. Any resources you could share would be really helpful.
>

Hi Nino,

Re: Detecting whether a window is currently visible 2 months ago

From Elias Naur to ~eliasnaur/gio

On Sun, 9 Jun 2024 at 22:35, Lucas Rodrigues <inkeliz@inkeliz.com> wrote:
>
> Hi,
>
> I have currently migrated almost everything to the latest version, but
> ConfigEvent.Focused doesn't work.
>
> I reported some issues about this on gio-todo. However, the issue affects multiple
> OSes (from WASM to iOS) on different levels.
>
> I can summarize all issues:
>
> 1. Focused is not triggered when the page is not visible (WASM). It happens before,
> using visibilitychange.

Re: unbounded slice growth in Router.Event()? 3 months ago

From Elias Naur to ~eliasnaur/gio

Hi Joe,

Thanks for noticing and reporting this issue, which should be fixed by

gioui.org/commit/56177c55cfbb4e07008f7646f0eb8d9912e95423

Elias