mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-1298 changed background color for transport tab and inaktive chat tab
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12293 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
holger.bergunde
parent
53bd9cd06c
commit
bfe4451dcd
@ -167,5 +167,5 @@ SparkTabbedPane.startColor = 236,236,236,255
|
||||
SparkTabbedPane.endColor = 236,236,236,255
|
||||
SparkTabbedPane.borderColor = 192,192,192,255
|
||||
Chat.activeTabColor = 0,0,0,255
|
||||
Chat.inactiveTabColor = 50,50,50,255
|
||||
Chat.inactiveTabColor = 80,50,80,255
|
||||
Chat.unreadMessageColor = 255,0,0,255
|
||||
|
||||
@ -51,6 +51,7 @@ import org.jivesoftware.sparkimpl.settings.local.SettingsManager;
|
||||
import javax.swing.*;
|
||||
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
@ -75,6 +76,7 @@ public class GatewayPlugin implements Plugin, ContactItemHandler {
|
||||
ProviderManager.getInstance().addIQProvider(Gateway.ELEMENT_NAME, Gateway.NAMESPACE, new Gateway.Provider());
|
||||
LocalPreferences localPref = SettingsManager.getLocalPreferences();
|
||||
useTab = localPref.getShowTransportTab();
|
||||
transferTab.setBackground((Color)UIManager.get("ContactItem.background"));
|
||||
SwingWorker thread = new SwingWorker() {
|
||||
public Object construct() {
|
||||
try {
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package org.jivesoftware.sparkimpl.plugin.gateways;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
import java.awt.EventQueue;
|
||||
import java.awt.GridBagConstraints;
|
||||
@ -15,10 +14,10 @@ import javax.swing.DefaultListModel;
|
||||
|
||||
import javax.swing.JCheckBox;
|
||||
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JList;
|
||||
import javax.swing.SwingConstants;
|
||||
import javax.swing.UIManager;
|
||||
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JPanel;
|
||||
@ -58,8 +57,6 @@ public class GatewayTabItem extends CollapsiblePane implements GatewayItem {
|
||||
private DefaultListModel model = new DefaultListModel();
|
||||
private JList _transportMenu = new JList(model);
|
||||
private JLabel _status = new JLabel();
|
||||
// private JPanel _listPanel = new JPanel(new VerticalFlowLayout(
|
||||
// VerticalFlowLayout.TOP, 10, 0, true, false));
|
||||
private JPanel _listPanel = new JPanel(new GridBagLayout());
|
||||
private JLabel _statusIcon = new JLabel();
|
||||
private RolloverButton _signInOut = new RolloverButton();
|
||||
@ -75,14 +72,15 @@ public class GatewayTabItem extends CollapsiblePane implements GatewayItem {
|
||||
SparkManager.getConnection(), _transport);
|
||||
|
||||
_autoJoin.setEnabled(false);
|
||||
_autoJoin.setBackground((Color)UIManager.get("ContactItem.background"));
|
||||
this.setIcon(transport.getIcon());
|
||||
_status.setForeground(Color.gray);
|
||||
_status.setForeground((Color)UIManager.get("ContactItemDescription.foreground"));
|
||||
_status.setFont(new Font(getFont().getName(), Font.ITALIC, getFont()
|
||||
.getSize()));
|
||||
getTitlePane().add(_status);
|
||||
this.setTitle(transport.getName());
|
||||
|
||||
_listPanel.setBackground(Color.lightGray);
|
||||
_listPanel.setBackground((Color)UIManager.get("ContactItem.background"));
|
||||
_transportMenu.setCellRenderer(new JPanelRenderer());
|
||||
|
||||
this.setContentPane(_listPanel);
|
||||
@ -143,7 +141,7 @@ public class GatewayTabItem extends CollapsiblePane implements GatewayItem {
|
||||
private void createTransportMenu() {
|
||||
|
||||
_signInOut.addActionListener(new ActionListener() {
|
||||
|
||||
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
if (signedIn) {
|
||||
|
||||
Reference in New Issue
Block a user