diff --git a/images/arrow_drop_down.png b/images/arrow_drop_down.png
deleted file mode 100644
index 4b1be1c4..00000000
Binary files a/images/arrow_drop_down.png and /dev/null differ
diff --git a/images/audio.png b/images/audio.png
deleted file mode 100644
index d29eeb7d..00000000
Binary files a/images/audio.png and /dev/null differ
diff --git a/images/audio.svg b/images/audio.svg
new file mode 100644
index 00000000..9f81966e
--- /dev/null
+++ b/images/audio.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/back.png b/images/back.png
deleted file mode 100644
index 22b624b3..00000000
Binary files a/images/back.png and /dev/null differ
diff --git a/images/back.svg b/images/back.svg
new file mode 100644
index 00000000..4449fbd7
--- /dev/null
+++ b/images/back.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/back_white.png b/images/back_white.png
deleted file mode 100644
index 4d7869d2..00000000
Binary files a/images/back_white.png and /dev/null differ
diff --git a/images/check-black.png b/images/check-black.png
deleted file mode 100644
index 8e05ce55..00000000
Binary files a/images/check-black.png and /dev/null differ
diff --git a/images/check-white.png b/images/check-white.png
deleted file mode 100644
index 90c92b3d..00000000
Binary files a/images/check-white.png and /dev/null differ
diff --git a/images/check.png b/images/check.png
deleted file mode 100644
index 1c14c9c4..00000000
Binary files a/images/check.png and /dev/null differ
diff --git a/images/check.svg b/images/check.svg
new file mode 100644
index 00000000..e098d569
--- /dev/null
+++ b/images/check.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/default.png b/images/default.png
deleted file mode 100644
index cdf0bb9f..00000000
Binary files a/images/default.png and /dev/null differ
diff --git a/images/double-check-black.png b/images/double-check-black.png
deleted file mode 100644
index 7ac2ba93..00000000
Binary files a/images/double-check-black.png and /dev/null differ
diff --git a/images/double-check-white.png b/images/double-check-white.png
deleted file mode 100644
index f5c9ba3f..00000000
Binary files a/images/double-check-white.png and /dev/null differ
diff --git a/images/double-check.svg b/images/double-check.svg
new file mode 100644
index 00000000..37adae6a
--- /dev/null
+++ b/images/double-check.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/icon_tile.png b/images/icon_tile.png
deleted file mode 100644
index 4710e2a7..00000000
Binary files a/images/icon_tile.png and /dev/null differ
diff --git a/images/menu.png b/images/menu.png
deleted file mode 100644
index 017e45ed..00000000
Binary files a/images/menu.png and /dev/null differ
diff --git a/images/menu.svg b/images/menu.svg
new file mode 100644
index 00000000..c696d4c8
--- /dev/null
+++ b/images/menu.svg
@@ -0,0 +1,4 @@
+
diff --git a/images/menu_black.png b/images/menu_black.png
deleted file mode 100644
index 0e4f2f6e..00000000
Binary files a/images/menu_black.png and /dev/null differ
diff --git a/images/pencil.png b/images/pencil.png
deleted file mode 100644
index 9efbaae2..00000000
Binary files a/images/pencil.png and /dev/null differ
diff --git a/images/refresh.png b/images/refresh.png
deleted file mode 100644
index 94ca8a1b..00000000
Binary files a/images/refresh.png and /dev/null differ
diff --git a/images/video.png b/images/video.png
deleted file mode 100644
index 8292addb..00000000
Binary files a/images/video.png and /dev/null differ
diff --git a/images/video.svg b/images/video.svg
new file mode 100644
index 00000000..3bd91896
--- /dev/null
+++ b/images/video.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/x.png b/images/x.png
deleted file mode 100644
index 41a77702..00000000
Binary files a/images/x.png and /dev/null differ
diff --git a/images/x.svg b/images/x.svg
new file mode 100644
index 00000000..40b5e39d
--- /dev/null
+++ b/images/x.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/js/notifications.js b/js/notifications.js
index 985a0f52..b62110c7 100644
--- a/js/notifications.js
+++ b/js/notifications.js
@@ -78,7 +78,7 @@
}.bind(this)),
buttons : [{
title : 'Mark all as read',
- iconUrl : 'images/check.png'
+ iconUrl : 'images/check.svg'
}]
});
} else {
diff --git a/js/views/file_input_view.js b/js/views/file_input_view.js
index b8fa45ef..a886ea2c 100644
--- a/js/views/file_input_view.js
+++ b/js/views/file_input_view.js
@@ -119,8 +119,8 @@
var type = file.type.split('/')[0];
switch (type) {
- case 'audio': this.addThumb('/images/audio.png'); break;
- case 'video': this.addThumb('/images/video.png'); break;
+ case 'audio': this.addThumb('/images/audio.svg'); break;
+ case 'video': this.addThumb('/images/video.svg'); break;
case 'image':
this.oUrl = URL.createObjectURL(file);
this.addThumb(this.oUrl);
diff --git a/stylesheets/_conversation.scss b/stylesheets/_conversation.scss
index 8b52acc8..146e4745 100644
--- a/stylesheets/_conversation.scss
+++ b/stylesheets/_conversation.scss
@@ -146,16 +146,6 @@
span {
vertical-align: middle;
}
-
- &:before {
- content: '';
- display: inline-block;
- vertical-align: middle;
- width: 18px;
- height: 18px;
- background: url('/images/refresh.png') no-repeat center center;
- background-size: 100%;
- }
}
}
@@ -332,11 +322,11 @@
}
.sent .status {
display: inline-block;
- background: url('/images/check-black.png') center;
+ @include color-svg('/images/check.svg', black);
}
.delivered .status {
display: inline-block;
- background: url('/images/double-check-black.png') center;
+ @include color-svg('/images/double-check.svg', black);
}
.pending .status {
display: inline-block;
diff --git a/stylesheets/_global.scss b/stylesheets/_global.scss
index a044c91b..9e7b881e 100644
--- a/stylesheets/_global.scss
+++ b/stylesheets/_global.scss
@@ -61,10 +61,11 @@ button { cursor: pointer; }
a { color: $blue; }
.inactive button.back {
- background: url('/images/back.png') no-repeat center center;
+ @include header-icon-black('/images/back.svg');
+
}
button.back {
- background: url('/images/back_white.png') no-repeat center center;
+ @include header-icon-white('/images/back.svg');
}
::-webkit-scrollbar {
@@ -96,7 +97,7 @@ button.back {
}
.inactive .menu .hamburger {
- background: url('/images/menu_black.png') no-repeat center;
+ @include header-icon-black('/images/menu.svg');
}
.menu {
@@ -106,12 +107,8 @@ button.back {
.hamburger {
width: $button-height;
height: $button-height;
- background: url('/images/menu.png') no-repeat center;
vertical-align: middle;
-
- &:hover {
- background-color: rgba(0,0,0, 0.2);
- }
+ @include header-icon-white('/images/menu.svg');
}
.menu-list {
display: none;
@@ -260,10 +257,6 @@ $avatar-size: 44px;
}
}
-.conversation-header .check {
- float: right;
- background: url('/images/check.png') no-repeat center center;
-}
.conversation-list-item {
cursor: pointer;
&:hover {
diff --git a/stylesheets/_index.scss b/stylesheets/_index.scss
index 25123560..f64effd8 100644
--- a/stylesheets/_index.scss
+++ b/stylesheets/_index.scss
@@ -100,7 +100,7 @@ input.search {
display: block;
width: 16px;
height: 16px;
- background: url('/images/x.png') no-repeat center;
+ background: url('/images/x.svg') no-repeat center;
background-size: cover;
}
@@ -109,24 +109,6 @@ input.search {
}
}
-.tool-bar {
- button.show-new-conversation {
- float: right;
- height: $button-height;
- width: $button-height;
- border: 0;
- outline: 0;
- font: 300 36px $roboto;
- color: white;
- background: url('/images/pencil.png') no-repeat center center;
-
- &:hover {
- background-color: darken($grey_l, 3%);
- }
- }
-
-}
-
.last-timestamp {
font-size: smaller;
float: right;
diff --git a/stylesheets/_variables.scss b/stylesheets/_variables.scss
index cda15a99..a7855036 100644
--- a/stylesheets/_variables.scss
+++ b/stylesheets/_variables.scss
@@ -38,3 +38,21 @@ $unread-badge-size: 21px;
$loading-height: 16px;
$big-avatar-min-width: 900px;
+
+@mixin color-svg($svg, $color) {
+ -webkit-mask: url($svg) no-repeat center;
+ -webkit-mask-size: 100%;
+ background-color: $color;
+}
+@mixin header-icon-white($svg) {
+ @include color-svg($svg, rgba(255,255,255, 0.8));
+ &:hover {
+ @include color-svg($svg, white);
+ }
+}
+@mixin header-icon-black($svg) {
+ @include color-svg($svg, rgba(0,0,0, 0.5));
+ &:hover {
+ @include color-svg($svg, black);
+ }
+}
diff --git a/stylesheets/manifest.css b/stylesheets/manifest.css
index 1d0f669e..2306a51d 100644
--- a/stylesheets/manifest.css
+++ b/stylesheets/manifest.css
@@ -67,10 +67,22 @@ a {
color: #2090ea; }
.inactive button.back {
- background: url("/images/back.png") no-repeat center center; }
+ -webkit-mask: url("/images/back.svg") no-repeat center;
+ -webkit-mask-size: 100%;
+ background-color: rgba(0, 0, 0, 0.5); }
+ .inactive button.back:hover {
+ -webkit-mask: url("/images/back.svg") no-repeat center;
+ -webkit-mask-size: 100%;
+ background-color: black; }
button.back {
- background: url("/images/back_white.png") no-repeat center center; }
+ -webkit-mask: url("/images/back.svg") no-repeat center;
+ -webkit-mask-size: 100%;
+ background-color: rgba(255, 255, 255, 0.8); }
+ button.back:hover {
+ -webkit-mask: url("/images/back.svg") no-repeat center;
+ -webkit-mask-size: 100%;
+ background-color: white; }
::-webkit-scrollbar {
width: 10px; }
@@ -91,7 +103,13 @@ button.back {
display: table-cell; }
.inactive .menu .hamburger {
- background: url("/images/menu_black.png") no-repeat center; }
+ -webkit-mask: url("/images/menu.svg") no-repeat center;
+ -webkit-mask-size: 100%;
+ background-color: rgba(0, 0, 0, 0.5); }
+ .inactive .menu .hamburger:hover {
+ -webkit-mask: url("/images/menu.svg") no-repeat center;
+ -webkit-mask-size: 100%;
+ background-color: black; }
.menu {
position: relative;
@@ -99,10 +117,14 @@ button.back {
.menu .hamburger {
width: 36px;
height: 36px;
- background: url("/images/menu.png") no-repeat center;
- vertical-align: middle; }
+ vertical-align: middle;
+ -webkit-mask: url("/images/menu.svg") no-repeat center;
+ -webkit-mask-size: 100%;
+ background-color: rgba(255, 255, 255, 0.8); }
.menu .hamburger:hover {
- background-color: rgba(0, 0, 0, 0.2); }
+ -webkit-mask: url("/images/menu.svg") no-repeat center;
+ -webkit-mask-size: 100%;
+ background-color: white; }
.menu .menu-list {
display: none;
position: absolute;
@@ -217,10 +239,6 @@ img.emoji {
.new-group-update .members .contact .number {
display: none; }
-.conversation-header .check {
- float: right;
- background: url("/images/check.png") no-repeat center center; }
-
.conversation-list-item {
cursor: pointer; }
.conversation-list-item:hover {
@@ -511,23 +529,11 @@ input.search {
display: block;
width: 16px;
height: 16px;
- background: url("/images/x.png") no-repeat center;
+ background: url("/images/x.svg") no-repeat center;
background-size: cover; }
input.search::-webkit-search-cancel-button:hover {
cursor: pointer; }
-.tool-bar button.show-new-conversation {
- float: right;
- height: 36px;
- width: 36px;
- border: 0;
- outline: 0;
- font: 300 36px Roboto, "Helvetica Neue", Arial, Helvetica, sans-serif;
- color: white;
- background: url("/images/pencil.png") no-repeat center center; }
- .tool-bar button.show-new-conversation:hover {
- background-color: #ebebeb; }
-
.last-timestamp {
font-size: smaller;
float: right;
@@ -732,14 +738,6 @@ input.search {
font-weight: bold; }
.message-detail .info button span {
vertical-align: middle; }
- .message-detail .info button:before {
- content: '';
- display: inline-block;
- vertical-align: middle;
- width: 18px;
- height: 18px;
- background: url("/images/refresh.png") no-repeat center center;
- background-size: 100%; }
.message-detail .contacts .contact-detail {
padding: 0 36px;
margin-bottom: 5px; }
@@ -886,11 +884,15 @@ input.search {
.message-container .sent .status,
.message-list .sent .status {
display: inline-block;
- background: url("/images/check-black.png") center; }
+ -webkit-mask: url("/images/check.svg") no-repeat center;
+ -webkit-mask-size: 100%;
+ background-color: black; }
.message-container .delivered .status,
.message-list .delivered .status {
display: inline-block;
- background: url("/images/double-check-black.png") center; }
+ -webkit-mask: url("/images/double-check.svg") no-repeat center;
+ -webkit-mask-size: 100%;
+ background-color: black; }
.message-container .pending .status,
.message-list .pending .status {
display: inline-block;