change default list text color? (1 Viewer)

2BitSculptor

Super Moderator
  • Team MediaPortal
  • January 23, 2008
    1,972
    519
    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.

    thanks

    Chuck

    ---- 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.
     

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    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.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    <unfocusedAlpha>XXX</unfocusedAlpha>

    Where XXX = 0 - 255

    0 being completely transparent
    255 being completely opaque.
     

    rkooten

    Portal Pro
    August 3, 2008
    101
    27
    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:

    Code:
      <textcolor>FF808080</textcolor>
      <textcolor2>FF808080</textcolor2>
      <textcolor3>FF808080</textcolor3>

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

    And specify the color of selected items like this:

    Code:
      <selectedColor>FFFFFFFF</selectedColor>
      <selectedColor2>FFFFFFFF</selectedColor2>
      <selectedColor3>FFFFFFFF</selectedColor3>

    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:

    Code:
        [XMLSkinElement("textcolor")]
        protected long _textColor = 0xFFFFFFFF;
        [XMLSkinElement("textcolor2")]
        protected long _textColor2 = 0xFFFFFFFF;
        [XMLSkinElement("textcolor3")]
        protected long _textColor3 = 0xFFFFFFFF;
        [XMLSkinElement("selectedColor")]
        protected long _selectedColor = 0xFFFFFFFF;
        [XMLSkinElement("selectedColor2")]
        protected long _selectedColor2 = 0xFFFFFFFF;
        [XMLSkinElement("selectedColor3")]
        protected long _selectedColor3 = 0xFFFFFFFF;
     

    Users who are viewing this thread

    Top Bottom