From 59a20921ea746a9905be515ac6e44a7ee3f97bb9 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 24 Jun 2008 02:12:10 +0000 Subject: [PATCH] use light blue for text selection, at least until we can do inversion again --- src/text-context.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/text-context.cpp b/src/text-context.cpp index 4e1fa87e1..4b25deb93 100644 --- a/src/text-context.cpp +++ b/src/text-context.cpp @@ -1577,7 +1577,9 @@ static void sp_text_context_update_text_selection(SPTextContext *tc) for (unsigned i = 0 ; i < quads.size() ; i += 4) { SPCanvasItem *quad_canvasitem; quad_canvasitem = sp_canvas_item_new(sp_desktop_controls(tc->desktop), SP_TYPE_CTRLQUADR, NULL); - sp_ctrlquadr_set_rgba32(SP_CTRLQUADR(quad_canvasitem), 0x000000ff); + // FIXME: make the color settable in prefs + // for now, use semitrasparent blue, as cairo cannot do inversion :( + sp_ctrlquadr_set_rgba32(SP_CTRLQUADR(quad_canvasitem), 0x00777777); sp_ctrlquadr_set_coords(SP_CTRLQUADR(quad_canvasitem), quads[i], quads[i+1], quads[i+2], quads[i+3]); sp_canvas_item_show(quad_canvasitem); tc->text_selection_quads.push_back(quad_canvasitem); -- 2.30.2