Browse Source

Use multicolor channel icons for better appearance in the dark mode

pull/542/head
Pēteris Caune 3 years ago
parent
commit
99bb71c920
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
7 changed files with 162 additions and 52 deletions
  1. +5
    -0
      CHANGELOG.md
  2. +117
    -34
      static/css/icomoon.css
  3. +4
    -0
      static/css/my_checks_desktop.css
  4. +3
    -1
      static/css/variables.css
  5. +33
    -17
      static/fonts/icomoon.svg
  6. BIN
      static/fonts/icomoon.ttf
  7. BIN
      static/fonts/icomoon.woff

+ 5
- 0
CHANGELOG.md View File

@ -1,6 +1,11 @@
# Changelog # Changelog
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## v1.22.0 - Unreleased
### Improvements
- Use multicolor channel icons for better appearance in the dark mode
## v1.21.0 - 2020-07-02 ## v1.21.0 - 2020-07-02
### Improvements ### Improvements


+ 117
- 34
static/css/icomoon.css View File

@ -1,11 +1,12 @@
@font-face { @font-face {
font-family: 'icomoon'; font-family: 'icomoon';
src: src:
url('../fonts/icomoon.ttf?nsf0dg') format('truetype'),
url('../fonts/icomoon.woff?nsf0dg') format('woff'),
url('../fonts/icomoon.svg?nsf0dg#icomoon') format('svg');
url('../fonts/icomoon.ttf?h8x72b') format('truetype'),
url('../fonts/icomoon.woff?h8x72b') format('woff'),
url('../fonts/icomoon.svg?h8x72b#icomoon') format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: block;
} }
[class^="ic-"], [class*=" ic-"] { [class^="ic-"], [class*=" ic-"] {
@ -23,57 +24,96 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.ic-call:before {
content: "\e91a";
color: rgb(255, 255, 255);
}
.ic-call:after {
content: "\e91d";
margin-left: -1em;
color: rgb(232, 26, 52);
opacity: 0.98;
}
.ic-victorops:before { .ic-victorops:before {
content: "\e900"; content: "\e900";
color: rgb(255, 255, 255);
}
.ic-victorops:after {
content: "\e91e";
margin-left: -1em;
color: rgb(44, 45, 46);
} }
.ic-zulip:before { .ic-zulip:before {
content: "\e90f"; content: "\e90f";
color: #6492fe;
color: rgb(255, 255, 255);
}
.ic-zulip:after {
content: "\e91f";
margin-left: -1em;
color: rgb(100, 146, 254);
} }
.ic-signal:before {
.ic-signal:after {
content: "\e91c"; content: "\e91c";
color: #2592e9; color: #2592e9;
} }
.ic-linenotify:before { .ic-linenotify:before {
content: "\e91b"; content: "\e91b";
color: #00c300;
color: rgb(255, 255, 255);
} }
.ic-call:before {
content: "\e91a";
color: #e81a34;
.ic-linenotify:after {
content: "\e920";
margin-left: -1em;
color: rgb(0, 195, 0);
} }
.ic-spike:before { .ic-spike:before {
content: "\e919"; content: "\e919";
color: #007bff;
color: rgb(255, 255, 255);
}
.ic-spike:after {
content: "\e921";
margin-left: -1em;
color: rgb(0, 123, 255);
} }
.ic-pd:before { .ic-pd:before {
content: "\e90b"; content: "\e90b";
color: #04ac38;
color: rgb(255, 255, 255);
}
.ic-pd:after {
content: "\e922";
margin-left: -1em;
color: rgb(4, 172, 56);
} }
.ic-shell:before { .ic-shell:before {
content: "\e917"; content: "\e917";
color: rgb(255, 255, 255);
}
.ic-shell:after {
content: "\e923";
margin-left: -1em;
color: rgb(34, 34, 34);
} }
.ic-msteams:before { .ic-msteams:before {
content: "\e916"; content: "\e916";
color: #4e56be;
color: rgb(255, 255, 255);
}
.ic-msteams:after {
content: "\e924";
margin-left: -1.056640625em;
color: rgb(78, 86, 190);
} }
.ic-opsgenie:before {
.ic-opsgenie:after {
content: "\e910"; content: "\e910";
color: #2684ff; color: #2684ff;
} }
.ic-mattermost:before {
.ic-mattermost:after {
content: "\e907"; content: "\e907";
color: #045acc; color: #045acc;
} }
.ic-pagerteam:before {
content: "\e914";
color: #cd2a00;
}
.ic-apprise:before {
.ic-apprise:after {
content: "\e915"; content: "\e915";
color: #236b6b; color: #236b6b;
} }
.ic-matrix:before {
.ic-matrix:after {
content: "\e901"; content: "\e901";
} }
.ic-started:before { .ic-started:before {
@ -81,34 +121,61 @@
} }
.ic-pagertree:before { .ic-pagertree:before {
content: "\e90d"; content: "\e90d";
color: #33ade2;
color: rgb(255, 255, 255);
}
.ic-pagertree:after {
content: "\e929";
margin-left: -1em;
color: rgb(51, 173, 226);
} }
.ic-po:before { .ic-po:before {
content: "\e90e"; content: "\e90e";
color: #249df1;
color: rgb(255, 255, 255);
}
.ic-po:after {
content: "\e92a";
margin-left: -1em;
color: rgb(36, 157, 241);
} }
.ic-email:before { .ic-email:before {
content: "\e90a"; content: "\e90a";
color: #4f5d73;
color: rgb(255, 255, 255);
} }
body.dark .ic-email:before {
color: #76a6f0;
.ic-email:after {
content: "\e92b";
margin-left: -1em;
color: rgb(79, 93, 115);
} }
.ic-webhook:before {
.ic-webhook:after {
content: "\e908"; content: "\e908";
color: #c73a63; color: #c73a63;
} }
.ic-sms:before { .ic-sms:before {
content: "\e904"; content: "\e904";
color: #95c144;
color: rgb(255, 255, 255);
}
.ic-sms:after {
content: "\e92c";
margin-left: -1em;
color: rgb(149, 193, 68);
} }
.ic-pushbullet:before { .ic-pushbullet:before {
content: "\e909"; content: "\e909";
color: #67bf79;
color: rgb(255, 255, 255);
}
.ic-pushbullet:after {
content: "\e92d";
margin-left: -1em;
color: rgb(103, 191, 121);
} }
.ic-discord:before { .ic-discord:before {
content: "\e90c"; content: "\e90c";
color: #7289da;
color: rgb(255, 255, 255);
}
.ic-discord:after {
content: "\e92e";
margin-left: -1em;
color: rgb(114, 137, 218);
} }
.ic-hipchat:before { .ic-hipchat:before {
content: "\e902"; content: "\e902";
@ -116,17 +183,27 @@ body.dark .ic-email:before {
} }
.ic-slack:before { .ic-slack:before {
content: "\e905"; content: "\e905";
color: #56b68b;
color: rgb(255, 255, 255);
} }
.ic-telegram:before {
.ic-slack:after {
content: "\e92f";
margin-left: -1em;
color: rgb(86, 182, 139);
}
.ic-telegram:after {
content: "\e906"; content: "\e906";
color: #2ca5e0; color: #2ca5e0;
} }
.ic-trello:before { .ic-trello:before {
content: "\e911"; content: "\e911";
color: #0079bf;
color: rgb(255, 255, 255);
}
.ic-trello:after {
content: "\e931";
margin-left: -1em;
color: rgb(0, 121, 191);
} }
.ic-whatsapp:before {
.ic-whatsapp:after {
content: "\e903"; content: "\e903";
color: #25d366; color: #25d366;
} }
@ -136,7 +213,13 @@ body.dark .ic-email:before {
.ic-cancel:before { .ic-cancel:before {
content: "\e5c9"; content: "\e5c9";
} }
.ic-up:before, .ic-new:before, .ic-ok:before {
.ic-up:before {
content: "\e86c";
}
.ic-new:before {
content: "\e86c";
}
.ic-ok:before {
content: "\e86c"; content: "\e86c";
} }
.ic-grace:before { .ic-grace:before {


+ 4
- 0
static/css/my_checks_desktop.css View File

@ -63,6 +63,10 @@
} }
#checks-table .integrations span.off:before { #checks-table .integrations span.off:before {
color: var(--channel-off-inside-color);
}
#checks-table .integrations span.off:after {
color: var(--channel-off-color); color: var(--channel-off-color);
} }


+ 3
- 1
static/css/variables.css View File

@ -21,6 +21,7 @@
--btn-remove-color: #d43f3a; --btn-remove-color: #d43f3a;
--btn-remove-hover: #ffebea; --btn-remove-hover: #ffebea;
--channel-off-color: #ddd; --channel-off-color: #ddd;
--channel-off-inside-color: #FFF;
--close-color: #000; --close-color: #000;
--debug-warning-bg: #eee; --debug-warning-bg: #eee;
--dropdown-bg: #fff; --dropdown-bg: #fff;
@ -93,7 +94,8 @@ body.dark {
--btn-remove-bg: #202024; --btn-remove-bg: #202024;
--btn-remove-color: #ff4c46; --btn-remove-color: #ff4c46;
--btn-remove-hover: #3f1a22; --btn-remove-hover: #3f1a22;
--channel-off-color: hsl(240, 2%, 40%);
--channel-off-color: hsl(240, 6.7%, 23.5%);
--channel-off-inside-color: hsl(240, 3.7%, 43.5%);
--close-color: #fff; --close-color: #fff;
--debug-warning-bg: #60002d; --debug-warning-bg: #60002d;
--dropdown-bg: hsl(240, 6%, 16%); --dropdown-bg: hsl(240, 6%, 16%);


+ 33
- 17
static/fonts/icomoon.svg
File diff suppressed because it is too large
View File


BIN
static/fonts/icomoon.ttf View File


BIN
static/fonts/icomoon.woff View File


Loading…
Cancel
Save