[ https://issues.apache.org/jira/browse/PIVOT-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17319687#comment-17319687 ]
Roger Lee Whitcomb commented on PIVOT-1057: ------------------------------------------- PIVOT-1057: Add "thick" focus rectangle support to TerraTheme. * Add the new property to theme description files. * Add code and property to TerraTheme. * Add new method and constants to GraphicsUtilities to select a nice "thick" stroke. * Consolidate the determination of the focus rectangle stroke to a new method in ComponentSkin, which everyone calls. * Tweak drawing in a couple of places to make the thicker focus rectangle play nicer with the other drawing code. Sending tests/src/org/apache/pivot/tests/TerraTheme_dark_flat.json Sending tests/src/org/apache/pivot/tests/TerraTheme_test.json Sending wtk/src/org/apache/pivot/wtk/GraphicsUtilities.java Sending wtk/src/org/apache/pivot/wtk/Theme.java Sending wtk/src/org/apache/pivot/wtk/skin/ComponentSkin.java Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCheckboxSkin.java Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraColorChooserButtonSkin.java Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraListButtonSkin.java Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraMenuButtonSkin.java Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraPushButtonSkin.java Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraRadioButtonSkin.java Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraSliderSkin.java Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraSpinnerSkin.java Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTheme.java Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTheme_dark.json Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTheme_default.json Sending wtk-terra/src/org/apache/pivot/wtk/skin/terra/package.html Transmitting file data ..................done Committing transaction... Committed revision 1888683. > Add a Theme variable to draw thicker focus rectangles (buttons, etc.) > --------------------------------------------------------------------- > > Key: PIVOT-1057 > URL: https://issues.apache.org/jira/browse/PIVOT-1057 > Project: Pivot > Issue Type: Improvement > Components: wtk, wtk-terra > Reporter: Roger Lee Whitcomb > Assignee: Roger Lee Whitcomb > Priority: Minor > Fix For: 2.1.0 > > > Noticing on high-resolution screens (such as 4K Retina displays on Mac) that > the one-pixel wide focus rectangle lines are not very visible, nor are they > when drawn on top of the Command buttons (dark blue backgrounds). > So, changing the width and spacing of the dashed line strokes helps with this. > But, this may not be necessary in some situations, so make a new theme > property to either use the old default value or the new "thick" version. -- This message was sent by Atlassian Jira (v8.3.4#803005)