[passepartout] add some color to the resize grips



commit 5b34600de4b22bed5ca544f6f55566a626609c89
Author: Sven Herzberg <herzi lanedo com>
Date:   Wed Apr 29 11:02:05 2009 +0200

    add some color to the resize grips
    
    * src/pptout/docview.cc: the resize grips now have a shiny green color
---
 src/pptout/docview.cc |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/pptout/docview.cc b/src/pptout/docview.cc
index 3ae2c30..40bdeca 100644
--- a/src/pptout/docview.cc
+++ b/src/pptout/docview.cc
@@ -233,7 +233,7 @@ DocumentView::DocumentView(DocMeta d, float zoom_factor)
   
   for(int i = 0; i < 8; i++) {
     handles[i] = manage(new Rect(handle_group));
-    handles[i]->property_fill_color_gdk() = get_color(Color::bg);
+    handles[i]->property_fill_color_rgba() = 0x88FF44AA;
     handles[i]->property_outline_color_gdk() = get_color(Color::frame);
     handles[i]->property_width_pixels() = 1;
   }
@@ -869,10 +869,10 @@ void DocumentView::update_handles() {
   assert(pos.size() == 8);
   const float hs = scr2pt(int(config.ReshapeBoxSize.values.front()) / 2);
   for(int i = 0; i < 8; i++) {
-    handles[i]->property_x1() = pos[i].x - hs; 
-    handles[i]->property_x2() = pos[i].x + hs; 
-    handles[i]->property_y1() = -(pos[i].y - hs); 
-    handles[i]->property_y2() = -(pos[i].y + hs); 
+    handles[i]->property_x1() = pos[i].x - hs;
+    handles[i]->property_x2() = pos[i].x + hs;
+    handles[i]->property_y1() = -(pos[i].y - hs);
+    handles[i]->property_y2() = -(pos[i].y + hs);
   }
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]