file history ui polished
authorDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Mon, 26 Dec 2011 07:09:22 +0000 (11:09 +0400)
committerDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Mon, 26 Dec 2011 07:09:22 +0000 (11:09 +0400)
platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java
plugins/svn4idea/src/org/jetbrains/idea/svn17/history/SvnHistoryProvider.java
plugins/svn4ideaOld/src/org/jetbrains/idea/svn/history/SvnHistoryProvider.java

index 067e69136f599736b1ab5092d7ffe192242003a9..a6ee38858fb0fba59add5b1708002736573d0ac7 100644 (file)
@@ -676,12 +676,12 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton {
     final JLabel commentLabel = new JLabel(COMMIT_MESSAGE_TITLE + ":") {
       @Override
       public Dimension getPreferredSize() {
-        return new Dimension(super.getWidth(), 21);
+        return new Dimension(super.getWidth(), 29);
       }
     };
     commentGroup.add(commentLabel, BorderLayout.NORTH);
     JScrollPane pane = ScrollPaneFactory.createScrollPane(myComments);
-    pane.setBorder(IdeBorderFactory.createBorder(SideBorder.TOP | SideBorder.LEFT | (myAdditionalDetails == null ? 0 : SideBorder.BOTTOM)));
+    pane.setBorder(IdeBorderFactory.createBorder(SideBorder.TOP | SideBorder.LEFT | (myAdditionalDetails == null ? 0 : SideBorder.RIGHT)));
 
     commentGroup.add(pane, BorderLayout.CENTER);
     myDetailsSplitter.setFirstComponent(commentGroup);
index 29094da3a29a6bc28af346ddb8ab4306a3ce1323..eec6cfcba04bb46dc8c640a219e07c685583ef7c 100644 (file)
@@ -32,9 +32,7 @@ import com.intellij.openapi.vcs.changes.ChangesUtil;
 import com.intellij.openapi.vcs.changes.issueLinks.TableLinkMouseListener;
 import com.intellij.openapi.vcs.history.*;
 import com.intellij.openapi.vfs.VirtualFile;
-import com.intellij.ui.ColoredTableCellRenderer;
-import com.intellij.ui.ScrollPaneFactory;
-import com.intellij.ui.SimpleTextAttributes;
+import com.intellij.ui.*;
 import com.intellij.util.Consumer;
 import com.intellij.util.ThrowableConsumer;
 import com.intellij.util.ui.ColumnInfo;
@@ -112,7 +110,9 @@ public class SvnHistoryProvider implements VcsHistoryProvider, VcsCacheableHisto
       gb.gridwidth = 2;
       gb.weightx = gb.weighty = 1;
       gb.fill = GridBagConstraints.BOTH;
-      panel.add(ScrollPaneFactory.createScrollPane(field), gb);
+      JScrollPane pane = ScrollPaneFactory.createScrollPane(field);
+      pane.setBorder(IdeBorderFactory.createBorder(SideBorder.LEFT | SideBorder.TOP));
+      panel.add(pane, gb);
       addComp = panel;
     } else {
       columns = new ColumnInfo[] {new CopyFromColumnInfo()};
index 4b499c9e3574e5b6d0f06be6447e11e3ffc41d43..1866af7d5719f4ffdda4a33f3d51e7a144efb36c 100644 (file)
@@ -32,9 +32,7 @@ import com.intellij.openapi.vcs.changes.ChangesUtil;
 import com.intellij.openapi.vcs.changes.issueLinks.TableLinkMouseListener;
 import com.intellij.openapi.vcs.history.*;
 import com.intellij.openapi.vfs.VirtualFile;
-import com.intellij.ui.ColoredTableCellRenderer;
-import com.intellij.ui.ScrollPaneFactory;
-import com.intellij.ui.SimpleTextAttributes;
+import com.intellij.ui.*;
 import com.intellij.util.Consumer;
 import com.intellij.util.ThrowableConsumer;
 import com.intellij.util.ui.ColumnInfo;
@@ -112,7 +110,9 @@ public class SvnHistoryProvider implements VcsHistoryProvider, VcsCacheableHisto
       gb.gridwidth = 2;
       gb.weightx = gb.weighty = 1;
       gb.fill = GridBagConstraints.BOTH;
-      panel.add(ScrollPaneFactory.createScrollPane(field), gb);
+      JScrollPane pane = ScrollPaneFactory.createScrollPane(field);
+      pane.setBorder(IdeBorderFactory.createBorder(SideBorder.LEFT | SideBorder.TOP));
+      panel.add(pane, gb);
       addComp = panel;
     } else {
       columns = new ColumnInfo[] {new CopyFromColumnInfo()};