jbehley / point_labeler

My awesome point cloud labeling tool
MIT License
647 stars 161 forks source link

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

Open juliangaal opened 1 year ago

juliangaal commented 1 year ago

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 commented 1 year ago

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.