Select to view content in your preferred language

Change background color of Edit widget: select template to create feature

1073
2
Jump to solution
12-05-2012 04:02 AM
PeterHoffman
Deactivated User
I would like to lighten the background color of the Edit widget where you select template to create feature.
My symbols for features do not show up well on a dark background.
Thanks,
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Peter,

   Look in the Edit widgets package and find the EditWidgetTemplatePickerListItemRenderer.mxml and these line are what need to add and change the color to suit your needs:

    <!-- border/background rectangle -->     <s:Rect left="0" right="0" top="0" bottom="0">         <s:stroke>             <s:SolidColorStroke alpha.normal="1"                                 color.hovered="{getStyle('rollOverColor')}"                                 color.normal="{getStyle('contentBackgroundColor')}"                                 color.selected="{getStyle('focusColor')}"/>         </s:stroke>         <s:fill>             <mx:SolidColor alpha="0.3"                            alpha.hovered="0.8"                            color.normal="0xffffff"/>         </s:fill>     </s:Rect>

You can hard code the colors instead of them being retrieved from the viewers colors.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Peter,

   Look in the Edit widgets package and find the EditWidgetTemplatePickerListItemRenderer.mxml and these line are what need to add and change the color to suit your needs:

    <!-- border/background rectangle -->     <s:Rect left="0" right="0" top="0" bottom="0">         <s:stroke>             <s:SolidColorStroke alpha.normal="1"                                 color.hovered="{getStyle('rollOverColor')}"                                 color.normal="{getStyle('contentBackgroundColor')}"                                 color.selected="{getStyle('focusColor')}"/>         </s:stroke>         <s:fill>             <mx:SolidColor alpha="0.3"                            alpha.hovered="0.8"                            color.normal="0xffffff"/>         </s:fill>     </s:Rect>

You can hard code the colors instead of them being retrieved from the viewers colors.
0 Kudos
PeterHoffman
Deactivated User
That did the trick, the symbols show up much better now,

Thanks.
0 Kudos