[billreminder/fresh] removed border to make it lighter
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [billreminder/fresh] removed border to make it lighter
- Date: Wed, 20 Jan 2010 01:27:19 +0000 (UTC)
commit 601bb0aa2d44f67a28bcb3295c2a49b173c0fb36
Author: Toms Bauģis <toms baugis gmail com>
Date: Wed Jan 20 01:26:37 2010 +0000
removed border to make it lighter
src/lib/utils.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/lib/utils.py b/src/lib/utils.py
index 1df79f9..741c255 100644
--- a/src/lib/utils.py
+++ b/src/lib/utils.py
@@ -255,13 +255,10 @@ def create_pixbuf(height=16, width=16, color='#F5F5F5'):
green = float(color.green) / 65536
blue = float(color.blue) / 65536
- # Draw a black border for a square
- cr.set_source_rgb(0, 0, 0)
- cr.rectangle(0, 0, height, width)
- cr.stroke()
+
# Draw a smaller colored square inside of previous one
cr.set_source_rgb(red, green, blue)
- cr.rectangle(1, 1, height - 2, width - 2)
+ cr.rectangle(0, 0, width, height)
cr.fill ()
# Buffer to hold the image
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]