[CLOSED] Desktop.ShortcutTextColor through code doesn't change Hoover underline color

  1. #1

    [CLOSED] Desktop.ShortcutTextColor through code doesn't change Hoover underline color

    As I explain in the title. :)

    I'm using the same app for several customers who are getting their own wallpaper and desktoptext color. But..the hoover color for the underline is not the changedt color I set:

    MyDesktop.ShortcutTextColor = "black"
    // no option to set MyDesktop.ShortcutTextHoover = "black"
    Any idea ?

    Martin
    Last edited by Daniil; May 02, 2011 at 10:38 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Yes, unfortunately, there is no such property.

    I would suggest you to set respective css styles for both things.

    Example
    <style type="text/css">
        .x-shortcut-text {
            color: black;
        }
        #x-shortcuts dt a:hover {
            color: black;
        }
    </style>
    To set it from code behind please use:

    Example
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!X.IsAjaxRequest)
        {
            ResourceManager.GetInstance().RegisterClientStyleBlock(
                "someId",
                @"#x-shortcuts dt a:hover {
                    color : black;
                }
                .x-shortcut-text {
                    color: black;
                }"
            );
        }
    }
  3. #3
    Thanks Daniil,

    Will use this code

    Martin

Similar Threads

  1. Replies: 1
    Last Post: Nov 24, 2011, 9:02 PM
  2. change color
    By oseqat in forum 1.x Help
    Replies: 10
    Last Post: Aug 29, 2011, 5:44 PM
  3. Replies: 3
    Last Post: Apr 15, 2011, 8:12 AM
  4. Replies: 12
    Last Post: Jun 17, 2009, 12:07 PM
  5. [CLOSED] EXT:DESKTOP - TaskBar Theme/Color
    By Emre in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 25, 2008, 12:45 PM

Posting Permissions