comparison libgui/src/m-editor/file-editor-tab.cc @ 19215:e85203f41402 gui-release

set cursor color of the editor to color of default text (bug #43314) * file-editor-tab.cc (update_lexer): set color of cursor and of indentation guide to the default styles color of the lexer
author Torsten <ttl@justmail.de>
date Sun, 28 Sep 2014 17:30:38 +0200
parents 2e6b34324d50
children 85b2d669c21e
comparison
equal deleted inserted replaced
19214:a748865bfafb 19215:e85203f41402
558 } 558 }
559 559
560 lexer->readSettings (*settings); 560 lexer->readSettings (*settings);
561 561
562 _edit_area->setLexer (lexer); 562 _edit_area->setLexer (lexer);
563 _edit_area->setCaretForegroundColor (lexer->color (0));
564 _edit_area->setIndentationGuidesForegroundColor (lexer->color (0));
563 565
564 // fix line number width with respect to the font size of the lexer 566 // fix line number width with respect to the font size of the lexer
565 if (settings->value ("editor/showLineNumbers", true).toBool ()) 567 if (settings->value ("editor/showLineNumbers", true).toBool ())
566 auto_margin_width (); 568 auto_margin_width ();
567 else 569 else