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

Custom Icon in Nova theme is black

5 Answers 134 Views
Window
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 21 Aug 2016, 10:49 AM

Hi,

I make a simple dialog with the k-i-tick  Icon as OK replacement:

Dojo: Simple Dialog

All work fine, only the tick icon is black. But in Nova theme the icons are white.

It is possible to show the tick icon also in white?

Peter

 

5 Answers, 1 is accepted

Sort by
0
Accepted
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 22 Aug 2016, 08:35 PM
Hello Peter,

The tick icon in the Nova theme is actually black.  But you can use another icon of your choice by using CSS and changing the background image.

Here's how I changed the tick icon to Material Black(which is white):
<style>
  .k-i-tick{
  }
</style>

You can see an example in the Kendo UI Dojo by Progress.

Hope this helps!

Regards,
Patrick
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Peter
Top achievements
Rank 1
answered on 23 Aug 2016, 10:33 PM

Hi Patrick,

in Dojo it works fine. But not in in my _Layout.cshtml or view.cshtml.

I found also MaterialBlack/sprite.png in the project folder, so I tested also

<style>
 .k-i-tick{
        background-image: url(~/Content/kendo/2016.2.607/MaterialBlack/sprite.png);
}
</style>

But it has also no effect.

Peter

 

0
Accepted
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 24 Aug 2016, 03:02 PM
Hi Peter,

Use this instead in your Kendo UI MVC application:
<style>
    .k-i-tick {
        background-image: url(Content/kendo/2016.2.607/MaterialBlack/sprite.png);
    }
</style>

Hope this helps!

Regards,
Patrick
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Peter
Top achievements
Rank 1
answered on 25 Aug 2016, 11:46 AM

thank you. Perfect, after I placed it behind the link & src statements.

Peter

0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 25 Aug 2016, 02:49 PM
Hello Peter,

Glad everything is working well!  

Regards,
Patrick
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Window
Asked by
Peter
Top achievements
Rank 1
Answers by
Patrick | Technical Support Engineer, Senior
Telerik team
Peter
Top achievements
Rank 1
Share this question
or