Page 1 of 1

what is the best way to create themes for an app?

Posted: Tue Feb 03, 2015 5:09 am
by keram
Hello,

I'd like to create 3 different themes for an Android app. Right now I'm doing it this way for the icons, fonts etc:

1. in the button choosing the theme: put 1172 into gIcon1
then setTheTheme command and under the setTheTheme when opening the stack:
set the icon of btn "fav" to gIcon1

2. I have custom property cIcon1 and global gIcon1 to save and load the icon preferences
on opening the stack: put the cIcon1 of stack PrefsFile into gIcon1 ( PrefsFile is a file with saved preferences)
set the cIcon1 of stack PrefsFile to gIcon1

This works OK, but is there any other, more quick or simpler way to set up themes in the apps?


I had a look at Property Profiles and tried this:
2015-02-03_141945.png
2015-02-03_141945.png (7.6 KiB) Viewed 4483 times
then when I try to set the icon's ID number I get this:
2015-02-03_142411.png

It does not seem to work properly... or am I doing something wrong?

Another question: Is there a way to set the background of a Data Grid to an image (jpg file)?

Thanks for any help with the above.

keram

Re: what is the best way to create themes for an app?

Posted: Tue Feb 03, 2015 5:45 pm
by keram
No one knows any better way?

Perhaps at least someone can tell me why is there a 0 in the second image when I chose icon in the theme2??? It should be icon and not 0 and it should accept an ID for any icon. Is that a bug?

keram

Re: what is the best way to create themes for an app?

Posted: Tue Feb 03, 2015 6:44 pm
by Klaus
Hi Keram,

I never worked with "Profiles" and now I know why :D

Just made a short test and that is definitively NOT how it is supposed to work!
When I select "icon" as a property in the "Profiles" section, then I also exspect that "icon"
to appear in the "property" section and not "0"!?

I consider this a bug, or this feature must have the most un-intuitive UI in the world :D


Best

Klaus

Re: what is the best way to create themes for an app?

Posted: Wed Feb 04, 2015 1:26 am
by keram
Thanks Klaus,

Bug submitted here:
http://quality.runrev.com/show_bug.cgi?id=14495

keram

Re: what is the best way to create themes for an app?

Posted: Wed Feb 04, 2015 6:05 pm
by jmburnod
Hi Keram,
As Klaus, I never worked with LC Profiles.
To get a same result I use global variables or customproperties
for colour, ref files for images and all properties that you want change.
Best regards
Jean-Marc

Re: what is the best way to create themes for an app?

Posted: Wed Feb 04, 2015 6:26 pm
by keram
Thanks Jean-Marc,

Yes, I'm also using global variables and custom properties but the Profiles feature looked to me more elegant and simpler but not when it's buggy of course.

keram