Greg Sheremeta has uploaded a new change for review.

Change subject: userportal: fixed right-click context menu to match webadmin
......................................................................

userportal: fixed right-click context menu to match webadmin

Userportal's context menu style did not match the style used in webadmin.
It was missing a border, and the color and padding was wrong.
As far as I can tell, it has always been this way, and is probably an
oversight. Fixed.

Change-Id: I98d8ce62ba859863ce5b2b3cad5f65488d236ac2
Signed-off-by: Greg Sheremeta <gsher...@redhat.com>
---
M 
frontend/webadmin/modules/userportal-gwtp/src/main/java/org/ovirt/engine/ui/userportal/section/main/view/MainSectionView.ui.xml
M 
frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/userportal/public/UserPortal.css
2 files changed, 82 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/93/27893/1

diff --git 
a/frontend/webadmin/modules/userportal-gwtp/src/main/java/org/ovirt/engine/ui/userportal/section/main/view/MainSectionView.ui.xml
 
b/frontend/webadmin/modules/userportal-gwtp/src/main/java/org/ovirt/engine/ui/userportal/section/main/view/MainSectionView.ui.xml
index e2a78b8..476fc32 100644
--- 
a/frontend/webadmin/modules/userportal-gwtp/src/main/java/org/ovirt/engine/ui/userportal/section/main/view/MainSectionView.ui.xml
+++ 
b/frontend/webadmin/modules/userportal-gwtp/src/main/java/org/ovirt/engine/ui/userportal/section/main/view/MainSectionView.ui.xml
@@ -2,12 +2,87 @@
 <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent";>
 <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" 
xmlns:g="urn:import:com.google.gwt.user.client.ui">
     <ui:style>
+        @external .gwt-MenuBar;
+        @external .gwt-MenuBar .gwt-MenuItem;
+        @external .gwt-MenuBar .gwt-MenuItem-selected;
+        .gwt-MenuBar {
+            border: 1px solid #D3D3D3;
+            margin: 0 auto;
+            background-color: white;
+            font-size: 70%;
+            padding: 3px;
+        }
+
+        .gwt-MenuBar .gwt-MenuItem {
+            cursor: pointer;
+            background-color: white;
+            padding: 2px 10px;
+        }
+
+        .gwt-MenuBar .gwt-MenuItem-selected {
+            background-color: #C3D0E0;
+        }
+
         @external .gwt-PopupPanel;
         .gwt-PopupPanel {
-            border: 0px none;
-            padding: 0px;
+          border: 0px none;
+          padding: 0px;
+          background: white;
+          z-index: 1;
+        }
+
+        @external .gwt-MenuBarPopup;
+        .gwt-MenuBarPopup {
+          z-index: 1;
+        }
+
+        @external .gwt-MenuBarPopup;
+        .gwt-MenuBarPopup{
+            margin: 0;
+        }
+
+        @external .gwt-MenuBarPopup .menuPopupMiddleLeft;
+        .gwt-MenuBarPopup .menuPopupMiddleLeft {
             background: white;
-            z-index: 1;
+        }
+
+        @external .gwt-MenuBarPopup .menuPopupMiddleRight;
+        .gwt-MenuBarPopup .menuPopupMiddleRight {
+            background: white;
+        }
+
+        @external .gwt-MenuBarPopup .menuPopupTopCenter;
+        .gwt-MenuBarPopup .menuPopupTopCenter {
+            background: white;
+        }
+
+        @external .gwt-MenuBarPopup .menuPopupBottomCenter;
+        .gwt-MenuBarPopup .menuPopupBottomCenter {
+            background: white;
+        }
+
+        @external .gwt-MenuBarPopup .menuPopupTopLeftInner;
+        .gwt-MenuBarPopup .menuPopupTopLeftInner {
+            height: 0px;
+            width: 0px;
+        }
+
+        @external .gwt-MenuBarPopup .menuPopupTopRightInner;
+        .gwt-MenuBarPopup .menuPopupTopRightInner {
+            height: 0px;
+            width: 0px;
+        }
+
+        @external .gwt-MenuBarPopup .menuPopupBottomLeftInner;
+        .gwt-MenuBarPopup .menuPopupBottomLeftInner {
+            height: 0px;
+            width: 0px;
+        }
+
+        @external .gwt-MenuBarPopup .menuPopupBottomRightInner;
+        .gwt-MenuBarPopup .menuPopupBottomRightInner {
+            height: 0px;
+            width: 0px;
         }
     </ui:style>
     <g:DockLayoutPanel ui:field="wrapperLayoutPanel" unit="PX">
diff --git 
a/frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/userportal/public/UserPortal.css
 
b/frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/userportal/public/UserPortal.css
index a0fa7bb..fbaa8ea 100644
--- 
a/frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/userportal/public/UserPortal.css
+++ 
b/frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/userportal/public/UserPortal.css
@@ -102,6 +102,7 @@
        color: #888888;
 }
 
-.gwt-PopupPanelGlass {
-       z-index: 1;
-}
\ No newline at end of file
+/* right click menu spacing */
+.gwt-MenuBar .gwt-MenuItem {
+    padding: 0 10px !important;
+}


-- 
To view, visit http://gerrit.ovirt.org/27893
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I98d8ce62ba859863ce5b2b3cad5f65488d236ac2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Greg Sheremeta <gsher...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to