Arrow added to the presence selector box.

cusax-fix
Yana Stamcheva 17 years ago
parent 7ddf0c5ab2
commit 0307806c3e

@ -22,6 +22,8 @@ preferredAccountWizard=
tabOverlap=10
mainWindowWidth=250
mainWindowHeight=600
minMainWindowWidth=100
minMainWindowHeight=400
chatWindowWidth=500
chatWindowHeight=400
logoBarWidth=0

@ -182,6 +182,8 @@ LEAVE_ICON=resources/images/impl/gui/common/leave.png
STATUS_SEPARATOR_ICON=resources/images/impl/gui/common/statusSeparator.png
MORE_BUTTON=resources/images/impl/gui/buttons/moreButton.png
TOOL_BAR_BACKGROUND=resources/images/impl/gui/common/toolbarBackground.png
MENU_BACKGROUND=resources/images/impl/gui/common/menuBackground.png
WINDOW_TITLE_BAR=resources/images/impl/gui/common/windowTitleBarBackground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

@ -100,6 +100,8 @@ public void loadApplicationGui()
this.mainFrame = new MainFrame();
this.mainFrame.initBounds();
GuiActivator.getUIService().registerExportedWindow(mainFrame);
this.loginManager = new LoginManager(mainFrame);

@ -139,13 +139,5 @@ public void paintComponent(Graphics g)
AntialiasingManager.activateAntialiasing(g2);
super.paintComponent(g2);
g2.setStroke(new BasicStroke(1.5f));
g2.setColor(new Color(0x646464));
if (isMouseOver)
g.drawRoundRect(0, 0, this.getWidth() - 1,
this.getHeight() - 3, 5, 5);
}
}

@ -132,8 +132,6 @@ public MainFrame()
this.addWindowListener(new MainFrameWindowAdapter());
this.initBounds();
this.initTitleFont();
String applicationName
@ -195,13 +193,20 @@ private void init()
/**
* Sets frame size and position.
*/
private void initBounds()
public void initBounds()
{
int width
= GuiActivator.getResources().getSettingsInt("mainWindowWidth");
int height
= GuiActivator.getResources().getSettingsInt("mainWindowHeight");
int minWidth
= GuiActivator.getResources().getSettingsInt("minMainWindowWidth");
int minHeight
= GuiActivator.getResources().getSettingsInt("minMainWindowHeight");
this.setMinimumSize(new Dimension(minWidth, minHeight));
this.setSize(width, height);
this.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width

@ -53,19 +53,20 @@ public AccountStatusPanel(MainFrame mainFrame)
{
super(new BorderLayout(10, 0));
this.mainFrame = mainFrame;
statusComboBox = new GlobalStatusSelectorBox(mainFrame);
if (ConfigurationManager.isTransparentWindowEnabled())
this.setUI(new SIPCommOpaquePanelUI());
this.mainFrame = mainFrame;
this.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
this.setOpaque(false);
this.accountNameLabel.setOpaque(false);
this.statusComboBox.setOpaque(false);
this.rightPanel.setOpaque(false);
statusComboBox = new GlobalStatusSelectorBox(mainFrame);
// Align status combo box with account name field.
statusMenuBar.setLayout(new BorderLayout(0, 0));
statusComboBox.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));

@ -40,6 +40,10 @@ public class GlobalStatusSelectorBox
extends StatusSelectorMenu
implements ActionListener
{
private int IMAGE_INDENT = 10;
private Image arrowImage = ImageLoader.getImage(ImageLoader.MORE_BUTTON);
private Logger logger = Logger.getLogger(
GlobalStatusSelectorBox.class.getName());
@ -752,4 +756,17 @@ public String getLastStatusString(ProtocolProviderService protocolProvider)
return lastStatus;
}
/**
* Overwrites the <tt>paintComponent(Graphics g)</tt> method in order to
* provide a new look and the mouse moves over this component.
*/
public void paintComponent(Graphics g)
{
super.paintComponent(g);
g.drawImage(arrowImage,
this.getWidth() - arrowImage.getWidth(null) - IMAGE_INDENT,
(this.getHeight() - arrowImage.getHeight(null))/2, null);
}
}

Loading…
Cancel
Save