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

Messages - Grzyboleusz

#1
It worked. For some reason I thought theme loads all classes when it's constructed. Thanks again.  ;D
#2
Tried theme->getProperty("Invalid", "TextColor"). Still returns empty string, maybe bug. Checked couple of times for typos. Looks like I'll have to reload widget.
Thanks for quick answer.  :)
#3
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);
}