<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>269904</bug_id>
          
          <creation_ts>2011-04-01 23:42:09 +0000</creation_ts>
          <short_desc>Checkboxes have wrong colors in ccsm main page</short_desc>
          <delta_ts>2011-07-29 23:28:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>Oxygen</product>
          <component>gtk2-engine</component>
          <version>unspecified</version>
          <rep_platform>Unlisted Binaries</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Ruslan Kabatsayev">b7.10110111</reporter>
          <assigned_to name="Hugo Pereira Da Costa">hugo.pereira.da.costa</assigned_to>
          <cc>b7.10110111</cc>
    
    <cc>hugo.pereira.da.costa</cc>
    
    <cc>web</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1103277</commentid>
    <comment_count>0</comment_count>
    <who name="Ruslan Kabatsayev">b7.10110111</who>
    <bug_when>2011-04-01 23:42:09 +0000</bug_when>
    <thetext>Version:           unspecified
OS:                Linux



Reproducible: Always

Steps to Reproduce:
1. Start ccsm, observe checkboxes being darker from top to bottom (blending with default oxygen background gradient).
2. Scroll to the end, see checkboxes at the top being dark
3. Hover any of them - they become white.


Expected Results:  
I think blending should be disabled for cases when parent has custom background set (so that all the checkboxes in ccsm would be white).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1103332</commentid>
    <comment_count>1</comment_count>
    <who name="Hugo Pereira Da Costa">hugo.pereira.da.costa</who>
    <bug_when>2011-04-02 10:48:28 +0000</bug_when>
    <thetext>I agree with the suggestion but it is actually hard to implement.
There is already a check on whether checkbox is in list view, which fails for ccsm (cause they are actually not using a list view but some custom widget).

Now the problem is: the said parent is usually not the direct parent of the checkbox that is being repainted (you can have various layouts in between, for instance, e.g. GtkBox). 

So should we check the custom background for *all* parents, recursively ? 
I fear some overhead.
(especially since, if we want to do it consistently, it needs to be done for all widgets that we blend one way or the other). 

What do you think ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1103346</commentid>
    <comment_count>2</comment_count>
    <who name="Hugo Pereira Da Costa">hugo</who>
    <bug_when>2011-04-02 11:40:12 +0000</bug_when>
    <thetext>Git commit 78fdd3b958c9ec0642e83c79b6bdea046771a97a by Hugo Pereira Da Costa.
Committed on 02/04/2011 at 11:40.
Pushed by hpereiradacosta into branch &apos;master&apos;.

added recursive Gtk::gtk_widget_has_custom_background method.

CCBUG: 269904

M  +12   -0    src/oxygengtkutils.cpp     
M  +3    -0    src/oxygengtkutils.h     

http://commits.kde.org/oxygen-gtk/78fdd3b958c9ec0642e83c79b6bdea046771a97a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1103347</commentid>
    <comment_count>3</comment_count>
    <who name="Hugo Pereira Da Costa">hugo</who>
    <bug_when>2011-04-02 11:40:12 +0000</bug_when>
    <thetext>Git commit 1d2d6692dbcfb1cd5e5a89c17e97641b16e9a19d by Hugo Pereira Da Costa.
Committed on 02/04/2011 at 11:41.
Pushed by hpereiradacosta into branch &apos;master&apos;.

use Gtk::gtk_widget_has_custom_background to decide whether checkboxes and radiobuttons should be blended.

CCBUG: 269904

M  +6    -3    src/oxygenstylewrapper.cpp     

http://commits.kde.org/oxygen-gtk/1d2d6692dbcfb1cd5e5a89c17e97641b16e9a19d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1103349</commentid>
    <comment_count>4</comment_count>
    <who name="Hugo Pereira Da Costa">hugo.pereira.da.costa</who>
    <bug_when>2011-04-02 11:41:40 +0000</bug_when>
    <thetext>ok. That fixes it.
So far I have implemented extra check only for checkboxes and radiobuttons.
It is doable for normal buttons but painful, (because drawButtonSlab is used all over the place, notably due to our custom comboboxes), so I&apos;ll wait for bug reports to show up :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>