How do I go about increasing the size of the icons in the Header Controller Widget?
Nick,
Is spot on. Here are a few other details.
<SPAN class="string token">"widgetOnScreen"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="string token">"widgets"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">[</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="string token">"uri"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"themes/FoldableTheme/widgets/HeaderController/Widget"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"position"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="string token">"left"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"top"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"right"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"height"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="number token">40</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"relativeTo"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"browser"</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"version"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"2.1"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"id"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"themes_FoldableTheme_widgets_HeaderController_Widget_19"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"icon"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"themes/FoldableTheme/widgets/HeaderController/images/icon.png?wab_dv=2.1"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"name"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"HeaderController"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"label"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"Header Controller"</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
4. Then in the config.json still you will have to shift all the other widgets top down the amount that you increased the header (especially the maps top property).
what about for dart theme. I'm trying to increase the size of the icons and the text that shows up when you hover over them. The icons are too small and the text is too small also for the project i'm doing. i've changed the icon size but it appears the icons wrap to the next line and a new scroll bar appears. Is there a way to make them increase in size and go down the line without becoming a icons you have to scroll too?
George,
That is covered in this thread: https://community.esri.com/thread/171233
Widgets that are not in the header which css files do you need to modify to change icon size?
Hi Tim - I think you can change the size for these by editing the values in the apps' header controller css: Example... "...\\FoldableTheme\widgets\HeaderController\css\style.css"
Change the "24" values below to the value that you need. I also had to change the header width and the logo size to make this all work as well..
jimu-widget-header-controller .icon-node img{ height: 24px; width: 24px;
HTH
-Nick
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.