if(solid_lines)
{
gc->set_line_attributes(3,Gdk::LINE_SOLID,Gdk::CAP_BUTT,Gdk::JOIN_MITER);
- gc->set_rgb_fg_color(Gdk::Color("#000000"));
+ gc->set_rgb_fg_color(DUCK_COLOR_CONNECT_OUTSIDE);
gc->set_function(Gdk::COPY);
drawable->draw_line(gc, (int)origin[0],(int)origin[1],(int)(point[0]),(int)(point[1]));
gc->set_line_attributes(1,Gdk::LINE_SOLID,Gdk::CAP_BUTT,Gdk::JOIN_MITER);
- gc->set_rgb_fg_color(Gdk::Color("#9fefef"));
+ gc->set_rgb_fg_color(DUCK_COLOR_CONNECT_INSIDE);
drawable->draw_line(gc, (int)origin[0],(int)origin[1],(int)(point[0]),(int)(point[1]));
}
else
// gc->set_function(Gdk::INVERT);
// drawable->draw_line(gc, (int)origin[0],(int)origin[1],(int)(point[0]),(int)(point[1]));
gc->set_line_attributes(1,Gdk::LINE_SOLID,Gdk::CAP_BUTT,Gdk::JOIN_MITER);
- gc->set_rgb_fg_color(Gdk::Color("#000000"));
+ gc->set_rgb_fg_color(DUCK_COLOR_CONNECT_OUTSIDE);
gc->set_function(Gdk::COPY);
drawable->draw_line(gc, (int)origin[0],(int)origin[1],(int)(point[0]),(int)(point[1]));
gc->set_line_attributes(1,Gdk::LINE_ON_OFF_DASH,Gdk::CAP_BUTT,Gdk::JOIN_MITER);
- gc->set_rgb_fg_color(Gdk::Color("#9fefef"));
+ gc->set_rgb_fg_color(DUCK_COLOR_CONNECT_INSIDE);
drawable->draw_line(gc, (int)origin[0],(int)origin[1],(int)(point[0]),(int)(point[1]));
}
}
real_mag.convert(App::distance_system,get_work_area()->get_rend_desc());
layout->set_text(real_mag.get_string());
- gc->set_rgb_fg_color(Gdk::Color("#000000"));
+ gc->set_rgb_fg_color(DUCK_COLOR_WIDTH_TEXT_1);
drawable->draw_layout(
gc,
round_to_int(point[0])+1+6,
round_to_int(point[1])+1-8,
layout
);
- gc->set_rgb_fg_color(Gdk::Color("#FF00FF"));
+ gc->set_rgb_fg_color(DUCK_COLOR_WIDTH_TEXT_2);
drawable->draw_layout(
gc,
round_to_int(point[0])+6,
#define DUCK_COLOR_TANGENT_2 Gdk::Color("#ff0000")
#define DUCK_COLOR_VERTEX Gdk::Color("#ff7f00")
#define DUCK_COLOR_WIDTH Gdk::Color("#ff00ff")
-
#define DUCK_COLOR_OTHER Gdk::Color("#00ff00")
#define DUCK_COLOR_OUTLINE Gdk::Color("#000000") // the outline around each duck
#define DUCK_COLOR_SELECTED Gdk::Color("#ff0000") // the color of the box drawn when a valuenode is selected
+#define DUCK_COLOR_CONNECT_INSIDE Gdk::Color("#9fefef") // the color of the inside of the line connecting a vertex duck to the tangent ducks
+#define DUCK_COLOR_CONNECT_OUTSIDE Gdk::Color("#000000") // the color of the outside of the line connecting a vertex duck to the tangent ducks
+
+#define DUCK_COLOR_WIDTH_TEXT_1 Gdk::Color("#000000") // the color of the text's shadow when hovering over a width duck
+#define DUCK_COLOR_WIDTH_TEXT_2 Gdk::Color("#ff00ff") // the color of the text when hovering over a width duck
+
/* === T Y P E D E F S ===================================================== */
/* === C L A S S E S & S T R U C T S ======================================= */