Is there a list of fonts and font colors for skins?

4 posts, 0 answers
  1. Joel
    Joel avatar
    166 posts
    Member since:
    Oct 2006

    Posted 16 Dec 2009 Link to this post

    I am new to formdecorator and am really impressed with  the functionality it offers. 

    I have an application where the skin will be selectable by each client and I am offering all the skins in that selection process.  I am running into problems with asp:label and understand it is out of scope for the skins because how it is rendered.  Is there a list of fonts and font colors used in each skin so I can set them programatically based off of the chosen skin?

    Thanks.

    -Joel
  2. Martin
    Admin
    Martin avatar
    585 posts

    Posted 17 Dec 2009 Link to this post

    Hi Joel, 

    You are right - as <asp:label /> renders <span /> elements, it is out of the scope of RadFormDecorator. On your question about the color charts - unfortunately we do not keep such lists, but you can easily choose any color, font or other CSS settings by using IE Dev ToolBar, FireBug or other diagnostics tool or color picker. Another approach is to directly view what you are interested in [RadControlsInstallationRoot]/Skins/ where the uncomplied skins of RadControls are.
     
    Best wishes,
    Martin Ivanov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Joel
    Joel avatar
    166 posts
    Member since:
    Oct 2006

    Posted 17 Dec 2009 Link to this post

    Thank you Martin.  It appears the font for all the skins is "Segoe UI"

    Here is the sub I built to handle labels so they match the RadNumericTextbox etc label strategy.  In case anyone else stumbles on this from a search.   Font-Size="9" by default, but I didn't want that in here since I have labels of all sizes for headers etc.


     
      Public Sub SkinLabel(ByRef _Label As Label, ByVal _Skin As String) 
            _Skin = LCase(_Skin) 
            With _Label 
                .Font.Name = "Segoe UI" 
                .ForeColor = Drawing.Color.Black 
            End With 
     
            Select Case _Skin 
                Case "black" 
                    With _Label 
                        .ForeColor = Drawing.Color.White 
                    End With 
                Case "office2007", "sunset", "web20" 
                    With _Label 
                        .ForeColor = Drawing.Color.FromArgb(98, 98, 98) 
                    End With 
            End Select 
        End Sub 

  5. Martin
    Admin
    Martin avatar
    585 posts

    Posted 18 Dec 2009 Link to this post

    Hello Joel,

    Thank you for this. Just an idea that came to my mind in the course of your requirements. One can add relatively easy styling for <span /> or any other HTML element for each skin of RadFormDecorator by using the skin-specific CSS class of the control. Here it is:

    .RadForm_Vista span
    {
        color: red;
    }

    .RadForm_Sunset span
    {
        color: green;
    }


    ... etc.

    Have a great weekend,
    Martin Ivanov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top