Last active 8 months ago


Last active 9 months ago
View more

Recent activity

Extending material.Palette a month ago

From Fabian Geiselhart to ~eliasnaur/gio


I'm currently building a chat app using gio and was thinking about
introducing support for a dark theme. Now I obviously have to use more
colors than I can store in material.Palette which makes this harder than
just changing the material.Theme and rerendering everyting.

I could introduce my own, extended Palette type and pass it around.
However I think allowing material.Palette to hold more colors is a much
better course of action (since I am already passing around

However, I am not sure how to do it best. The material design
specification explicitly talks about primary and secondary colors, so

Re: MacOS crossbuilds 8 months ago

From Fabian Geiselhart to ~eliasnaur/gio

> For avoiding Cgo on Apple you may be interested in Go's builtin support
> for
> directly linking to frameworks without the SDK. For example:
> https://go-review.googlesource.com/c/go/+/227037/
This looks extremely interesting but is way out of my expertise. I will
have a look at it anyway. I'll be a nice learning experience either way.
I have some exams coming up, so if I really can do anything here, I
will probably start working at it in a few weeks.

I have not had a closer look at it, but if I understand if correctly, we
should be able to use the same approach for linux binaries, right?

> And that's how it *should* be for every platform, in my not so humble opinion.

[PATCH] example/kitchen: Use the button passed to iconAndTextButton.Layout 8 months ago

From Fabian Geiselhart to ~eliasnaur/gio-patches

The global iconTextButton variable was used instead of the passed

Signed-off-by: Fabian Geiselhart <me@f4814n.de>
I found a little mistake in the kitchen example. It does not break
anything but is confusing when trying to understand the code.

 example/kitchen/kitchen.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/example/kitchen/kitchen.go b/example/kitchen/kitchen.go
index 5c97227..7143fda 100644
--- a/example/kitchen/kitchen.go
[message trimmed]

Re: MacOS crossbuilds 8 months ago

From Fabian Geiselhart to ~eliasnaur/gio

> I believe this is because you need to link against some header files
> that are only available (right now) on a mac. Figuring out how to
> redistribute those legally is probably the biggest hurdle here.
Okay. In that case maybe first looking at android is easier. I really
liked the approach of https://github.com/therecipe/qt (creating docker
images with all tools preinstalled, so you only have to launch a docker
container, which has access to your sourcecode, and building is then
done inside the docker container). But then you would need docker to
build your applications (or do the manual setup). Are there better ways
to do this?

> Welcome to the community!
Thank you very much!

MacOS crossbuilds 8 months ago

From Fabian Geiselhart to ~eliasnaur/gio


I am currently trying to set up automated builds of my application for
all platforms that are supported. Windows and Linux builds are pretty
easy but MacOS (and also iOS) seems really hard. I tried to adapt
https://git.sr.ht/~eliasnaur/gio/tree/master/.builds/apple.yml but I
could not not get it to work (a lot of broken links in the
appletoolchain directory).

Is there a documented way to crossbuild from Linux to MacOS? And if not
it creating a general purpose guide even realistic? (I am no Apple
expert. So what I am searching for is a easily comprehensible guide)

Another way to make this kinds of crossbuilds easier could be to use