Learning/Problems from across the way #2

All flavors welcome.
Forum rules
Be kind.
Post Reply
User avatar
richmond62
Posts: 2684
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Learning/Problems from across the way #2

Post by richmond62 »

Someone is in the process of developing a new combo-box thing which is well worth having a look at.

https://forums.livecode.com/viewtopic.php?f=9&t=39005
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1423
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Learning/Problems from across the way #2

Post by tperry2x »

Unfortunately this doesn't rewrite the combobox classic control, merely is another implementation of it.
It does not solve the incorrect combobox UI element being drawn on MacOS Sonoma + which is a pity. I thought the OP had re-coded the classic control, but that's not the case.

Not that it's not clever - it is, I'd just got my hopes up that the control was re-written.
User avatar
richmond62
Posts: 2684
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Learning/Problems from across the way #2

Post by richmond62 »

What exactly is wrong with the 'classic' combobox thing?
-
Screenshot 2024-04-02 at 17.59.56.png
Screenshot 2024-04-02 at 17.59.56.png (35.24 KiB) Viewed 254 times
-
Admittedly that's on MacOS 12.

I can see nothing objectionable, and the OP [on the other forum] does not make things clear in a way that I can understand.
-
Screenshot 2024-04-02 at 18.07.42.png
Screenshot 2024-04-02 at 18.07.42.png (36.44 KiB) Viewed 254 times
-
I think I prefer the 'classic' thing as it is easier to set properties as it is NOT a group.
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1423
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Learning/Problems from across the way #2

Post by tperry2x »

richmond62 wrote: Tue Apr 02, 2024 3:08 pm What exactly is wrong with the 'classic' combobox thing?
If you look at it in dark mode (yeah, I know you don't care about dark mode), but in the interests of LCC/OXT devs that do and are trying to support light/dark modes - this is also why your inspector palettes look terrible in dark mode on MacOS 11+

I did mention this before, hang on.... will try and find original post and link it here.
Here you go:
https://www.openxtalk.org/forum/viewtop ... 4247#p4247

With the LCC / OXT representation of the popup menus on the left, and how they are supposed to appear when drawn by all other apps on the right.

The disparity between how LCC/OXT draws these, (and how they are supposed to be drawn) only grows greater, as the system versions of MacOS increase. If you look at Sonoma in dark mode, they are well out. (not that I get to do that except when I can borrow the use of a colleague's mac at work - which won't be for a couple of weeks now).

I mean, it's not exactly a 'deal breaker', but gets increasingly hard to read the content of popup menus and comboboxes on Big Sur +
User avatar
richmond62
Posts: 2684
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Learning/Problems from across the way #2

Post by richmond62 »

Maybe I should point out that "across the pond" LiveCode has no option for dark mode, so there must be other reasons.
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1423
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Learning/Problems from across the way #2

Post by tperry2x »

richmond62 wrote: Tue Apr 02, 2024 4:26 pm LiveCode has no option for dark mode, so there must be other reasons.
I don't quite follow you. I wanted to support light and dark mode, (it was on my 'road map') as in this day and age - I think it's good to offer both.

I know exactly why the classic controls are bound to the same appearance of MacOS 10.15 and 'degrade gracefully' (I think the popular parlance is). It's because the mac interface controls are compiled with a certain (now old) version of xCode, which did not support the updated UI interface elements of Big Sur+. (because it wasn't aware of it).
User avatar
richmond62
Posts: 2684
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Learning/Problems from across the way #2

Post by richmond62 »

What I mean is that this subject is being dealt with vis-a-vis LiveCode, and not OXT Lite: and as LiveCode does not have a dark mode option the reasons for an attempt to make another combo box thing must lie elsewhere than dark mode.

This is something quite different to your concerns re combo boxes in OXT Lite.
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 2684
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Learning/Problems from across the way #2

Post by richmond62 »

This is something you CANNOT do:
-
darkMode.jpg
darkMode.jpg (107.88 KiB) Viewed 232 times
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1423
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Learning/Problems from across the way #2

Post by tperry2x »

Yes. Inverted mode. You can with the accessibility library. Now try adding an image to the card and see how the colours are inverted too. But that's not showing support by the ide in any way. It's simply faking it. (Nice white drop shadows!) :lol:

That is childsplay in linux.
Screenshot_2024-04-02_22-05-07.gif
Screenshot_2024-04-02_22-05-07.gif (92.61 KiB) Viewed 216 times
command is:

Code: Select all

xcalib -invert -alter
Which of course you can bind to any shortcut combination (which of course you cannot do in MacOS with a single keypress). I can bind this to a single press of the f9 key if I want.

But that's by-the-by and largely irrelevant - yes, perhaps there were other reasons for wanting to recreate the combobox control by the OP, but as I said above, I'd hoped it was to solve the appearance issue of the classic control. It seems it wasn't though.
User avatar
richmond62
Posts: 2684
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Learning/Problems from across the way #2

Post by richmond62 »

Of course my screenshot of LC 963 has been inverted; just to point out that LC 963 cannot, obviously at least, present itself in dark mode.

What is a real !@#$%^&*()) about MacOS as well, is that if you take a screenshot while in inverted mode the screenshot comes out "non-inverted", so for that silly picture I had to invert the thing in GIMP before posting it.
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 2684
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Learning/Problems from across the way #2

Post by richmond62 »

AND

Code: Select all

xcalib -invert -alter
being "all jolly hockey-sticks" if you wish to invert your screen, no more results in a dark mode for LC 963 than mine does.
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1423
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Learning/Problems from across the way #2

Post by tperry2x »

richmond62 wrote: Wed Apr 03, 2024 6:22 pm being "all jolly hockey-sticks" if you wish to invert your screen, no more results in a dark mode for LC 963 than mine does.
Yes, as I mention above "It's simply faking it". Not actually inverting colours (to do so would be quite demanding), so it does this by using the invert mode on the graphics card (frame buffer). Doesn't actually change any real pixels, just what is sent to the monitor.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests