From c94e39c9d34b18f2ed87f9b5bca8b5dff37ea44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 5 Jul 2021 17:55:13 +0300 Subject: [PATCH] Add CSS to invert Matrix and Mattermost logos in dark mode --- static/css/channels.css | 8 ++++++++ templates/front/channels.html | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/static/css/channels.css b/static/css/channels.css index 6e25c017..e07e5fad 100644 --- a/static/css/channels.css +++ b/static/css/channels.css @@ -235,3 +235,11 @@ table.channels-table > tbody > tr > th { .channel-modal .modal-body { padding: 15px 40px; } + +body.dark .icon.mattermost { + filter: invert(); +} + +body.dark .icon.matrix { + filter: invert(); +} diff --git a/templates/front/channels.html b/templates/front/channels.html index f4fa3ae9..b6b9c467 100644 --- a/templates/front/channels.html +++ b/templates/front/channels.html @@ -30,7 +30,7 @@ {{ ch.get_kind_display }} icon @@ -263,7 +263,7 @@ {% if enable_matrix %}
  • Matrix icon + class="icon matrix" alt="Matrix icon" />

    Matrix

    Post notifications to a Matrix room.

    @@ -274,7 +274,7 @@ {% if enable_mattermost %}
  • Mattermost icon + class="icon mattermost" alt="Mattermost icon" />

    Mattermost

    High Trust Messaging for the Enterprise.