slint-ui / slint

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

A problem occurs on MacOS #3484

Closed Vjze closed 12 months ago

Vjze commented 1 year ago

I'm running the cargo-ui project on MacOS and the TabWidget is almost invisible, I don't know if this is a bug or a problem with my computer. WechatIMG4

FloVanGH commented 1 year ago

Thank you for your report.

I cannot reproduce it on macOS, for me the tabwidget is visible. Do you build it from master. Which slint backend are you using?

image
Vjze commented 1 year ago

Thank you for your report.

I cannot reproduce it on macOS, for me the tabwidget is visible. Do you build it from . Which slint backend are you using?master

image

I'm all installed by default, could it be that my version of MacOS is too high, I'm using MacOS14Beta. However, I previewed it directly with the Slint plugin in VSCode, it won't happen until Rust is built.

https://github.com/slint-ui/slint/assets/99671889/c27633fa-63f9-49e7-85cf-158bbef3e954

FloVanGH commented 1 year ago

For me it looks like it is related to render / backend. Because fluent style is selected as default and not the native style I assume you don't have installed qt, right?

I'm on macOS 13.5.2 and checked if with winit-skia and winit-femtovg, without that issue. Can you do me a favor and check if you have the same issue with the gallery example of the slint repo? There is also a TabWidget on the first page.

Vjze commented 1 year ago

For me it looks like it is related to render / backend. Because fluent style is selected as default and not the native style I assume you don't have installed qt, right?

I'm on macOS 13.5.2 and checked if with winit-skia and winit-femtovg, without that issue. Can you do me a favor and check if you have the same issue with the gallery example of the slint repo? There is also a TabWidget on the first page.

Now I have downgraded the system to 13.5.2 and everything can run normally. Perhaps it is because the Xcode of MacOS14 is only a beta version and has bugs.