p4b4
p4b4

Reputation: 105

Changing ExtJS Images

I created a theme which extends the ext-theme-classic, but I want to use the neptune-theme images for tools, sliders etc. I copied the neptune-theme images folder into my resources folder and changed the

$relative-image-path-for-uis

to this directory, but it doesn't work. Where's my mistake?

Upvotes: 0

Views: 789

Answers (1)

wonu wns
wonu wns

Reputation: 3608

The problem here might be the image file type.

Example: ext-theme-classic form images use .gif while ext-theme-neptune uses .png. So if you want to use neptune's form images, copy the images to your custom theme then find an image editor and change its file type from png to gif.

Or you need to override Component.scss (sass/var/) then set the following:

from:

$image-extension: 'gif' !default;

to:

$image-extension: 'png' !default;

Note: I haven't actually tried the second option but I think it should work :)

Upvotes: 2

Related Questions