On Wed, Sep 17, 2008 at 11:08 PM, Corey O'Connor <[EMAIL PROTECTED]> wrote:
> I think this introduced a regression in highlighting when using the
> darkBlueTheme.  When using VTY much of the background shows up as white now.
> When using GTK the error "Can't parse color 'default'" is printed to the
> console and the highlighting is incorrect.
>
> I'm having a hard time tracking down what is wrong because I'm unsure what
> "default" and "reverse" mean now. For instance, what's the Attributes {
> foreground = Default ; background = Reverse } mean? I think the meaning of
> Default and Reverse now depends on the window property of a UIStyle:
>   - A Default foreground is the foreground attribute of the window style
>   - A Reverse foreground is the background attribute of the window style.
>   - A Default background is the background attribute of the window style.
>   - A Reverse background is the foreground attribute of the window style.

"default" indicates the default color settings as defined by the
toolkit or terminal.
(Note that this makes sense for both foreground and background, separately.)

I'm not exactly sure what "reverse" should mean; but probably the default
selection colors as defined by the toolkit, or default reverse colors
of the terminal.
(It might not make sense to separate "reverse" for fg and bg)

> I think this would resolve the issues with the darkBlueTheme. However this
> complicates the conversion of a Color to a GTK Color or VTY Color as now the
> conversion depends on the window style attributes.

If you want to define styles in terms of the "window" style, you should do so
in the theme, by referencing "window self"

I hope this makes sense,
-- JP

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to