Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.rap.rwt/resources/resource/theme/default.css4
-rw-r--r--bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/custom/CTabFolder.java8
-rw-r--r--bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/internal/custom/ICTabFolderAdapter.java5
-rw-r--r--bundles/org.eclipse.rap.rwt/widgetkits/org/eclipse/swt/internal/custom/ctabfolderkit/CTabFolderLCA.java9
4 files changed, 21 insertions, 5 deletions
diff --git a/bundles/org.eclipse.rap.rwt/resources/resource/theme/default.css b/bundles/org.eclipse.rap.rwt/resources/resource/theme/default.css
index 4c869de57c..c358325759 100644
--- a/bundles/org.eclipse.rap.rwt/resources/resource/theme/default.css
+++ b/bundles/org.eclipse.rap.rwt/resources/resource/theme/default.css
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2016 EclipseSource and others.
+ * Copyright (c) 2012, 2017 EclipseSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -472,7 +472,7 @@ CTabItem {
color: #4a4a4a;
background-color: transparent;
background-image: none;
- padding: 6px 15px;
+ padding: 8px 15px;
spacing: 10px;
text-shadow: none;
text-decoration: none;
diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/custom/CTabFolder.java
index 19cb5d2953..02dd1d9e0b 100644
--- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/custom/CTabFolder.java
+++ b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/custom/CTabFolder.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2002, 2015 Innoopract Informationssysteme GmbH and others.
+ * Copyright (c) 2002, 2017 Innoopract Informationssysteme GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -1611,6 +1611,7 @@ public class CTabFolder extends Composite {
// pt = toControl(pt);
// _setToolTipText(pt.x, pt.y);
// }
+ redraw();
return changed;
}
@@ -2478,6 +2479,11 @@ CTabItem[] items = itemHolder.getItems();
return selectionGraphicsAdapter;
}
+ @Override
+ public void doRedraw() {
+ setButtonBounds();
+ }
+
}
}
diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/internal/custom/ICTabFolderAdapter.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/internal/custom/ICTabFolderAdapter.java
index 043da1f476..406e555fb3 100644
--- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/internal/custom/ICTabFolderAdapter.java
+++ b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/internal/custom/ICTabFolderAdapter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2002, 2012 Innoopract Informationssysteme GmbH and others.
+ * Copyright (c) 2002, 2017 Innoopract Informationssysteme GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -41,4 +41,7 @@ public interface ICTabFolderAdapter {
// TODO [rst] This method should either return a suitable data structure or it
// should be replaced by separate methods for colors and percents.
public IWidgetGraphicsAdapter getUserSelectionBackgroundGradient();
+
+ void doRedraw();
+
}
diff --git a/bundles/org.eclipse.rap.rwt/widgetkits/org/eclipse/swt/internal/custom/ctabfolderkit/CTabFolderLCA.java b/bundles/org.eclipse.rap.rwt/widgetkits/org/eclipse/swt/internal/custom/ctabfolderkit/CTabFolderLCA.java
index 37cabc548a..bf49508e19 100644
--- a/bundles/org.eclipse.rap.rwt/widgetkits/org/eclipse/swt/internal/custom/ctabfolderkit/CTabFolderLCA.java
+++ b/bundles/org.eclipse.rap.rwt/widgetkits/org/eclipse/swt/internal/custom/ctabfolderkit/CTabFolderLCA.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2002, 2015 Innoopract Informationssysteme GmbH and others.
+ * Copyright (c) 2002, 2017 Innoopract Informationssysteme GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -36,6 +36,7 @@ import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.internal.custom.ICTabFolderAdapter;
import org.eclipse.swt.internal.widgets.IWidgetGraphicsAdapter;
+import org.eclipse.swt.widgets.Control;
public final class CTabFolderLCA extends WidgetLCA<CTabFolder> {
@@ -150,6 +151,12 @@ public final class CTabFolderLCA extends WidgetLCA<CTabFolder> {
renderListenDefaultSelection( folder );
}
+ @Override
+ public void doRedrawFake( Control control ) {
+ CTabFolder folder = ( CTabFolder )control;
+ getCTabFolderAdapter( folder ).doRedraw();
+ }
+
/////////////////////////////////////////
// Helping methods to preserve properties

Back to the top