From 0c9a89a8e7a96102a461efeda5cb8b3ded7c40db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20For=C3=A9?= Date: Fri, 18 Jul 2014 17:55:37 -0700 Subject: [PATCH] minor tweaks to confirmation progress bar appearance --- plugins/notify/ConfirmationNotification.vala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/notify/ConfirmationNotification.vala b/plugins/notify/ConfirmationNotification.vala index e5bccdec..ef3ff271 100644 --- a/plugins/notify/ConfirmationNotification.vala +++ b/plugins/notify/ConfirmationNotification.vala @@ -51,7 +51,7 @@ namespace Gala.Plugins.Notify content_height = ICON_SIZE; } - const int PROGRESS_HEIGHT = 12; + const int PROGRESS_HEIGHT = 6; public override void draw_content (Cairo.Context cr) { @@ -60,7 +60,7 @@ namespace Gala.Plugins.Notify var x = MARGIN + PADDING + ICON_SIZE + SPACING; var y = MARGIN + PADDING + (ICON_SIZE - PROGRESS_HEIGHT) / 2; - var width = WIDTH - x - PADDING - MARGIN; + var width = WIDTH - x - MARGIN; var fraction = (int) Math.floor (progress.clamp (0, 100) / 100.0 * width); Granite.Drawing.Utilities.cairo_rounded_rectangle (cr, x, y, width, @@ -84,4 +84,3 @@ namespace Gala.Plugins.Notify } } } -