[Commits] r1197 - in apps/opengeo/geoexplorer/trunk/src: script/app/GeoExplorer theme/app

commits at geoext.org commits at geoext.org
Wed Jul 1 19:55:52 CEST 2009


Author: tschaub
Date: 2009-07-01 19:55:52 +0200 (Wed, 01 Jul 2009)
New Revision: 1197

Modified:
   apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer/Embed.js
   apps/opengeo/geoexplorer/trunk/src/theme/app/geoexplorer.css
Log:
Matching the design.

Modified: apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer/Embed.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer/Embed.js	2009-07-01 17:30:36 UTC (rev 1196)
+++ apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer/Embed.js	2009-07-01 17:55:52 UTC (rev 1197)
@@ -124,12 +124,17 @@
                 width: '',
                 height: ''
             });
-            menu.addItem(new Ext.menu.TextItem({
-                text: 'Layers'
-            }));
+            menu.add(
+                {
+                    iconCls: "gx-layer-visibility",
+                    text: "Layer",
+                    canActivate: false
+                },
+                "-"
+            );
             this.mapPanel.layers.each(function(x) {
                 if (x.get("layer").displayInLayerSwitcher) {
-                    menu.insert(1, new GeoExplorer.LayerMenuItem({
+                    menu.insert(2, new GeoExplorer.LayerMenuItem({
                         layerRecord: x
                     }));
                 }

Modified: apps/opengeo/geoexplorer/trunk/src/theme/app/geoexplorer.css
===================================================================
--- apps/opengeo/geoexplorer/trunk/src/theme/app/geoexplorer.css	2009-07-01 17:30:36 UTC (rev 1196)
+++ apps/opengeo/geoexplorer/trunk/src/theme/app/geoexplorer.css	2009-07-01 17:55:52 UTC (rev 1197)
@@ -197,6 +197,10 @@
     line-height: 18px;
 }
 
+.gx-layer-menu-item .x-column {
+    padding: 0 5px;
+}
+
 .gx-field-label {
     font-weight: bold;
     margin: 4px;



More information about the Commits mailing list