change default list text color? (1 Viewer)


Super Moderator
  • Team MediaPortal
  • January 23, 2008
    South Central Wisconsin
    Home Country
    United States of America United States of America
    Where can I change the focused color for text displayed in a list..... not the <selectedcolor> but the one when the text is 'focused'. I want to highlight the 'focused' item to emphasize it in the list... and have the remaining items in the list a darker color.

    I don't see that there is a <textcolorFocus> option, and <textcolorNoFocus> works fine in normal buttons and menus, but not in the lists.



    ---- edit

    I'm still learning this stuff...... so I may have missed something that isn't clearly documented.

    --- edit

    I noticed that when you change the alpha value part of a <textcolor> that the 'focus' color does indeed change, but to that with the alpha value, while the unfocused text is unaffected by the alpha value. On a dark background, I think the reverse would be needed, or be able to set different colors for the focused/unfocused text.


    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    Himalayas, India
    Home Country
    Canada Canada
    I would also like to know this! Although for a different reason. I need to change the default color of 'watched' items because I can barely read the blue text on blue background! I tried changing the 'playedcolor' in the default list control in references.xml but I can't find where to change the focussed color. When Highlighted, I seem to be able to control only the opacity.


    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    Home Country
    Australia Australia

    Where XXX = 0 - 255

    0 being completely transparent
    255 being completely opaque.


    Portal Pro
    August 3, 2008
    Home Country
    Changing unfocused alpha changes transparancy of the entire item, including its texture. According to the wiki it should be done like this: change textcolor in lists without affecting alpha:


    ...each targeting the code of the three label items.

    And specify the color of selected items like this:


    This doesn't work however. I think specifying colors in listcontrols is bugged.

    This is from the source, so the wiki does mention the correct tags:

        protected long _textColor = 0xFFFFFFFF;
        protected long _textColor2 = 0xFFFFFFFF;
        protected long _textColor3 = 0xFFFFFFFF;
        protected long _selectedColor = 0xFFFFFFFF;
        protected long _selectedColor2 = 0xFFFFFFFF;
        protected long _selectedColor3 = 0xFFFFFFFF;

    Users who are viewing this thread

    Top Bottom