How do I retain my Custom Colours between sessions?

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
KimD
Posts: 225
Joined: Wed Jul 08, 2015 5:51 am

How do I retain my Custom Colours between sessions?

Post by KimD » Mon Nov 30, 2015 10:41 pm

Sorry, I suspect that this will turn out to be a daft question, but I can't work out how to retain my Custom Colours between LiveCode sessions.

I have the app that I'm developing. I go through and carefully define the Custom Colours that I want using the IDE (Property Inspector / Colours & Patterns / Custom Colours / Define Custom Colour)
- if I save my app, close it, then re-open it in the SAME IDE SESSION of Livecode - the custom colours that I've defined are still shown in the Custom Colour section of the Colours window. All good so far.
- but if I save my app, then exit LiveCode, then re-open the Livecode IDE and the app that I'm working on - the custom colours that I've defined are all gone. Each object within the app still has the correct colour, but if I want to assign the same colour to a new object then I've got to repeat the process of defining that colour manually.

How do I retain my Custom Colour palette between Livecode sessions? I have tried playing around with the "Lock Palette" button, but I can't work out what effect it is having - and my custom colour palette is lost between sessions in both "locked" and "unlocked" modes.

Thanks in advance

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: How do I retain my Custom Colours between sessions?

Post by dunbarx » Mon Nov 30, 2015 11:06 pm

Hi.

I am still in 6.7.7, so I do not see the "Custom Colours / Define Custom Colour" you mention in the inspector. Where are the colors stored or assigned? Controls themselves (and their properties) are indeed saved between sessions.

But in any case, if this "property" is saved as a custom property, you can get it back in the next session.

Is this close to what you might find helpful?

Craig Newman

KimD
Posts: 225
Joined: Wed Jul 08, 2015 5:51 am

Re: How do I retain my Custom Colours between sessions?

Post by KimD » Tue Dec 01, 2015 12:11 am

Hi

I'm using Livecode 7.1, on Windows 7

When I go into the Property Inspector for an object,
- I select Colours and Patterns
- Then Foreground Colour (sorry - I missed this step in my earlier description); then I'm looking at the Colours pop-up window
- I select one of the 16 black Custom Colour slots
- I select Define Custom Colours
- I fill in the RGB values that I want
- I select Add To Custom Colours
- I select OK
- later I choose File > Save, to save my Livecode project

This has the effect of saving the Custom Color (making it available in the Custom Colours palette on the Color window), but only for this session of Livecode. I'm trying to find out how I re-gain access to this same palette of custom colours after I start a new session of Livecode. It's just starting to get pretty tedious re-defining the same Custom Colours every day ;-)

Thanks in advance

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: How do I retain my Custom Colours between sessions?

Post by dunbarx » Tue Dec 01, 2015 5:56 am

Hi.

I am not quite seeing the options you describe. I tried with my copy of v.7.1. I am on a Mac.

But when I create several custom colors, they survive sessions.

A Windows thing?

Craig

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: How do I retain my Custom Colours between sessions?

Post by SparkOut » Tue Dec 01, 2015 8:35 am

Ah, no wonder. This has been the same for me forever. I thought it was one of those things that everyone just got used to bumbling along with, on whatever platform.
When I make a custom colour that I want to resuse, I will make a custom property containing the rgb values and "set the [back/text]color of ..." when the stack initialises, or for continued ide work I can always look up the custom property and set the colour again manually in the PI

KimD
Posts: 225
Joined: Wed Jul 08, 2015 5:51 am

Re: How do I retain my Custom Colours between sessions?

Post by KimD » Tue Dec 01, 2015 6:57 pm

Thanks both. At least I now know that it is not just something that I'm doing wrong.

Would it be worth me logging this as a bug or does RunRev already know about it?

Post Reply