[snip]
> The only two colors in leoSettings (in syntax coloring nodes) that
> are black are 'tab_color' and 'operator_color'.
This is already on the action items list, so I'll get around to
looking at this soon.
Edward
> Is Leo
> responsible for creating headline editor in both cases (double click
> and keyboard shortcut) or may be PyQt is responsible for creating
> double click editor? If so, how can we tell PyQt to respect our color
> settings? As mater of fact, double click created editor looks fine.
> The other one does not.
Strange. Both editors look identical for me.
Leo never creates an outline editor directly. Instead, the qt gui
code gets the editor by calling getTreeEditorForItem::
def getTreeEditorForItem(self,item):
'''Return the edit widget if it exists.
Do *not* create one if it does not exist.'''
w = self.treeWidget
e = w.itemWidget(item,0)
return e
In all cases, at least on Windows 7, but probably also on Linux, the
editor is a QLineEdit. Thus, the stylesheet should definitely apply.
You might want to put a call to g.trace(e) in getTreeEditorForItem to
see what widget you are actually getting.
HTH.
Edward