~mmcg069/software-center/mkit-theme-tweaks

« back to all changes in this revision

Viewing changes to softwarecenter/view/widgets/mkit.py

  • Committer: Matthew McGowan
  • Date: 2010-08-20 09:59:49 UTC
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20100820095949-29qzw2p52maliq0t
more tweakage to the text highlight
.

Show diffs side-by-side

added added

removed removed

Lines of Context:
677
677
    def paint_layout(self, cr, widget, part, x, y, clip=None, sxO=0, etched=True):
678
678
        layout = part.layout
679
679
 
 
680
        a = 0.5
680
681
        if etched and CACHED_THEME_NAME == 'Ambiance-maverick-beta':
681
 
            if part.state in (gtk.STATE_PRELIGHT, gtk.STATE_ACTIVE):
 
682
            if part.state == gtk.STATE_PRELIGHT:
 
683
                print 'Etched==False'
682
684
                etched = False
 
685
            if part.is_active:
 
686
                if part.state == gtk.STATE_ACTIVE:
 
687
                    a = 0.3
 
688
                else:
 
689
                    a = 0.4
683
690
 
684
691
        if etched:
685
692
            pcr = pangocairo.CairoContext(cr)
686
693
            pcr.move_to(x, y+1)
687
694
            pcr.layout_path(layout)
688
 
            r,g,b = self.light_line[part.state].floats()
689
 
            pcr.set_source_rgba(r,g,b,0.5)
 
695
            r,g,b = self.light_line[gtk.STATE_NORMAL].floats()
 
696
            pcr.set_source_rgba(r,g,b,a)
690
697
            pcr.fill()
691
698
 
692
699
        widget.style.paint_layout(widget.window,