Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Grzyboleusz

#1
Hello.

I would like to get the "TextColor" property of "EditBox.Invalid" and use it in editbox widget after i check if it's valid. Tried theme->getProperty(... , "TextColor") with "EditBox.Invalid", "Invalid.Editbox", with lowercase but none of them works. Is there some other way to get that or you can' get "subclasses" properties at all with this method? It would be great to do it this way cause I'd like to keep all style data in same file. Maybe I have to reload the widget with "Invalid" class?

Here's my theme file:

Code (css) Select

EditBox {
    BackgroundColorNormal       : rgba(69, 69, 69, 255);
    BackgroundColorHover        : rgba(69, 69, 69, 255);
    TextColor                   : rgba(190, 190, 190, 255);
    SelectedTextColor           : rgba(255, 255, 255, 255);
    SelectedTextBackgroundColor : rgba(255, 100, 0, 255);
    DefaultTextColor            : rgba(190, 190, 190, 255);
    CaretColor                  : rgba(190, 190, 190, 255);
    Padding                     : (3, 0, 3, 0);
}

EditBox.Invalid {
    BackgroundColorNormal       : rgba(69, 69, 69, 255);
    BackgroundColorHover        : rgba(69, 69, 69, 255);
    TextColor                   : rgba(192, 26, 26, 255);
    SelectedTextColor           : rgba(255, 255, 255, 255);
    SelectedTextBackgroundColor : rgba(255, 100, 0, 255);
    DefaultTextColor            : rgba(190, 190, 190, 255);
    CaretColor                  : rgba(190, 190, 190, 255);
    Padding                     : (3, 0, 3, 0);
}