Chat tabbed pane look modified in order to help better distinguish selected and unselected tabs.

cusax-fix
Yana Stamcheva 17 years ago
parent 4882fb691c
commit 18c594ac3e

@ -72,10 +72,10 @@ service.gui.MENU_DISABLED_FOREGROUND=999999
service.gui.TAB_TITLE_HIGHLIGHT=DE4900
# Tab default text color.
service.gui.TAB_TITLE=474747
service.gui.TAB_TITLE=1B1B1B
# Tab text color for selected tabs.
service.gui.TAB_TITLE_SELECTED=FFFFFF
service.gui.TAB_TITLE_SELECTED=000000
# Custom components GUI constants

@ -163,6 +163,10 @@ service.gui.smilies.SMILEY9=resources/images/impl/gui/common/smilies/default/smi
service.gui.smilies.SMILEY10=resources/images/impl/gui/common/smilies/default/smiley10.gif
service.gui.smilies.SMILEY11=resources/images/impl/gui/common/smilies/default/smiley11.gif
service.gui.smilies.SMILEY12=resources/images/impl/gui/common/smilies/default/smiley12.gif
service.gui.smilies.SMILEY13=resources/images/impl/gui/common/smilies/default/smiley13.gif
service.gui.smilies.SMILEY14=resources/images/impl/gui/common/smilies/default/smiley14.gif
service.gui.smilies.SMILEY15=resources/images/impl/gui/common/smilies/default/smiley15.gif
service.gui.smilies.SMILEY16=resources/images/impl/gui/common/smilies/default/smiley16.gif
# Look and Feel images
service.gui.lookandfeel.CLOSE_TAB_ICON=resources/images/impl/gui/buttons/closeTab.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 394 B

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 B

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 416 B

After

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 394 B

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 B

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 418 B

After

Width:  |  Height:  |  Size: 277 B

@ -19,6 +19,7 @@
import javax.swing.border.*;
import javax.swing.event.*;
import net.java.sip.communicator.util.*;
import net.java.sip.communicator.util.swing.event.*;
import net.java.sip.communicator.util.swing.plaf.*;
@ -54,6 +55,10 @@ public SIPCommTabbedPane(boolean closingTabs, boolean maximizingTabs)
UIManager.getDefaults()
.put("TabbedPane.contentBorderInsets", new Insets(0, 0, 0, 0));
this.setForeground(
new Color(UtilActivator.getResources()
.getColor("service.gui.TAB_TITLE")));
this.setUI(new SIPCommTabbedPaneEnhancedUI());
if(closingTabs)

@ -209,7 +209,15 @@ private void internalPaintTabBackground(Graphics g, int tabPlacement,
middleImg = UtilActivator.getImage(TAB_MIDDLE_BG);
rightImg = UtilActivator.getImage(TAB_RIGHT_BG);
}
// Remove the existing gap between the tabs and the panel, which is due
// to the removal of the tabbed pane border.
y++;
// If the current tab is not the selected tab we paint it 2 more pixels
// to the bottom in order to create the disabled look.
if (!isSelected)
y+=2;
g2.drawImage(leftImg, x, y, null);
g2.drawImage(middleImg, x + leftImg.getWidth(), y,
w - leftImg.getWidth() - rightImg.getWidth() + tabOverlap,

Loading…
Cancel
Save