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

Using icons with Flat theme

3 Answers 175 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Henry
Top achievements
Rank 1
Henry asked on 10 Aug 2016, 11:47 AM

We've been using different themes for our application, and are having some trouble with the "Flat" theme.

When adding icons to widget contents (ex. Kendo Window), the icons don't show up. Reason seems simple: both icons and widget background are white. :)

This can be seen easily in the icons demo page (switch to Flat theme):

http://demos.telerik.com/kendo-ui/styling/icons

Any plans to make Flat theme work the same way as other themes, or any workarounds for this?

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 12 Aug 2016, 11:21 AM
Hi Henry,

Currently, Kendo UI widgets use sprites for their icons and in the Flat theme most of the icons are white. In order to avoid the issue I would suggest setting some background to the icons which are directly placed within a Window. Take a look at this dojo and let me know if this fits the current requirements.

Regards,
Iliana Nikolova
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Henry
Top achievements
Rank 1
answered on 17 Aug 2016, 10:48 AM

Hi Iliana,

and thanks for the suggestion.

Our app has theme selection enabled, so it needs to look good with any theme. Any hardcoded background colors would be a problem.

Just for info, I was trying out some of the predefined css classes (ex. "k-block") to color the icon background, depending on the theme. It's close to working good, but not quite. Do you know if there are better choices for that?

0
Iliana Dyankova
Telerik team
answered on 19 Aug 2016, 08:21 AM
Hi Henry,

I believe that using the k-block class for setting background is OK. For your conveniece here is the modified dojo.

Regards,
Iliana Nikolova
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
General Discussions
Asked by
Henry
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Henry
Top achievements
Rank 1
Share this question
or