The culprits:

  QColor lineColor = (type==1)?config.TermHigh.color:config.EditHigh.color;
  QColor fillColor = (type==1)?config.TermHigh.color:config.EditHigh.color;

in bedit.cpp 
(http://www.jsoftware.com/gitlist/qtide.git/blob/master/lib/base/bedit.cpp#L48
and 
http://www.jsoftware.com/gitlist/qtide.git/blob/master/lib/base/bedit.cpp#L68).

Since Term has Bedit type 0
(http://www.jsoftware.com/gitlist/qtide.git/blob/master/lib/base/tedit.cpp#L22)
and Edit has type 1
(http://www.jsoftware.com/gitlist/qtide.git/blob/master/lib/base/nedit.cpp#L16),
these should read:

  QColor lineColor = (type==0)?config.TermHigh.color:config.EditHigh.color;
  QColor fillColor = (type==0)?config.TermHigh.color:config.EditHigh.color;

(It might also be worth factoring fill colour selection into a private
member function given the repetition.)

On Mon, Aug 19, 2013 at 12:05 PM, Marc Simpson <[email protected]> wrote:
> The editor currently draws its highlight colour from the terminal section of
> the configuration file (style.cfg) and vice versa.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to