Live data from Hacker News

Egui – An immediate mode GUI written in Rust

egui.rs

51–60 of 143 posts

Re: Egui – An immediate mode GUI written in Rust

#51
post #50
post #44

Earlier quoted context omitted.

On latest Android, long-pressing home activates the Google Assistant overlay, which allows you to select any text on screen (and translate and search region).

Yeah, but it still only uses OCR, right?

correct and it looks like it tries to do some autocorrect, not great when you need to copy some random characters password (like it was the case in the share WiFi password in previous android version, where you couldn't copy displayed password natively)

Re: Egui – An immediate mode GUI written in Rust

#52
post #47

Am I the only one that has a problem with all non dom/html renderers that I can't copy the text on mobile? The same with flutter etc, it's such a regression in my eyes but nobody prioritizes it.

C-c, C-v works for me here. egui is an immediate mode GUI library written in Rust. egui runs both on the web and natively on . On the web it is compiled to WebAssembly and rendered with WebGL. Everything you see is rendered as textured triangles. There is no DOM, HTML, JS or CSS. Just Rust. egui is designed to be easy to use, portable, and fast.

> on mobile

Re: Egui – An immediate mode GUI written in Rust

#53
post #37

Earlier quoted context omitted.

You generally can't copy text in native UIs unless the app author goes to extra effort to allow it. It's really the web that is the odd one out here because it was originally intended for documents.

It also means worse accessibility, less introspection, automation, worse/impossible adblocking, etc.

> worse/impossible adblocking

Obviously that's not a downside from a software developer perspective.

Re: Egui – An immediate mode GUI written in Rust

#54
post #37

Earlier quoted context omitted.

You generally can't copy text in native UIs unless the app author goes to extra effort to allow it. It's really the web that is the odd one out here because it was originally intended for documents.

It also means worse accessibility, less introspection, automation, worse/impossible adblocking, etc.

Selecting text can be useful, but it can also become its own usability problem.

I recently created a touch interface using a websocket/browser based stack and one of the problem was that users kept selecting the text on buttons because they expected some action while holding the button.

Re: Egui – An immediate mode GUI written in Rust

#57
post #37

Earlier quoted context omitted.

It also means worse accessibility, less introspection, automation, worse/impossible adblocking, etc.

> worse/impossible adblocking Obviously that's not a downside from a software developer perspective.

I’m a software developer, and it seems like a positive to me? Why wouldn’t you want the ability to post-facto manipulate with script the interfaces you are presented with?

Re: Egui – An immediate mode GUI written in Rust

#58
> panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/glow-0.16.0/src/web_sys.rs:282:78: called `Option::unwrap()` on a `None` value

Someone's been naughty for Christmas, forcing option unwrapping instead of pattern matching.

On the mobile version of Brave.

Re: Egui – An immediate mode GUI written in Rust

#59
post #40

I was unable to find a global font-size option, isn't there any? I can modify the fonts individually, but that's not what I want. I also wish for a global contrast option (preferably where the day/night toggle is). The default night theme is too low contrast for me right now, coming from a brightness that is perfect for HN.

https://docs.rs/egui/latest/egui/struct.Context.html#method....

Maybe you want to scale all the UI elements? This has the same zooming effect as pressing Ctrl-+. Otherwise why not loop and set all the font sizes you want?

https://docs.rs/egui/latest/egui/style/struct.Visuals.html

I don't recall there being a high contrast option or slider, so your best bet might be trying to modify the values in this struct, or if that's not enough, then the values in the `widgets` field of it. You can customize every color in the UI.

Re: Egui – An immediate mode GUI written in Rust

#60
I'm afraid that until browsers provide APIs to help render fonts with sub-pixel rendering (note: that would add fingerprinting bits), canvas-based UI rendering libraries will always have a big disadvantage (vs DOM-based) on all but the high pixel density devices.

(This is well known by the egui authors, which is a great library!)

Post reply on HN