This is a migrated thread and some comments may be shown as answers.

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

3 Answers 80 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 2
Joel asked on 16 Dec 2009, 06:34 PM
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

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 17 Dec 2009, 07:05 AM
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.
0
Joel
Top achievements
Rank 2
answered on 17 Dec 2009, 05:08 PM
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 

0
Martin
Telerik team
answered on 18 Dec 2009, 07:34 AM
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.
Tags
FormDecorator
Asked by
Joel
Top achievements
Rank 2
Answers by
Martin
Telerik team
Joel
Top achievements
Rank 2
Share this question
or