[kupfer] ui: Draw MatchView using OPERATOR_SOURCE (draw exact color, not overlay)



commit 8e0bb4cf2c01aacddcb814f9bf78495307248ff2
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri Mar 25 17:00:47 2011 +0100

    ui: Draw MatchView using OPERATOR_SOURCE (draw exact color, not overlay)

 Documentation/GTKTheming.rst |    2 +-
 kupfer/plugin/darkstyle.py   |    4 ++--
 kupfer/ui/browser.py         |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/Documentation/GTKTheming.rst b/Documentation/GTKTheming.rst
index 6341003..38c52e0 100644
--- a/Documentation/GTKTheming.rst
+++ b/Documentation/GTKTheming.rst
@@ -65,7 +65,7 @@ The following example style includes inline comments::
         ## The MatchView is the bezel around each pane in the interface
 
         MatchView :: corner-radius = 15
-        MatchView :: opacity = 80
+        MatchView :: opacity = 95
 
         ## The Search controls the result list
 
diff --git a/kupfer/plugin/darkstyle.py b/kupfer/plugin/darkstyle.py
index 758f393..e27a9d7 100644
--- a/kupfer/plugin/darkstyle.py
+++ b/kupfer/plugin/darkstyle.py
@@ -51,10 +51,10 @@ style "dark"
 ## These are UI Widget style properties with their approximate
 ## default values. These can all be overidden in the theme.
 ## MatchView :: corner-radius = 15
-## MatchView :: opacity = 80
+MatchView :: opacity = 90
 ## Search :: list-opacity = 93
 ## KupferWindow :: corner-radius = 15
-## KupferWindow :: opacity = 85
+KupferWindow :: opacity = 90
 ## KupferWindow :: decorated = 0
 ## KupferWindow :: border-width = 8
 
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index ceca08f..b595556 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -329,7 +329,7 @@ class MatchView (gtk.Bin):
 		make_rounded_rect(context, 0, 0, rect.width, rect.height, radius=radius)
 		# Get the current selection color
 		newc = widget.style.bg[widget.get_state()]
-		context.set_operator(cairo.OPERATOR_OVER)
+		context.set_operator(cairo.OPERATOR_SOURCE)
 		opacity = 0.01*self.style_get_property('opacity')
 		context.set_source_rgba(newc.red*scale,
 				newc.green*scale, newc.blue*scale, opacity)
@@ -496,7 +496,7 @@ gtk.widget_class_install_style_property(MatchView,
 gtk.widget_class_install_style_property(MatchView,
 		('opacity', gobject.TYPE_INT, 'Bezel opacity',
 		 'Opacity of bezel around match',
-		 50, 100, 80,
+		 50, 100, 95,
 		 gobject.PARAM_READABLE))
 
 class Search (gtk.Bin):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]