Managing colour selection on Windows
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 270
- Joined: Sat Aug 16, 2008 9:48 am
- Location: Stockholm, Sweden
- Contact:
Re: Managing colour selection on Windows
Thanks Stam, that is a good resource to reuse parts of in the tool I need to build.
I notice now that also Apple's colour picker lacks the ability to save custom colours. So that's definitely something I will want to include.
I think I'm on to something regarding hijacking the colour picker trigger in the IDE:
Code: If I intercept that "answer color" line and divert it to my own palette, and return the RGB code, then all should be fine, right?
(Said the colourblind brain surgeon janitor, just before putting the patient under... )
I notice now that also Apple's colour picker lacks the ability to save custom colours. So that's definitely something I will want to include.
I think I'm on to something regarding hijacking the colour picker trigger in the IDE:
Code: If I intercept that "answer color" line and divert it to my own palette, and return the RGB code, then all should be fine, right?
(Said the colourblind brain surgeon janitor, just before putting the patient under... )
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
WhenInSpace: https://wheninspace.se/en
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
WhenInSpace: https://wheninspace.se/en
-
- VIP Livecode Opensource Backer
- Posts: 114
- Joined: Fri Apr 28, 2006 12:10 am
- Location: Seattle
Re: Managing colour selection on Windows
I too made my own that allows saving color sets (by project name or whatever). It's called ColorPiquer and is available in Sample Stacks or here:
HTH,
Roger
HTH,
Roger
-
- Livecode Opensource Backer
- Posts: 9477
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
-
- VIP Livecode Opensource Backer
- Posts: 270
- Joined: Sat Aug 16, 2008 9:48 am
- Location: Stockholm, Sweden
- Contact:
Re: Managing colour selection on Windows
NOW WE'RE TALKING! Great stuff, Roger!
I really should browse the Sample Stacks more often. It's just that the viewer in the IDE is so slow and bad at filtering/searching. I searched just now for "color", and ColorPiquer does not even turn up... So, thanks for the direct link!
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
WhenInSpace: https://wheninspace.se/en
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
WhenInSpace: https://wheninspace.se/en
Re: Managing colour selection on Windows
Not sure what you did there - I’ve been using this to nearly two years and never saw this. Bernd very kindly intervened recently with some changes and reported no such issues either issues.
Any chance of more info than just “ouch”?
I cannot replicate this in any way so any explanation on how you got this error would be helpful...
To be clear, this isn't a "colour picker" as such, it's just a tool to access LiveCode's colorName constants, copy their names or RGB values to insert in script.
Last edited by stam on Fri Dec 02, 2022 8:04 pm, edited 2 times in total.
Re: Managing colour selection on Windows
That’s not correct. It’s good to have cross platform identical solution of course. But your comment about Apple’s colour picker not saving custom colours is completely wrong I’m afraid
Just pull down the bottom drawer and it will reveal any number of storage slots for colours. I use it ALL the time. The screenshot below is from a new machine, where haven't really stored that many colours yet... So if that is your motivation (and not a cross-platform solution like Roger's impressive stack) maybe have another look at the Apple picker... if you think about it, do you really think Apple, as a premier design platform, wouldn't cater for this?
S.
-
- VIP Livecode Opensource Backer
- Posts: 270
- Joined: Sat Aug 16, 2008 9:48 am
- Location: Stockholm, Sweden
- Contact:
Re: Managing colour selection on Windows
Ah, you are quite right! I was really wondering what all those little slots were for, when clicking them cause nothing to happen. But I see now that you drag'n'drop colours to them! Just like how Roger's tool works. OK, that's one more lesson learned today! Great!
However, it's the Windows deficiencies in the area that are my main headache.
And even with Roger's tool I'm not yet at 100% developer satisfaction. What I additionally need (on both platforms really) is this:
When designing software for some clients, I'm provided with their CVI policy (Corporate visual identity), which includes detailed colour specifications with RGB values. Often such colour choices match no named LC colour (or I can't remember it anyway), so I enter the RGB values each time.
Thus, I'd like to save the colour, and give it a custom name, such as "Volvo blue", or "IKEA yellow", or "Government accent red" etc (no, not actual clients of mine ) So that I can easily pick the correct one, even after not having worked on a project for a while. I have a simple text doc list now, or even store them as custom props sometimes, but it would be easier to have a tailor-made colour picker that makes it a one-click business for me.
This thread has given me some great resources and ideas, and so saved me a lot of time in chiselling out my ideal colour management tool.
I've really come to appreciate the spirit of Andre Garzia, who wrote a whole book on the virtues of building your own developer/project tools ("Development Oriented Development"). Time invested now will be saving so much time later.
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
WhenInSpace: https://wheninspace.se/en
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
WhenInSpace: https://wheninspace.se/en
Re: Managing colour selection on Windows
For colour schemes like that if usually define functions in a back script (eg IkeaYellow() that returns the RGB).
Shouldn’t too hard to create a stack that does that though…
Regarding development oriented development - I do that regularly and share stacks on sample stacks/livecodeshare. More and more though I’m putting these on GitHub - even if free, a licence should be attached, even if it’s an MIT licence (free use in every sense, only requirement is that the licence follows any distribution).
And then of course it increases exposure for the platform as well. At some point maybe the mothership will do the required to get LiveCodeScript to be recognised as an official language on GitHub….
Shouldn’t too hard to create a stack that does that though…
Regarding development oriented development - I do that regularly and share stacks on sample stacks/livecodeshare. More and more though I’m putting these on GitHub - even if free, a licence should be attached, even if it’s an MIT licence (free use in every sense, only requirement is that the licence follows any distribution).
And then of course it increases exposure for the platform as well. At some point maybe the mothership will do the required to get LiveCodeScript to be recognised as an official language on GitHub….
-
- Livecode Opensource Backer
- Posts: 9477
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Managing colour selection on Windows
Re: "ouch"; that was with LC 8.1.10 on Mac OS 10.7.5
I try to test it this weekend with something a bit more uptodate.
HOWEVER, am in the process if setting up a schoolroom with repurposed computers in a repurposed hospital that is now a living space for well skint Ukrainian refugees to teach ESL for nix to the kids there on my days off, so, LC matters will take fourth place for now after my ESL school, Ukrainian project, and Devawriter Pro.
I try to test it this weekend with something a bit more uptodate.
HOWEVER, am in the process if setting up a schoolroom with repurposed computers in a repurposed hospital that is now a living space for well skint Ukrainian refugees to teach ESL for nix to the kids there on my days off, so, LC matters will take fourth place for now after my ESL school, Ukrainian project, and Devawriter Pro.
Re: Managing colour selection on Windows
Ah… not sure but that may well relate to the LC version then. This was written initially in 9.6.x and the two major revisions were in later versions.
I can’t replicate so let me know how it goes if you test with a “modern” version… sounds like you got your hands full though!
-
- Livecode Opensource Backer
- Posts: 9477
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Managing colour selection on Windows
No "ouch" on MacOS 13.1 beta something with LC 9.6.3.
Wow! Dead Crafty:
- -
a GROUP . . . of . . .
Explains why my pathetic attempts to set the backGroundColor of lines in a drop-down menu
were a complete and utter waste of time.
Wow! Dead Crafty:
- -
a GROUP . . . of . . .
Explains why my pathetic attempts to set the backGroundColor of lines in a drop-down menu
were a complete and utter waste of time.
Re: Managing colour selection on Windows
It's a 'group' because it's a datagrid
-
- Livecode Opensource Backer
- Posts: 9477
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Managing colour selection on Windows
Indeed it is . . .
. . . but I cannot help thinking there might be something simpler.
This:
- -
is from RevMedia 2.7.1.
. . . but I cannot help thinking there might be something simpler.
This:
- -
is from RevMedia 2.7.1.
- Attachments
-
- Color Names Reference.rev.zip
- Stack.
- (19.7 KiB) Downloaded 56 times
-
- Livecode Opensource Backer
- Posts: 9477
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Managing colour selection on Windows
Hack Attack!
- Attachments
-
- Color Namez.livecode.zip
- Stack
- (21.88 KiB) Downloaded 76 times
Re: Managing colour selection on Windows
We obviously have different definitions of "simpler"
Still, as I added to my post above skColorNames is not a color picker, it's a tool to access the 500+ colour constants defined in LiveCode.
I quite like the colour picker from Apple myself - but each to his own
Also quite like using tools like coolors.co...
Still, as I added to my post above skColorNames is not a color picker, it's a tool to access the 500+ colour constants defined in LiveCode.
I quite like the colour picker from Apple myself - but each to his own
Also quite like using tools like coolors.co...