slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.55k stars 601 forks source link

SlintPad: Hello World does not combine well with dark mode #3853

Closed tronical closed 1 year ago

tronical commented 1 year ago

In dark mode, slintpad's preview the hello world is "hard to see":

  1. It's hard to see where the example preview's bounds
  2. The slint logo's text is unreadable
Screenshot 2023-11-06 at 09 31 15
hunger commented 1 year ago
  1. There are no bounds: The entire thing (minus the toolbar) is the "Hello World" demo.
  2. We need to have a better Hello World.
tronical commented 1 year ago
  1. Maybe that's a bug? The layout suggests a maximum size, so why is sized different than in https://slint.dev/releases/1.2.2/editor/ ?
tronical commented 1 year ago

Briefly discussed with Tobias: The preview follows the size of the canvas as that's what we discussed should happen and also happens on desktop with the vs code extension and a separate preview window.

hunger commented 1 year ago

So should we change the Hello World Demo to work better with dark modes?

I do not want to complicate the Hello World with conditional image loading code, so maybe remove the logo?

ogoffart commented 1 year ago

maybe use a logo with a background? (Or without text?)