I want to menu button color
I am looking for the "I want to" menu button icon to change the color from blue to orange, to be similar to the Silverlight application to minimize confusion. Does anyone know what file/config this can be found in?
Thanks in advance!
Kind regards,
Thad Dymkowski
-
Hi Thad,
The colours are set in the style sheets. You can add a custom style sheet to override the default settings or change the defaults themselves. The bits you'll want are in common.css and the style sheets for the various shells (Desktop.css, Handheld.css, Tablet.css) -- search for IWantToMenu within these files to find their configuration. If you provide a custom style sheet, you'll need to put one for each shell in the Custom style directory (..\Sites\SiteName\Viewers\ViewerName\VirtualDirectory\Resources\Styles\Custom) with the style elements you want to override. Looking at the pre-2.0 style sheets, it appears that the orange colours you're looking for will be #FF8F40 and #FF6A00, though you may want to double-check those against your Silverlight Viewer to be sure.
Hope that helps!
Jordan
edit: I should also mention that if you use the browser's developer tools, you can fairly quickly determine which style sheet is controlling the element you want to change. For instance, in Chrome, you can right-click anything in the Viewer and select Inspect Element and check the Styles tab in the right-hand pane.
0 -
Thanks Jordan! The "common.css" file that needed to be changed, was actually the one found in the inetpub/wwwrooot folder... it appears that the application makes a copy of the common.css file and places it there, and that is the file that is accessed when creating the page. Task accomplished either way.
Thad Dymkowski
0 -
is there a way you can have a .css file for each html5 viewer in a site? also is there any documentation about customizing the .css styles for a geocortex html5 site?
J
0 -
Jeff,
Did you ever find any documentation about customizing the .css styles for HTML sites?
Or is it really that you literally copy style sections from common.css (in inetpub location ) to the tablet.css, desktop.css, handheld.css (within the Site folder's "Styles\Custom" folder)?
I think that is what Jordan is saying. If you change directly in common.css, it seems like you would lose that with upgrades (and/or would have to make changes to the common.css after each viewer upgrade).
Carmen
0 -
Jeff,
Regarding your question about having a stylesheets for each viewer in a site, I believe the answer is 'yes'.
In the '/Sites/[site_name]/Viewers/[viewer_name]/virtualDirectory/Resources/Styles' directory, you should see a 'Custom' folder (you can create it if it doesn't exist) that you can add all your site specific customizations to.
Unfortunately, I don't believe you can have generic customizations applied to the template (i.e. customizations that would apply to EVERY viewer) without modifying the common.css or desktop.css in the '/[web root]/html5viewer/resources/styles' directory. There does appear to be a 'custom' folder under the 'styles' folder but these files never seem to get called, at least in my testing. Those common.css and desktop.css files would get overwritten during an automated viewer upgrade unless you manually did a merge of the changes.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer