You can use different stylesheets: blackgold.swf - gold color title texts on black background, with most text being white.darkangel.swf - white text on a dark background.lighterside.swf - black text on a light grey backgroundor create your own stylesheet in Flash Builder
Matt, the CSS requires compilation into SWF. There are two different downloads for Flex Viewer: the ready-to-use, pre-compiled version, and the "source code" (which requires the code to be compiled). The CSS files are only included in latter because they need to be compiled into SWF files.On http://help.arcgis.com/en/webapps/flexviewer/index.html the box on the right side has download links for both.So to summarize, in order to change the CSS you need the "source code" as well as a way to compile that source code. The easiest way is to use Flash Builder. If you're not a developer or "techie" this might be a bit challenging, but still possible 🙂Hope this helps,Bjorn
Matt, the CSS files used are very different between the Sample Flex Viewer and the 2.0 beta of the ArcGIS Viewer for Flex. You will be much better of using the appropriate CSS files than taking 1.x SFV CSS files and trying to "fix" them for the 2.0 beta.
/* CSS file - Standard Stylesheet */ @namespace "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; @namespace esri "http://www.esri.com/2008/ags"; @namespace viewer "com.esri.viewer.*"; @namespace MapSwitcher "widgets.MapSwitcher.*"; @namespace components "com.esri.ags.components.*";
mx|Alert { background-alpha: 0.8; /* same as for viewer|WidgetTemplate */ background-color: #000000; /* controls the panel content area. */ color: white; /* main text color */ corner-radius: 10; title-style-name: "myAlertTitle"; }
Type 'Alert' in CSS selector 'Alert' must be qualified with a namespace.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.