~dolanor

Recent activity

Re: New font and UTF-8 icons 5 months ago

From Tanguy ⧓ Herrmann to ~eliasnaur/gio

> Can you create a short reproducer somewhere? I'll take a look.
I made a reproduceable use case here:

https://gist.github.com/dolanor/e5f23896be3261a44bc634b468197e7e

On Ubuntu 16.04 (X11) and Android 9.0 (Samsung Galaxy S8)

Re: New font and UTF-8 icons 5 months ago

From Tanguy ⧓ Herrmann to ~eliasnaur/gio

> Unfortunately, the custom gio font renderer doesn't yet support colored
> font glyphs, sorry. You're welcome to open an issue.
Actually, even non colored font glyph are rendered. I just get a square.

Re: Layout help 5 months ago

From Tanguy ⧓ Herrmann to ~eliasnaur/gio

> The good news is that the above commit resolves the problematic heap escape,
> and the following commits implement the much nicer API for Flex and Stack.
> 
> See
> 
> https://gioui.org/commit/7814da47a0ffdf00462fbd0095af5e3d23757ef2
> https://gioui.org/commit/f60a5c7ac342fe67638ae94fa332dfc743bc62a9
> 
> for details.
> 
> -- elias

I updated my code, it was quite easy and it is a simpler way to do it.

New font and UTF-8 icons 5 months ago

From Tanguy ⧓ Herrmann to ~eliasnaur/gio

Hi,For a button, I wanted to display the trash icon from UTF-8 (🗑).
Problem is, that it displayed as a square on the button in Gio. So I thought maybe the gofont family didn't have any UTF-8 icon supported.
In my terminal, I use the mono from the ubuntu-font-family, so I thought maybe it would work if I used it instead.
I used the same trick as for gofont and generated all the types of fonts from the ubuntu-font-family. It is available here: https://github.com/dolanor/gofontu and is used the same way: `gofont.Register()`Anyway, the UTF-8 icon still don't display, so I guess there is something else missing.

Tanguy ⧓

Re: defer 5 months ago

From Tanguy ⧓ Herrmann to ~eliasnaur/gio

> It's a forced design decision. Go doesn't own the main thread on
> Android, the Android SDK does. So app.Main on Android returns
> immediately, triggering your defers.
So, I should really put my full app logic in the goroutine and not directly in the main?
That would work?

> for the trick of running main even in c-shared mode.
I stumbled upon it looking at the app.DataDir() the other day, but it didn't connect as much dot as it does
today for me. It's a pretty nice idea, even if hacky. So at least the code is somewhat similar between
platforms (even though less Go-idiomatic).

Thanks!

defer 5 months ago

From Tanguy ⧓ Herrmann to ~eliasnaur/gio

Hi,

I opened some database connection on android directly in the main, not in the UI goroutine.
I wanted to defer the close of the database directly at the exit of the main, but it seems it is
not really defered, and get called immediately at the moment we defer it.
Is it a normal situation? Should we defer close in the goroutine (and also create the database
connection as well)?
Has someone an explanation for that? I would like to understand it because I guess it might be a design
decision?

Tanguy

Re: Gio News, December 2019: Gdlv, Headless Windows, Modifier Keys, Android 5 months ago

From Tanguy ⧓ Herrmann to ~eliasnaur/gio

The rythm of new features is quite impressive. I'm so happy to see so many contributors bring big pieces of logic in Gio.

Happy December everybody!

Tanguy

Le 4 décembre 2019 12:40:35 GMT+01:00, Elias Naur <mail@eliasnaur.com> a écrit :
>	gdlv ported to Gio
>
>gdlv, the GUI frontend to the Go debugger recently gained support for
>Gio in
>addition to the existing Shiny backend. Alessandro Arzilli did the
>work, and
>let me know that the Gio backend is now the default on macOS.

Re: Gio news, November 2019: X11, FreeBSD, Widgets & Themes, Sponsors 5 months ago

From Tanguy ⧓ Herrmann to ~eliasnaur/gio

I just read that this email.
I'm impressed you even remember this exchange. And I'm happy I've played the devil's advocate, because, I clearly prefer a little Java and a lot of Go than just Java without Go at all.
And if the result of that exchange helped to move towards Gio, I'm even happier.

I finally started to play with it, and if it's not the kind of patterns I'm used to, I still enjoy it better than to deal with any of those enterprise-y Java patterns.
And for now, the tooling is excellent. Between pure go CLI and gogio for specific platform building, it's very easy to test locally and deploy + test on mobile.

So again, thanks for your dedication to this topic and bringing pure Go UI to mobile dev without boilerplate.

Tanguy