Andre Poenitz wrote: > Since when need hacks to fit in some scheme?
I learned that your code is always very consistent, so I could not imagine that it was such a hack ;-) > How do you edit colors? Via the "dialog-show character" lfun. Or do you mean that you need a method to edit them directly without any dialog? > If things are only to be hidden, a proper string member instead of > cell(0) is in order. The 'problem' is, that such things are non-editable > then. If we want the colors to be editable as "normal" text we should not use a color inset at all IMO. Then "math ERT" is better, because it is not confusing, and you know that you are on your own concerning invalid colors. > Of course, creating a context menu on right-click which a combo box of > all available colors is a matter of 20 lines or so in 'pure' Qt, but I > really don't know how to set this up in LyX's GUII scheme. That would be nice (actually for most other math insets, too), but is not strictly necessary here because we have the lfun. Would you be fine with the solution that removes cell(0) completely and stores the color in an extra string? Georg