Page 1 of 2

Custom button icons not appearing on execution

Posted: Mon Jul 13, 2015 11:35 am
by Angel Garcia

I want to use custom icons in my app but it not showing in test view.

I have established the following classes name in the right panel of the screen:
menubutton ui-btn-icon-left ui-icon-my_home

And this is my custom CSS:
.ui-icon-my_home:after {
background-image: url('../image/icon-home.png');
background-repeat: no-repeat;
background-size: contain !important;
}

Buttons' appearance is this in design view:
Image

But when I test my app I have this:
Image

How can I solve this issue?


Custom button icons not appearing on execution

Posted: Mon Jul 13, 2015 12:53 pm
by Evgene Karachevtsev

Hello Angel,

Please add 'weight' to your rules. Also as an option you may use an image as a button, maybe this will be easier in your case.


Custom button icons not appearing on execution

Posted: Tue Jul 14, 2015 8:10 am
by Angel Garcia

Hello Evgene,

Does exists any CSS rule called "weight" or are you refering to font-weight? I don't see this rule.

Thanks.


Custom button icons not appearing on execution

Posted: Tue Apr 05, 2016 10:08 am
by John7876801

Hello guys,

Same issue here: the custom icon appears properly in the visual app builder, but I still see the "standard" icon when running the app (both on the computer and on the phone). Is there any quick fix?

Thanks!
john


Custom button icons not appearing on execution

Posted: Tue Apr 05, 2016 11:52 am
by Evgene Karachevtsev

Hello John,

Please clarify, do you use some CSS rules to show custom icons? Please show us the code in this case.


Custom button icons not appearing on execution

Posted: Tue Apr 05, 2016 12:17 pm
by John7876801

Hi Evgene,

yes, I am using the following CSS rule on button class "alohaBtn":

.alohaBtn.ui-btn:after {
background-image: url("../image/aloha.png");
background-size: 90% 60%
}

Best,
john


Custom button icons not appearing on execution

Posted: Tue Apr 05, 2016 1:45 pm
by Evgene Karachevtsev

John,

Please try the same advise - add 'weight' to your rules, for example with code!important/code, maybe original Appery.io css rules 'overweight' yours.


Custom button icons not appearing on execution

Posted: Tue Apr 05, 2016 2:20 pm
by John7876801

Thanks Evegeny! Do you mean font-weight? Like in the code below? Didn't work...

.alohaBtn.ui-btn:after {
background-image: url("../image/aloha.png");
background-size: 90% 75%;
font-weight: 16px !important
}


Custom button icons not appearing on execution

Posted: Tue Apr 05, 2016 8:25 pm
by Serhii Kulibaba

Hello John,

Please remove class "alohaBtn" from the CSS selector.
Your CSS should be like that:
pre.ui-btn:after {
background-image: url("../image/aloha.png");
background-size: 90% 75%;
font-weight: 16px;
}/pre


Custom button icons not appearing on execution

Posted: Wed Apr 06, 2016 5:39 am
by John7876801

Hi Sergyi,

I don't understand... I only want to use that custom icon for one specific button, not for all of them!

Cheers,
john