Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: dark background color to increase contrast to colored clouds #64

Open
juliangaal opened this issue Mar 29, 2023 · 1 comment

Comments

@juliangaal
Copy link

I find that visualizing labeled data with the semantic-kitti-api viewer makes it way easier to find labelling mistakes, especially in low density scans. Darkening/blackening the background on the main window would make labelling way easier, in my opinion.

What do you think about this, maybe as an option?

I started working on this, and attempted

QPalette pal = app.palette();
pal.setColor(QPalette::Window, Qt::black);
app.setPalette(pal);

Which only changes the menu color, but not the main windows background. Could you point me in the right direction?

@jbehley
Copy link
Owner

jbehley commented Apr 2, 2023

Thanks for the suggestion and it should be easy to implement; I'm currently quite busy with other projects, but if you want to give it a try:

  1. Add a button (or something else) in the Qt Designer to have it togglable. (optional)
  2. Add in the beginning of Viewport::paintGL the line glClearColor(0.0f, 0.0f, 0.0f, 1.0f); and that changes the color to black in the viewport.

That's it. If you want to make also the UI "dark mode", it might be possible to define style files in Qt, but here I'm not an expert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants