CSS fixes
authorChristos Stathis <chstath@ebs.gr>
Wed, 26 Oct 2011 16:03:00 +0000 (19:03 +0300)
committerChristos Stathis <chstath@ebs.gr>
Wed, 26 Oct 2011 16:03:00 +0000 (19:03 +0300)
14 files changed:
src/gr/grnet/pithos/web/client/MessagePanel.java
src/gr/grnet/pithos/web/client/Pithos.java
src/gr/grnet/pithos/web/client/PithosCellTreeBasic.css
src/gr/grnet/pithos/web/client/cellTreeClosedItem.gif [deleted file]
src/gr/grnet/pithos/web/client/cellTreeClosedItem.png [new file with mode: 0644]
src/gr/grnet/pithos/web/client/cellTreeOpenItem.gif [deleted file]
src/gr/grnet/pithos/web/client/cellTreeOpenItem.png [new file with mode: 0644]
src/gr/grnet/pithos/web/client/foldertree/AccountResource.java
src/gr/grnet/pithos/web/client/foldertree/FolderTreeView.java
src/gr/grnet/pithos/web/client/grouptree/GroupTreeView.java
src/gr/grnet/pithos/web/client/mysharedtree/MysharedTreeView.java
src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeView.java
src/gr/grnet/pithos/web/client/tagtree/TagTreeView.java
src/gr/grnet/pithos/web/public/pithos.css

index 392e51c..8ed1c9a 100644 (file)
@@ -113,9 +113,10 @@ public class MessagePanel extends Composite {
         * Build the panel that contains the icon, the message and the 'clear' link.\r
         */\r
        private void buildPanel() {\r
+               inner.clear();\r
                inner.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\r
                inner.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\r
-               inner.setSpacing(4);\r
+//             inner.setSpacing(4);\r
                inner.add(message);\r
                inner.add(clearMessageLink);\r
                inner.setCellVerticalAlignment(message, HasVerticalAlignment.ALIGN_MIDDLE);\r
index 214135e..9fb51bc 100644 (file)
@@ -287,18 +287,11 @@ public class Pithos implements EntryPoint, ResizeHandler {
                outer.setCellHorizontalAlignment(topPanel, HasHorizontalAlignment.ALIGN_CENTER);
         }
         
-        messagePanel.setWidth(contentWidth);
-        messagePanel.setVisible(false);
-        outer.add(messagePanel);
-        outer.setCellHorizontalAlignment(messagePanel, HasHorizontalAlignment.ALIGN_CENTER);
-
         HorizontalPanel header = new HorizontalPanel();
         header.addStyleName("pithos-header");
         header.setWidth(contentWidth);
         if (bareContent)
                header.addStyleName("pithos-header-noframe");
-        HorizontalPanel leftHeader = new HorizontalPanel();
-        VerticalPanel uploadButtonPanel = new VerticalPanel();
         upload = new Button("Upload File", new ClickHandler() {
             @Override
             public void onClick(@SuppressWarnings("unused") ClickEvent event) {
@@ -306,19 +299,17 @@ public class Pithos implements EntryPoint, ResizeHandler {
             }
         });
         upload.addStyleName("pithos-uploadButton");
-        uploadButtonPanel.add(upload);
-        uploadButtonPanel.setWidth("100%");
-        uploadButtonPanel.setHeight("60px");
-        uploadButtonPanel.setCellHorizontalAlignment(upload, HasHorizontalAlignment.ALIGN_LEFT);
-        uploadButtonPanel.setCellVerticalAlignment(upload, HasVerticalAlignment.ALIGN_MIDDLE);
-        leftHeader.add(uploadButtonPanel);
-        header.add(leftHeader);
-        header.setCellWidth(leftHeader, "35%");
-        
-        HorizontalPanel rightHeader = new HorizontalPanel();
-        rightHeader.addStyleName("pithos-rightSide");
-        rightHeader.setSpacing(5);
+        header.add(upload);
+        header.setCellHorizontalAlignment(upload, HasHorizontalAlignment.ALIGN_LEFT);
+        header.setCellVerticalAlignment(upload, HasVerticalAlignment.ALIGN_MIDDLE);
+        header.setCellWidth(upload, "146px");
 
+        messagePanel.setVisible(false);
+        header.add(messagePanel);
+        header.setCellHorizontalAlignment(messagePanel, HasHorizontalAlignment.ALIGN_CENTER);
+        header.setCellVerticalAlignment(messagePanel, HasVerticalAlignment.ALIGN_MIDDLE);
+        
+        
         toolsButton = new Button(AbstractImagePrototype.create(images.tools()).getHTML());
         toolsButton.addClickHandler(new ClickHandler() {
                        
@@ -331,8 +322,10 @@ public class Pithos implements EntryPoint, ResizeHandler {
                 }
                        }
                });
-        rightHeader.add(toolsButton);
-        rightHeader.setCellHorizontalAlignment(toolsButton, HasHorizontalAlignment.ALIGN_LEFT);
+        header.add(toolsButton);
+        header.setCellHorizontalAlignment(toolsButton, HasHorizontalAlignment.ALIGN_RIGHT);
+        header.setCellVerticalAlignment(toolsButton, HasVerticalAlignment.ALIGN_MIDDLE);
+        header.setCellWidth(toolsButton, "30px");
         
         HorizontalPanel folderStatistics = new HorizontalPanel();
         folderStatistics.addStyleName("pithos-folderStatistics");
@@ -342,11 +335,10 @@ public class Pithos implements EntryPoint, ResizeHandler {
         HTML numOfFilesLabel = new HTML("&nbsp;Files");
         folderStatistics.add(numOfFilesLabel);
         folderStatistics.setCellVerticalAlignment(numOfFilesLabel, HasVerticalAlignment.ALIGN_MIDDLE);
-        rightHeader.add(folderStatistics);
-        rightHeader.setCellHorizontalAlignment(folderStatistics, HasHorizontalAlignment.ALIGN_RIGHT);
-        header.add(rightHeader);
-        header.setCellVerticalAlignment(rightHeader, HasVerticalAlignment.ALIGN_MIDDLE);
-        header.setCellHeight(rightHeader, "60px");
+        header.add(folderStatistics);
+        header.setCellHorizontalAlignment(folderStatistics, HasHorizontalAlignment.ALIGN_RIGHT);
+        header.setCellVerticalAlignment(folderStatistics, HasVerticalAlignment.ALIGN_MIDDLE);
+        header.setCellWidth(folderStatistics, "60px");
         outer.add(header);
         outer.setCellHorizontalAlignment(header, HasHorizontalAlignment.ALIGN_CENTER);
         // Inner contains the various lists.nner
@@ -476,6 +468,15 @@ public class Pithos implements EntryPoint, ResizeHandler {
                                });
             }
         });
