Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

eSlider transparency bug when used with rounded corners

2stein

ViX Beta Tester
Joined
Nov 6, 2010
Messages
1,107
Reaction score
45
Points
48
Website
github.com
for my timeshift plugin i use 3 stacked sliders in grey (start of ts recording), yellow (current play position), red (current recording position).
originally when they were broader and had rounded corners the top grey one covered the 2 below although transparency="1". i played around a bit and found that the rounded corners were the culprit. when i removed them, everything looks fine (see screenshot). as a workaround i reduced the height so that rounded corners dont make too much of a difference.
however, i investigated a bit further and found the bug in eslider.cpp which i think could be fixed with:
Code:
@@ -86,7 +86,7 @@ int eSlider::event(int event, void *data, void *data2)
                        painter.clear();
                }

-               if(cornerRadius || m_background_gradient_set)
+               if((cornerRadius || m_background_gradient_set) && !isTransparent())
                {
                        if(m_have_background_color) {
                                painter.setBackgroundColor(m_background_color);
but as i dont have a build environment, i cant test it.
still, i wanted to leave it here for somebody who does and wants to test it.
also, i'm wondering whether other widgets have similar problems with rounded corners.
 

Attachments

  • ts.webp
    ts.webp
    8.4 KB · Views: 5
There are a lot of issues with transparency. Works in some places. There are big issues in others. With rounded corners even more problems. DimitarCC has the most experience due to the use in his skin.
 

OpenViX Feeds Status

Back
Top