Fix some Planner Triage View styling. Add "glass" behind the Triage
popup, which grays out the rest of the page until the user closes the
popup.

Signed-off-by: James Ren <[email protected]>

--- 
autotest/frontend/client/src/autotest/planner/triage/TriagePopupDisplay.java    
    2010-04-30 11:36:56.000000000 -0700
+++ 
autotest/frontend/client/src/autotest/planner/triage/TriagePopupDisplay.java    
    2010-04-30 11:36:56.000000000 -0700
@@ -33,16 +33,17 @@
     private ExtendedListBox testAction = new ExtendedListBox();
     private CheckBox invalidate = new CheckBox("Invalidate Test");
     private Button apply = new Button("Apply");
-    
+
     public TriagePopupDisplay() {
         super(false, true);
-        
+        super.setGlassEnabled(true);
+
         HorizontalPanel topPanel = new HorizontalPanel();
         topPanel.setWidth("100%");
         topPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
         topPanel.add(closeX);
         container.add(topPanel);
-        
+
         FlexTable bottomTable = new FlexTable();
         addRow(bottomTable, "Labels", labels);
         addRow(bottomTable, "Keyvals", keyvals);
@@ -52,12 +53,12 @@
         addRow(bottomTable, "Test", testAction);
         addRow(bottomTable, null, invalidate);
         container.add(bottomTable);
-        
+
         container.add(apply);
-        
+
         setWidget(container);
     }
-    
+
     private void addRow(FlexTable table, String label, Widget field) {
         int row = table.getRowCount();
         if (label != null) {
--- autotest/frontend/client/src/autotest/planner/triage/TriageViewDisplay.java 
2010-04-30 11:36:56.000000000 -0700
+++ autotest/frontend/client/src/autotest/planner/triage/TriageViewDisplay.java 
2010-04-30 11:36:56.000000000 -0700
@@ -41,9 +41,7 @@
     public void setLoading(boolean loading) {
         NotifyManager.getInstance().setLoading(loading);
         scroll.setVisible(!loading);
-
-        scroll.setVisible(true);
-        triage.setVisible(true);
+        triage.setVisible(!loading);
     }
 
     @Override
--- autotest/frontend/client/src/autotest/public/standard.css   2010-04-30 
11:36:56.000000000 -0700
+++ autotest/frontend/client/src/autotest/public/standard.css   2010-04-30 
11:36:56.000000000 -0700
@@ -10,6 +10,12 @@
   background: white;
 }
 
+.gwt-PopupPanelGlass {
+  background-color: #000;
+  opacity: 0.3;
+  filter: alpha(opacity=30);
+}
+
 /* MenuBar */
 
 .gwt-MenuBar {
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to