Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Look and Chameleon Technology » Look of focused button
Look of focused button [message #50588] Thu, 22 November 2018 14:56 Go to next message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
Can anyone tell me how to change the look of a button that has focus?

It appears that Button::Style::look[0...3] work for all other states excluding focused state.

index.php?t=getfile&id=5703&private=0



  • Attachment: focus.gif
    (Size: 20.51KB, Downloaded 499 times)

[Updated on: Thu, 22 November 2018 15:30]

Report message to a moderator

Re: CtrlLayoutOKCancel messes with look of focused button [message #50589 is a reply to message #50588] Thu, 22 November 2018 14:58 Go to previous messageGo to next message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
No Message Body

[Updated on: Thu, 22 November 2018 15:16]

Report message to a moderator

Re: Look of focused button [message #50590 is a reply to message #50588] Fri, 23 November 2018 09:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Zbych wrote on Thu, 22 November 2018 14:56
Can anyone tell me how to change the look of a button that has focus?

It appears that Button::Style::look[0...3] work for all other states excluding focused state.

index.php?t=getfile&id=5703&private=0





Well, it is a little bit confused and will be more as I will need to add MacOS focus visuals over time...

Anyway, is that Chameleon example unchanged?

Mirek
Re: Look of focused button [message #50592 is a reply to message #50590] Fri, 23 November 2018 10:02 Go to previous messageGo to next message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
Quote:

Anyway, is that Chameleon example unchanged?


Yes, no changes at all. I pressed "Color" button and kept pressing TAB key.

[Updated on: Fri, 23 November 2018 10:02]

Report message to a moderator

Re: Look of focused button [message #50593 is a reply to message #50592] Fri, 23 November 2018 10:45 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Zbych wrote on Fri, 23 November 2018 10:02
Quote:

Anyway, is that Chameleon example unchanged?


Yes, no changes at all. I pressed "Color" button and kept pressing TAB key.



Well, thats bad for another reason - those buttons in the first row should have current global style...
Re: Look of focused button [message #51148 is a reply to message #50593] Sat, 09 February 2019 10:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
OK, so the issue was that for focused button, we are using StyleOk - that is to make things look good on various platforms.

So the solution would be to override StyleOk as well, however to smooth things out, I have made this optional, with flag 'focus_use_ok' (default true), as demonstrated in update reference example.

Mirek
Re: Look of focused button [message #51151 is a reply to message #51148] Sun, 10 February 2019 20:33 Go to previous message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
Thank you
Previous Topic: [Linux - Gnome] QTF text is unreadable with dark-themes
Next Topic: Dark theme issues
Goto Forum:
  


Current Time: Thu Mar 28 18:24:58 CET 2024

Total time taken to generate the page: 0.01128 seconds