commit 22c07c0c72ce33ae96459408bc21336600a6d9e1
parent ccf404bcbe848a91482d1fa50f8a0e9ff7c2d244
Author: simos.lists <simos.lists@70737e48-4f4a-0410-8df8-290828ad50c4>
Date: Mon, 8 Sep 2008 02:37:34 +0000
Change the keyboard background colour to something darker,
so that keys are more visible between each other.
This is important when the layout has a full set of values,
making it difficult to distinguish between the keys.
git-svn-id: http://keyboardlayouteditor.googlecode.com/svn/trunk@60 70737e48-4f4a-0410-8df8-290828ad50c4
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/KeyboardLayoutEditor/src/Keyboard.py b/KeyboardLayoutEditor/src/Keyboard.py
@@ -139,8 +139,11 @@ class Keyboard(gtk.Frame):
self.context = widget.window.cairo_create()
# set a clip region for the expose event
+ self.context.set_source_rgb(0.8, 0.8, 0.8)
self.context.rectangle(event.area.x, event.area.y,
event.area.width, event.area.height)
+ self.context.fill_preserve()
+ self.context.stroke()
self.context.clip()
self.draw(self.context)