[gcompris] explore, minor, better looking text background
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] explore, minor, better looking text background
- Date: Sun, 9 Sep 2012 21:33:16 +0000 (UTC)
commit 9ced4524cb8c73fcdd581f32c25233697b80beb0
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Sun Sep 9 12:03:14 2012 +0200
explore, minor, better looking text background
src/explore-activity/explore.py | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/src/explore-activity/explore.py b/src/explore-activity/explore.py
index f96cf14..fb2565d 100644
--- a/src/explore-activity/explore.py
+++ b/src/explore-activity/explore.py
@@ -43,6 +43,7 @@ import random
# BEWARE: setting this to true will delete all your previous records!
RECORD_LOCATIONS = False
# -----------------------------------------------------------------------------
+TEXT_BG_COLOR = 0xCCCCCC99L
ExploreActivityResourcesFilepath = 'explore/'
class Gcompris_explore:
@@ -194,9 +195,11 @@ class Gcompris_explore:
y=bounds.y1 - TG,
width=bounds.x2 - bounds.x1 + TG * 2,
height=bounds.y2 - bounds.y1 + TG * 2,
- line_width=3.0)
- rect.props.fill_color = 'gray'
- rect.props.stroke_color = 'black'
+ line_width=2.0,
+ radius_x = 3.0,
+ radius_y = 3.0,
+ fill_color_rgba = TEXT_BG_COLOR,
+ stroke_color = "black")
t.raise_(rect)
def loadStatusBar(self):
@@ -441,9 +444,11 @@ class Gcompris_explore:
y=bounds.y1 - TG,
width=bounds.x2 - bounds.x1 + TG * 2,
height=bounds.y2 - bounds.y1 + TG * 2,
- line_width=3.0)
- rect.props.fill_color = 'gray'
- rect.props.stroke_color = 'blach'
+ line_width=2.0,
+ radius_x = 3.0,
+ radius_y = 3.0,
+ fill_color_rgba = TEXT_BG_COLOR,
+ stroke_color = "black")
self.text.raise_(rect)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]