SPARK-856 Avatars in contact list are too small

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@9202 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-09-22 20:57:41 +00:00
committed by derek
parent d259369bc5
commit 0ceb3e6e6e
2 changed files with 14 additions and 5 deletions

View File

@ -479,7 +479,7 @@ public class ContactItem extends JPanel {
}
else {
ImageIcon icon = new ImageIcon(url);
icon = GraphicUtils.scale(icon, 16, 16);
icon = GraphicUtils.scale(icon, 24, 24);
setSideIcon(icon);
}
}

View File

@ -30,18 +30,28 @@ public class SettingsManager {
private static List<PreferenceListener> listeners = new ArrayList<PreferenceListener>();
private static boolean fileExists = false;
private SettingsManager() {
}
/**
* Returns the LocalPreferences for this agent.
* Returns the LocalPreferences for this user.
*
* @return the LocalPreferences for this agent.
* @return the LocalPreferences for this user.
*/
public static LocalPreferences getLocalPreferences() {
if(localPreferences != null){
return localPreferences;
}
if (!exists() && localPreferences == null) {
if (!fileExists) {
fileExists = exists();
}
if (!fileExists && localPreferences == null) {
localPreferences = new LocalPreferences();
saveSettings();
}
if (localPreferences == null) {
@ -50,7 +60,6 @@ public class SettingsManager {
localPreferences = load();
}
return localPreferences;
}