Yes, I know but there are two issues:
- the ColorButton is not fully stylable, it only appears to change its size but they are not controlled by the QPushButton. I mean, if I make QPushButtons big the ColorButton goes big (and making QPushButtons small it lowers the ColorButton but not with same proportions or size so it results in a non controllable parameter. And, as said, the ColorButton does not allow to change it border color, border radius, margins, padding, etc. (reading the code links you shared with me it seems that the buttons is hardly coded, creating a "Rect" and applying sizes and color from QPalette...
- it's desirable to separate QPushButton styling to ColorButton one because they are different elements. With the actual configuration there are no possibility to do it. It would be great to have something like the following in order to separate the styling of both:
Code: Select all
QPushButton {
/* the style here */
}
ColorButton {
/* the style here */
}
Or maybe like:
Code: Select all
QPushButton {
/* the style here */
}
QPushButton.ColorButton {
/* the style here */
}
At this point, what I think is that it would need work from a coder to allow accesibility of all these parameters from a stylesheet as it happens with the "Task panel" that by now is not stylable...
If any of you want to collaborate with me we can make them stylable, I don't know how to code but I can help testing it and making sure it works as expected from the point of view of the graphical designer. So, if you know anyone that would like to do it let me know =)