+        
+//        Scheduler.get().scheduleDeferred(new Command() {
+//                     
+//                     @Override
+//                     public void execute() {
+//                             displayError("lalala");
+//                             
+//                     }
+//             });
     }
 
     public void applyPermissions(Folder f) {
index c82fce2..645fb93 100644 (file)
@@ -32,6 +32,7 @@
 }
 
 .cellTreeItemImage {
+       padding-top: 5px;
 }
 
 .cellTreeItemImageValue {
@@ -49,7 +50,7 @@
 }
 
 .cellTreeItem:HOVER {
-       background-color: #A1C8DB;
+       background-color: #A1C8DA;
 }
 
 .cellTreeOpenItem {
@@ -73,6 +74,7 @@
 
 .cellTreeSelectedItem {
   color: #d45500;
+  background-color: #BCD7E3;
   height: auto;
   overflow: visible;
 }
diff --git a/src/gr/grnet/pithos/web/client/cellTreeClosedItem.gif b/src/gr/grnet/pithos/web/client/cellTreeClosedItem.gif
deleted file mode 100644 (file)
index 9051e56..0000000
Binary files a/src/gr/grnet/pithos/web/client/cellTreeClosedItem.gif and /dev/null differ
diff --git a/src/gr/grnet/pithos/web/client/cellTreeClosedItem.png b/src/gr/grnet/pithos/web/client/cellTreeClosedItem.png
new file mode 100644 (file)
index 0000000..d39dd6a
Binary files /dev/null and b/src/gr/grnet/pithos/web/client/cellTreeClosedItem.png differ
diff --git a/src/gr/grnet/pithos/web/client/cellTreeOpenItem.gif b/src/gr/grnet/pithos/web/client/cellTreeOpenItem.gif
deleted file mode 100644 (file)
index 3d3691a..0000000
Binary files a/src/gr/grnet/pithos/web/client/cellTreeOpenItem.gif and /dev/null differ
diff --git a/src/gr/grnet/pithos/web/client/cellTreeOpenItem.png b/src/gr/grnet/pithos/web/client/cellTreeOpenItem.png
new file mode 100644 (file)
index 0000000..62631e5
Binary files /dev/null and b/src/gr/grnet/pithos/web/client/cellTreeOpenItem.png differ
index 770c791..45d2ba3 100644 (file)
@@ -205,23 +205,23 @@ public class AccountResource extends Resource {
 
     public String getFileSizeAsString() {
         if (bytesUsed < 1024)
-            return String.valueOf(bytesUsed) + " B";
+            return String.valueOf(bytesUsed) + "B";
         else if (bytesUsed < 1024*1024)
-            return getSize(bytesUsed, 1024D) + " KB";
+            return getSize(bytesUsed, 1024D) + "KB";
         else if (bytesUsed < 1024*1024*1024)
-            return getSize(bytesUsed,(1024D*1024D)) + " MB";
-        return getSize(bytesUsed , (1024D*1024D*1024D)) + " GB";
+            return getSize(bytesUsed,(1024D*1024D)) + "MB";
+        return getSize(bytesUsed , (1024D*1024D*1024D)) + "GB";
     }
 
     public String getQuotaAsString() {
        long quota = bytesUsed + bytesRemaining;
         if (quota < 1024)
-            return String.valueOf(quota) + " B";
+            return String.valueOf(quota) + "B";
         else if (quota < 1024 * 1024)
-            return getSize(quota, 1024D) + " KB";
+            return getSize(quota, 1024D) + "KB";
         else if (quota < 1024 * 1024 * 1024)
-            return getSize(quota,(1024D * 1024D)) + " MB";
-        return getSize(quota , (1024D * 1024D * 1024D)) + " GB";
+            return getSize(quota,(1024D * 1024D)) + "MB";
+        return getSize(quota , (1024D * 1024D * 1024D)) + "GB";
     }
 
     public List<Group> getGroups() {
index 72d59fd..e7c4eb8 100644 (file)
@@ -98,7 +98,7 @@ public class FolderTreeView extends Composite implements TreeView {
 
         @Override
                @ImageOptions(flipRtl = true)
-        @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.gif")
+        @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.png")
         ImageResource cellTreeClosedItem();
 
         @Override
@@ -108,7 +108,7 @@ public class FolderTreeView extends Composite implements TreeView {
 
         @Override
                @ImageOptions(flipRtl = true)
-        @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.gif")
+        @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.png")
         ImageResource cellTreeOpenItem();
 
         @Override
index f65f2bc..cdf37b5 100644 (file)
@@ -81,7 +81,7 @@ public class GroupTreeView extends Composite implements TreeView {
 
         @Override
                @ImageOptions(flipRtl = true)
-        @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.gif")
+        @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.png")
         ImageResource cellTreeClosedItem();
 
         @Override
@@ -91,7 +91,7 @@ public class GroupTreeView extends Composite implements TreeView {
 
         @Override
                @ImageOptions(flipRtl = true)
-        @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.gif")
+        @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.png")
         ImageResource cellTreeOpenItem();
 
         @Override
index bd97b00..405e7a5 100644 (file)
@@ -76,7 +76,7 @@ public class MysharedTreeView extends Composite implements TreeView {
 
         @Override
                @ImageOptions(flipRtl = true)
-        @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.gif")
+        @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.png")
         ImageResource cellTreeClosedItem();
 
         @Override
@@ -86,7 +86,7 @@ public class MysharedTreeView extends Composite implements TreeView {
 
         @Override
                @ImageOptions(flipRtl = true)
-        @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.gif")
+        @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.png")
         ImageResource cellTreeOpenItem();
 
         @Override
index 40c028b..60c6b4e 100644 (file)
@@ -76,7 +76,7 @@ public class OtherSharedTreeView extends Composite implements TreeView {
 
         @Override
                @ImageOptions(flipRtl = true)
-        @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.gif")
+        @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.png")
         ImageResource cellTreeClosedItem();
 
         @Override
@@ -86,7 +86,7 @@ public class OtherSharedTreeView extends Composite implements TreeView {
 
         @Override
                @ImageOptions(flipRtl = true)
-        @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.gif")
+        @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.png")
         ImageResource cellTreeOpenItem();
 
         @Override
index b89bb9e..58e7034 100644 (file)
@@ -52,7 +52,7 @@ public class TagTreeView extends Composite {
 
         @Override
                @ImageOptions(flipRtl = true)
-        @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.gif")
+        @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.png")
         ImageResource cellTreeClosedItem();
 
         @Override
@@ -62,7 +62,7 @@ public class TagTreeView extends Composite {
 
         @Override
                @ImageOptions(flipRtl = true)
-        @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.gif")
+        @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.png")
         ImageResource cellTreeOpenItem();
 
         @Override
index 1c2914f..175698d 100644 (file)
@@ -286,7 +286,8 @@ table.pithos-permList.props-labels {
 
 .pithos-errorMessage {
        font-size: 90%;
-       background-color: #ff9999;
+       background-color: #880000;
+       color: #fff;
        cursor: pointer;
 }
 
@@ -340,7 +341,7 @@ table.pithos-permList.props-labels {
 }
 
 .pithos-splitPanel {
-       background: url(images/white50.png);
+       background: url(images/white50.png) transparent;
        margin-bottom: 34px;
 }
 
@@ -364,7 +365,8 @@ table.pithos-permList.props-labels {
     background-color: #ff7f2a;
     font-size: 120%;
     text-align: center;
-    height: 32px;
+    height: auto;
+    padding: 8px;
     width: 146px;
     border: none;
 }
@@ -408,12 +410,21 @@ table.pithos-permList.props-labels {
 .pithos-header {
        background: url(images/white50.png);
        margin-top: 34;
+       height: 60px;
 }
 
 .pithos-header-noframe {
        margin-top: 0;
 }
 
-.cellTreeWidget-selectedTree {
-    background-color: #a1c8da;
+/*.cellTreeWidget-selectedTree {
+    background-color: #BCD7E3;
+}*/
+
+.pithos-list thead th img {
+    top: 5px;
 }
+
+.effectPanel-inner {
+       background-color: #4085A5;
+}
\ No newline at end of file