[fixed]Mouse stuck in colorpicker?

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
MisterMaker
Posts: 744
Joined: Mon Sep 21, 2020 7:41 am
Contact:

[fixed]Mouse stuck in colorpicker?

Post by MisterMaker »

Fixed!
So I got this bug in my ExtremeProDark theme and after searching the internet for like 2 hours I am kinda lost.
It's in the QColorDialog and then the Qcolorpicker.
What happens is that you aren't able to click on the picker, it just snaps to the mouse and doesn't let go, clicking doesn't do anything.
This does not happen in other theme's, although they have no QColorDialog or Qcolorpicker in the stylesheet, so no idea why it only happens in my theme.
It also doesn't happen with no stylesheets, which make me wonder if my stylesheet has something that shouldn't be in there, but I couldn't find anything related.
Maybe someone has an idea?
Image
Last edited by MisterMaker on Fri Mar 03, 2023 6:03 pm, edited 2 times in total.
User avatar
MisterMaker
Posts: 744
Joined: Mon Sep 21, 2020 7:41 am
Contact:

Re: Mouse stuck in colorpicker?

Post by MisterMaker »

Found it!
Keeping the forum topic for documentation...
It's caused by following code, that doesn't do a lot as far as I see it. So I just disabled it.

Code: Select all

  /* Causes issue with colorselector.
  QWidget::item:hover:!selected {
    background-color: #557bb6;
  }*/
User avatar
onekk
Veteran
Posts: 6199
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Mouse stuck in colorpicker?

Post by onekk »

MisterMaker wrote: Fri Mar 03, 2023 11:01 am ...
To be helpful, where is this part of code, in the stylesheet definition, or in FreeCAD code?

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Post Reply