Field hilited text color on Windows
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Field hilited text color on Windows
On OSX10.12.6 and Windows 7 (LC 8.1.10) I have a stack with a field, in thee IDE set in the property palette to Auto hilite and List behaviour.
On OSX I set the text color to black and the hilite fill to 118,228,255 (azure)
Clicking on a line, it correctly select it, the text stay black and the background of the selected line is azure. Good
Now opening the same stack on Windows, I notice:
- the text fill is black (OK)
- the Hilite fill is now 0,0,255 (dark blue) ?
- when a line gets selected, the text become white and the line background is dark blu (very hard to read).
Why?
The same using other colours, on line selection:
OSX: the text is black and the Hilite fill= 255,177,145 (orange)
Windows: the text become white and the Hilite fill become: 255,0,0 (full red)
Is there a way to fix this (trying to make the same user experience on both platform). Am I missing something?
Thanks
Trevix
On OSX I set the text color to black and the hilite fill to 118,228,255 (azure)
Clicking on a line, it correctly select it, the text stay black and the background of the selected line is azure. Good
Now opening the same stack on Windows, I notice:
- the text fill is black (OK)
- the Hilite fill is now 0,0,255 (dark blue) ?
- when a line gets selected, the text become white and the line background is dark blu (very hard to read).
Why?
The same using other colours, on line selection:
OSX: the text is black and the Hilite fill= 255,177,145 (orange)
Windows: the text become white and the Hilite fill become: 255,0,0 (full red)
Is there a way to fix this (trying to make the same user experience on both platform). Am I missing something?
Thanks
Trevix
Last edited by trevix on Sun Jul 29, 2018 11:48 am, edited 1 time in total.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
-
- VIP Livecode Opensource Backer
- Posts: 9837
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Field hilited line color differs from OSX to Windows
I'm unable to reproduce that. Here, in the rare case where I need to use highlight treatments other the the ones user's expect on their platform of choice, assigning the colors I want on one OS carries through to the others.
What happens when you try it the other way around, setting the colors on Windows, saving, and then opening on a Mac?
What happens when you try it the other way around, setting the colors on Windows, saving, and then opening on a Mac?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Field hilited line color differs from OSX to Windows
My problem is that on Windows the halite text become white, no matter what.
Funny: going the other way around the hilite color stay the same on both platform.
Getting the same stack back to Windows, the hilite color are reversed to blue and red (from azure and orange).
I could correct things in scripts on Windows but the problem is that the hilite text color in Windows is alway white, so as to make unavoidable a dark hilite background. Reassigning on the property palette a black color, does not change the text that stay white (when hilite).
The Windows monitor is set to millions of colours so I don't think it depends from running on VMware.
Funny: going the other way around the hilite color stay the same on both platform.
Getting the same stack back to Windows, the hilite color are reversed to blue and red (from azure and orange).
I could correct things in scripts on Windows but the problem is that the hilite text color in Windows is alway white, so as to make unavoidable a dark hilite background. Reassigning on the property palette a black color, does not change the text that stay white (when hilite).
The Windows monitor is set to millions of colours so I don't think it depends from running on VMware.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
-
- Livecode Opensource Backer
- Posts: 9386
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Field hilited line color differs from OSX to Windows
I suspect this is a system-wide setting . . .
THIS is "a pain" as it seems that we mortals cannot change this:
- -
as THIS (pseudocode) would be lovely:
set the selectedColor of fld "xxx" to "red"[/b]
-
However, you can set the selectedColor via the Properties Palette, and this SHOULD
guarantee that cross-platform.
THIS is "a pain" as it seems that we mortals cannot change this:
- -
as THIS (pseudocode) would be lovely:
set the selectedColor of fld "xxx" to "red"[/b]
-
However, you can set the selectedColor via the Properties Palette, and this SHOULD
guarantee that cross-platform.
Last edited by richmond62 on Sun May 16, 2021 7:45 pm, edited 1 time in total.
Re: Field hilited line color differs from OSX to Windows
Unfortunately not.
on Windows, changing the selected color with the palette does not modify the selected text that stay white.
on Windows, changing the selected color with the palette does not modify the selected text that stay white.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Field hilited line color differs from OSX to Windows
I remember this from ages ago. The OS sets the color and I believe it depends on the saturation of the background color the text is against. You came close with the blue / red vs. azure
/ orange. I think the difference there is due to the different color palettes Windows and Mac use. You might have better luck if the background color is lighter.
/ orange. I think the difference there is due to the different color palettes Windows and Mac use. You might have better luck if the background color is lighter.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Field hilited line color differs from OSX to Windows
The hilitedcolor refers to the color of the line fill, but does not affect the color of the text in the line. Windows seems to really like white text if the background is even marginally dark.
@Richmond, a reserved word doesn't necessarily mean that it is being used internally by the engine, but rather that it may be in the future so you shouldn't use it in your own scripts now.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Field hilited line color differs from OSX to Windows
If I may, with a very light yellow hilite color, the selected text stay white on Windows.
You even get white text on white hilite color: this can't be right.
You even get white text on white hilite color: this can't be right.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Field hilited line color differs from OSX to Windows
I'd call that a bug and report it to the bug database. What happens if you reset the hilite color to the default?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 9386
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Field hilited line color differs from OSX to Windows
Just to be bloody-minded I have knocked together a fairly goofy stack over here on the wild side (Mac OS 10.7.5) with LC 8.1.10, and I am currently installing the Windows Community LC 8.1.10 install under WINE on the same MacOS system.
Wow: doing this takes ages.
Here's what the stack looks like on Macintosh:
- - - and here's the stack:
-
Wow: doing this takes ages.
Here's what the stack looks like on Macintosh:
- - - and here's the stack:
-
-
- Livecode Opensource Backer
- Posts: 9386
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Field hilited line color differs from OSX to Windows
Blast: I couldn't get LiveCode 8.1.10 for Windows to behave with WINE bottler . . . so off I go to Linux.
I have had no problems recently running Windows builds of LiveCode with WINE on Linux.
Mind you, that was on a machine that had most of its ports blown to blazes in
a thunderstorm just before I went to the States.
- -
Macintosh on the left, Xubuntu on the right.
-
Hmm: Windows 10 in VirtualBox . . .
-
Oh, well, while we're waiting:
- -
The G5 iMac PPC isn't needed right now . . . but very useful for HC stacks, and so on.
- -
Yup: mustn't get distracted.
Even if those photos are a demonstration how one can keep one's head above water for about $500.
I have had no problems recently running Windows builds of LiveCode with WINE on Linux.
Mind you, that was on a machine that had most of its ports blown to blazes in
a thunderstorm just before I went to the States.
- -
Macintosh on the left, Xubuntu on the right.
-
Hmm: Windows 10 in VirtualBox . . .
-
Oh, well, while we're waiting:
- -
The G5 iMac PPC isn't needed right now . . . but very useful for HC stacks, and so on.
- -
Yup: mustn't get distracted.
Even if those photos are a demonstration how one can keep one's head above water for about $500.
-
- VIP Livecode Opensource Backer
- Posts: 9837
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Field hilited line color differs from OSX to Windows
AFAIK the LC Windows engine has always used the field's backgroundColor as the color of highlighted text. This works well if you use the defaults and want to provide a standard appearance, but is indeed problematic if you need a custom look and are using a light highlight color and light background.
I believe you'll need to submit an enhancement request for that:
https://quality.livecode.com
I believe you'll need to submit an enhancement request for that:
https://quality.livecode.com
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9386
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Field hilited line color differs from OSX to Windows
What an awful, long wait that was . . .
- - -
Well; the ONLY thing I'd get excited about was the way the high-lighted text turns white.
The hiliteColor seems the same on Windows 10 as on Mac OS 10.7.5
- - -
Well; the ONLY thing I'd get excited about was the way the high-lighted text turns white.
The hiliteColor seems the same on Windows 10 as on Mac OS 10.7.5
-
- Livecode Opensource Backer
- Posts: 9386
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Field hilited line color differs from OSX to Windows
My test seemed to behave exactly opposite to trevix's one.
Re: Field hilited line color differs from OSX to Windows
I cannot anymore reproduce the hilited line color change between OSX and Windows on a new simple stack, so I may have messed up in my standalone defaults. Sorry.
My problem then is the hilited text color:
A) Resetting the hilite fill turns it to dark azure, always with white text.
B) & C) as FourthWorld mentioned, LC Windows engine seems to always use the field background color as the color of highlighted text.
D) in my case, and I suspect this is pretty common, I want to keep the field backroundcolor white, have a light hilite line color (as not to mess up with the aesthetic of the stack) and I see no way to force the selected text color to any color or to stay black as is, in order to make it readable. Note that no other change in the palette can change this.
Is there another way?
Thanks
My problem then is the hilited text color:
A) Resetting the hilite fill turns it to dark azure, always with white text.
B) & C) as FourthWorld mentioned, LC Windows engine seems to always use the field background color as the color of highlighted text.
D) in my case, and I suspect this is pretty common, I want to keep the field backroundcolor white, have a light hilite line color (as not to mess up with the aesthetic of the stack) and I see no way to force the selected text color to any color or to stay black as is, in order to make it readable. Note that no other change in the palette can change this.
Is there another way?
Thanks
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>