cfeng
(cfeng)
#1
I’m trying to change the default icons used in halo, and i has created a new theme follow “Creating a Custom Theme”:

styles.scss:
@import "ruler-defaults";
@import "ruler";
.ruler {
@include ruler;
}
ruler.scss:
@import "../halo/halo";
@mixin ruler {
@include halo;
}
ruler-defaults.scss:
@import "../halo/halo-defaults";
app-component.scss:
@import "../ruler";
@mixin com_haulmont_cuba {
@include ruler;
}
in my ruler-theme.propertis file i change add and create action icon:
@include=halo-theme.properties
cuba.web.icons.add.png = font-icon:PLUS
cuba.web.icons.create.png = font-icon:PLUS
in my web-app.properties:
cuba.web.theme = ruler
cuba.themeConfig = /com/jmyd/jms/web/ruler-theme.properties
when i start the system ,the icon “FILE_O” is not replaced by “PLUS”:

tsarev
(Daniil Tsaryov)
#3
Hello, @cfeng
Could you clarify what version of CUBA.platform do you use?
Regards,
Daniil.
cfeng
(cfeng)
#5
hi Daniil
i am using the platform-6.8.5
tsarev
(Daniil Tsaryov)
#7
Okay, thank you.
To override icons for default actions you should use the following values in ruler-theme.properties file:
icons.ADD = font-icon:PLUS
icons.CREATE = font-icon:PLUS
Regards,
Daniil.
cfeng
(cfeng)
#9
thank you Daniil.
i have change value as you tell me in ruler-theme.properties file:

it not work for me , the default icon not be replace:

Daniil thank you , do you have any other suggest?
tsarev
(Daniil Tsaryov)
#10
Could you share you test project to investigate the problem?