UI and Icons Update

This commit is contained in:
Amos Chepchieng 2020-12-19 15:34:22 +03:00
parent 5a6d550b16
commit fa6651c27d
29 changed files with 12 additions and 6 deletions

View File

@ -334,6 +334,7 @@ public class SparkRes {
public static final String INVISIBLE = "INVISIBLE";
public static final String CHECK_UPDATE = "CHECK_UPDATE";
public static final String NOTIFICATIONS = "NOTIFICATIONS";
public static final String UPLOAD_ICON = "UPLOAD_ICON";
private static final ClassLoader cl = SparkRes.class.getClassLoader();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 592 B

After

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 756 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 791 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 887 B

After

Width:  |  Height:  |  Size: 809 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 973 B

After

Width:  |  Height:  |  Size: 801 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 931 B

After

Width:  |  Height:  |  Size: 845 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 970 B

After

Width:  |  Height:  |  Size: 984 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1005 B

After

Width:  |  Height:  |  Size: 950 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 879 B

After

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 852 B

After

Width:  |  Height:  |  Size: 809 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 860 B

After

Width:  |  Height:  |  Size: 937 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 964 B

After

Width:  |  Height:  |  Size: 710 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 932 B

After

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 847 B

After

Width:  |  Height:  |  Size: 802 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 926 B

After

Width:  |  Height:  |  Size: 855 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 896 B

After

Width:  |  Height:  |  Size: 841 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 892 B

After

Width:  |  Height:  |  Size: 920 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 864 B

After

Width:  |  Height:  |  Size: 813 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 548 B

After

Width:  |  Height:  |  Size: 803 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 444 B

After

Width:  |  Height:  |  Size: 717 B

View File

@ -206,11 +206,11 @@ FORUM_TAB_TITLE = Forums
CANCEL_IMAGE = images/cancel.gif
CONFERENCE_IMAGE_24x24 = images/icons/conference.png
CONFERENCE_IMAGE_16x16 = images/icons/conference.png
PROFILE_IMAGE_24x24 = images/profile_24x24.png
PROFILE_IMAGE_24x24 = images/icons/profile.png
SEARCH_USER_16x16 = images/icons/search.png
SEND_FILE_24x24 = images/icons/send_file.png
ADD_IMAGE_24x24 = images/icons/add_image.png
TELEPHONE_24x24 = images/telephone_24x24.png
TELEPHONE_24x24 = images/icons/phone.png
IM_DND = images/im_dnd.png
IM_AWAY = images/im_away.png
INVISIBLE = images/im_invisible.png
@ -267,14 +267,14 @@ BACKGROUND_IMAGE = images/background.png
FREE_TO_CHAT_IMAGE = images/im_free_chat.png
SOUND_PREFERENCES_IMAGE = images/icons/sound.png
SPARK_LOGOUT_IMAGE = images/spark_100.jpg
PHOTO_IMAGE = images/photo_scenery.png
PHOTO_IMAGE = images/icons/photo.png
PLUGIN_IMAGE = images/icons/plugins.png
SMALL_PROFILE_IMAGE = images/small_profile.png
CHANGELOG_IMAGE = images/doc-changelog-16x16.gif
README_IMAGE = images/doc-readme-16x16.gif
DOWN_OPTION_IMAGE = images/option.png
STICKY_NOTE_IMAGE = images/sticky.png
HISTORY_24x24 = images/history-24x24.png
HISTORY_24x24 = images/icons/history.png
PANE_UP_ARROW_IMAGE = images/blueArrowRight.png
PANE_DOWN_ARROW_IMAGE = images/blueArrowDown.png
PROFILE_IMAGE_16x16 = images/profile_16x16.png
@ -336,7 +336,7 @@ IM_UNAVAILABLE_STALE_IMAGE = images/im_unavailable_stale.png
DIVIDER_IMAGE = images/divider.png
LIGHTING_BOLT_IMAGE = images/lightning16.png
HEADSET_IMAGE = images/headset.png
BUZZ_IMAGE = images/bell.png
BUZZ_IMAGE = images/icons/buzz.png
SETTINGS_IMAGE_16x16 = images/settings16x16.png
SETTINGS_IMAGE_24x24 = images/settings24x24.png
@ -355,3 +355,7 @@ FILTER_LABEL = Search
# Language
LANGUAGE_ICON = images/icons/language.png
EXECUTABLE_NAME = Spark.exe
#new icons
UPLOAD_ICON = images/icons/upload.png

View File

@ -40,6 +40,7 @@ import org.jivesoftware.sparkimpl.updater.EasySSLProtocolSocketFactory;
import org.jxmpp.jid.impl.JidCreate;
import javax.xml.bind.DatatypeConverter;
import org.jivesoftware.resource.SparkRes;
public class ChatRoomDecorator
{
@ -54,7 +55,7 @@ public class ChatRoomDecorator
String imageString = "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAHYYAAB2GAV2iE4EAAAETSURBVDhPtZMxioUwEIbHFdFCEQVB7BSs7EUQvICtp7CRB95DCytP4BW8hIWFF7ARL6CN5ulsYFlffMU+9mvyzwz5k0wSjhzAB3zR8c+8NcjzHHRdhyiKaIbBeQQWTdOQYzLqNE2J7/uor9z2oK5rGMcR4jiGIAjANE2YpolWf7g9AsdxIIoiJEkC27aBIAi08humwePxAFVVUWuaBjzPo2bBNCjLEhRFodF7/u8a933HHkiShPFNr9nXeKb7vieO46A+sSwLxyvMHdi2Deu6QlVVuLLneVAUBa1e+PZ5RZZl4rou7iDLMpp95fYhLcsCbduCYRgQhiHNMkCbC/M8k2EYUB+PiHRdR46mYnzlw+8M8ASnHRlMzJ472gAAAABJRU5ErkJggg==";
byte[] imageByte = DatatypeConverter.parseBase64Binary(imageString);
ImageIcon fileuploadIcon = new ImageIcon(imageByte);
fileuploadButton = new RolloverButton(fileuploadIcon);
fileuploadButton = new RolloverButton(SparkRes.getImageIcon("UPLOAD_ICON"));
fileuploadButton.setToolTipText(GraphicUtils.createToolTip("Http File Upload"));
fileuploadButton.addActionListener(event -> {