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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

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

Post by keram » Tue Feb 03, 2015 5:09 am

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 4482 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
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

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

Post by keram » Tue Feb 03, 2015 5:45 pm

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
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus » Tue Feb 03, 2015 6:44 pm

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

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

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

Post by keram » Wed Feb 04, 2015 1:26 am

Thanks Klaus,

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

keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

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

Post by jmburnod » Wed Feb 04, 2015 6:05 pm

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
https://alternatic.ch

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

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

Post by keram » Wed Feb 04, 2015 6:26 pm

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
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

Post Reply