Comment by ~egonelbre on ~eliasnaur/gio
It seems sr.ht is including the sentence
.
as part of the link. If you remove it, then the link should work fine.
Comment by ~egonelbre on ~eliasnaur/gio
I cannot test at the moment, but adding a sleep usually makes logical races more visible:
switch e := e.(type) { case system.DestroyEvent: go func() { time.Sleep(time.Second) run() }() return
Comment by ~egonelbre on ~eliasnaur/gio
Maybe you have some third-party dependency that causes the powershell window to pop-up?
Comment by ~egonelbre on ~eliasnaur/gio
Maybe widgets can track and ensure things are in focus themselves, as necessary. Resizing of a list, and other containers, can happen due to other reasons, not just the window resize; e.g. a bottom-panel opens, which causes a list to shrink.
Comment by ~egonelbre on ~eliasnaur/gio
I believe this is the same issue as https://todo.sr.ht/~eliasnaur/gio/339.
Comment by ~egonelbre on ~eliasnaur/gio
Can you post code of a reproducer.
But generally, MoveTo doesn't need to be called before every LineTo.
Comment by ~egonelbre on ~eliasnaur/gio
At the moment there's no support for other color spaces, but I imagine adding linear at least is reasonable.
In the meantime, you try converting your image into sRGB. If it's in linear format then see https://git.sr.ht/~eliasnaur/gio/tree/28c206fc78c7/internal/f32color/rgba.go#L28 how to convert it. It's a private package, but you can copy what you need.
- Egon
On Tue, Jul 19, 2022 at 9:18 PM Javier Hernandez Fuertes outgoing@sr.ht wrote:
Hello,
I am trying GIO and it is a very interesting and impressive
project, but I am having a little issue when drawing images, they are shown 'darker' than the actual images are. I work with astronomical images and the lost is important. Is it related with working with a SRGB color space? Is there an option to use other color space?
Sorry if the questions do not make sense, but I am newbie in the
subject. Thank you very much,
-- Javier Hernández Ingeniero de Bases de Datos Centro de Estudios de Física del Cosmos de Aragón (ceFca) http://www.cefca.es Plza San Juan Nº 1, Planta 2ª E-44001 Teruel (Spain) Phone: +34 978 221266 Ext.1105 Fax: +34 978 611801
-- View on the web: https://todo.sr.ht/~eliasnaur/gio/436
on ~eliasnaur/gio
I do agree with ~egonelbre, it's a useful feature but not frequently required and creating a separate repository where may be infrequent but useful and helpful gio widgets resides.
Comment by ~egonelbre on ~eliasnaur/gio
I think it has only come up a few times for me and, similarly, I've needed chamfered boxes. But, I don't think it makes sense to include all possible button variations in the core. Although, it might make sense to create a repository of "extra drawing primitives".
on ~eliasnaur/gio
~egonelbre Huh, well I do feel like an idiot now. I'm not sure how I got that discontinuity in there, as I vetted this gradient when I generated it by writing it to an image and I didn't see it there. However, it's now clear that this is my problem somewhere. Thank you for taking a look!