Esri / arcgis-viewer-flex

Source code for ArcGIS Viewer for Flex - a great application framework for web applications.
http://links.esri.com/flexviewer
Apache License 2.0
134 stars 151 forks source link

CSS style the panel dividers to take advantage of viewer colors #195

Closed bsvensson closed 11 years ago

bsvensson commented 11 years ago

This is suggestion 2 from https://github.com/Esri/arcgis-viewer-flex/issues/193

"Another Enhancement that I see that is needed is the panel dividers style is hard coded instead of using css or being included in the UIManager. I would like to see the divider use the UIManager and the standard viewer color scheme. UIManager additions:"

        //Style mx|DividedBox
        var cssStyleDeclarationMxDividedBox:CSSStyleDeclaration = topLevelStyleManager.getStyleDeclaration("mx.containers.DividedBox");
        if (numberOfStyleColors > 4)
        {
            cssStyleDeclarationMxDividedBox.setStyle("_dividerFillColors", [backgroundColor,selectionColor]);
            cssStyleDeclarationMxDividedBox.setStyle("_dividerBorderColor", backgroundColor);
        }