[ 
https://issues.apache.org/jira/browse/PIVOT-607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914479#action_12914479
 ] 

Sandro Martini commented on PIVOT-607:
--------------------------------------

Hi Chris,
excuse me I haven't seen the code for this, but instead of hard-coding 3 
colors, why not pass into the command line the color value in hex format ? Like:

-Dorg.apache.pivot.wtk.debugfocuscolor=#ff0000

What do you think ?

And last, in case of a wrong given value what happens ?
As a sample, there is a similar condition when a custom json colors file is not 
found.

Tell me if I can give you more info ..

Bye,
Sandro


> Creation of an application wide 'focus decorator' which would be applied to 
> the focused Component
> -------------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-607
>                 URL: https://issues.apache.org/jira/browse/PIVOT-607
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>         Environment: n/a
>            Reporter: Chris Bartlett
>            Assignee: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.0
>
>         Attachments: highlighed-listbutton.jpg, highlighed-listview.jpg
>
>
> Apply a user specified Decorator (such as a ShadeDecorator) to the currently 
> focused component to make it more visible.
> This would be useful when debugging focus traversal issues and possibly from 
> an accessibility perspective.
> By default the Decorator would be 'null' and therefore not added to the 
> focused component.
> It could be set through a static method on org.apache.pivot.wtk.Component 
> (allowing it to be changed at run time), and/or via a system property (like 
> org.apache.pivot.wtk.debugpaint) or startup argument.
> I have already developed this to satisfy my own requirement for the static 
> methods on Component, but can add the other code and submit if deemed useful.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to