summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2009-09-22 16:07:56 -0400
committerWilliam Jon McCann <jmccann@redhat.com>2009-09-22 16:07:56 -0400
commit517980fc96cf42cba127e2e9c2f9462904fb1a80 (patch)
tree1f0bb61aec93edecb1c32539e6a32b10c4bb40fa
parentbcb85e0eca334d2d18732d978fe8130b08e0241b (diff)
Make it less transparent
-rw-r--r--src/theme.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/theme.c b/src/theme.c
index 2367fe3..ff3c04b 100644
--- a/src/theme.c
+++ b/src/theme.c
@@ -53,12 +53,11 @@ typedef struct
UrlClickedCb url_clicked;
} WindowData;
-enum
- {
- URGENCY_LOW,
- URGENCY_NORMAL,
- URGENCY_CRITICAL
- };
+enum {
+ URGENCY_LOW,
+ URGENCY_NORMAL,
+ URGENCY_CRITICAL
+};
#define WIDTH 400
#define DEFAULT_X0 0
@@ -69,7 +68,7 @@ enum
#define PIE_WIDTH (2 * PIE_RADIUS)
#define PIE_HEIGHT (2 * PIE_RADIUS)
#define BODY_X_OFFSET (IMAGE_SIZE + 8)
-#define BACKGROUND_OPACITY 0.75
+#define BACKGROUND_ALPHA 0.85
#if GTK_CHECK_VERSION(2, 10, 0)
# define USE_COMPOSITE
@@ -161,7 +160,7 @@ fill_background (GtkWidget *widget,
r = (float)color.red / 65535.0;
g = (float)color.green / 65535.0;
b = (float)color.blue / 65535.0;
- cairo_set_source_rgba (cr, r, g, b, BACKGROUND_OPACITY);
+ cairo_set_source_rgba (cr, r, g, b, BACKGROUND_ALPHA);
cairo_fill_preserve (cr);
switch (windata->urgency) {
@@ -182,7 +181,7 @@ fill_background (GtkWidget *widget,
r = (float) color.red / 65535.0;
g = (float) color.green / 65535.0;
b = (float) color.blue / 65535.0;
- cairo_set_source_rgba (cr, r, g, b, BACKGROUND_OPACITY);
+ cairo_set_source_rgba (cr, r, g, b, BACKGROUND_ALPHA);
cairo_set_line_width (cr, 2);
cairo_stroke (cr);
}