From a07bd7c8177274ee3ed2497e64553a523b778105 Mon Sep 17 00:00:00 2001
From: JC Brand
Date: Mon, 14 Feb 2022 19:29:57 +0100
Subject: [PATCH] Use SVG icons for refresh button and toggle switch
---
src/modals/templates/user-details.js | 8 +++++-
.../muc-views/modals/templates/muc-details.js | 26 +++++++++----------
src/shared/chat/templates/message-text.js | 2 +-
src/shared/styles/messages.scss | 4 +--
src/shared/templates/icons.js | 3 +++
5 files changed, 26 insertions(+), 17 deletions(-)
diff --git a/src/modals/templates/user-details.js b/src/modals/templates/user-details.js
index 6b2da3531..487b085d6 100644
--- a/src/modals/templates/user-details.js
+++ b/src/modals/templates/user-details.js
@@ -55,7 +55,13 @@ export default (o) => {
diff --git a/src/plugins/muc-views/modals/templates/muc-details.js b/src/plugins/muc-views/modals/templates/muc-details.js
index 5296e4207..c649221f0 100644
--- a/src/plugins/muc-views/modals/templates/muc-details.js
+++ b/src/plugins/muc-views/modals/templates/muc-details.js
@@ -68,19 +68,19 @@ export default (model) => {
${i18n_features}:
- ${ features.passwordprotected ? html`- ${i18n_password_protected} - ${i18n_password_help}
` : '' }
- ${ features.unsecured ? html`- ${i18n_no_password_required} - ${i18n_no_pass_help}
` : '' }
- ${ features.hidden ? html`- ${i18n_hidden} - ${i18n_hidden_help}
` : '' }
- ${ features.public_room ? html`- ${i18n_public} - ${o.__('This groupchat is publicly searchable') }
` : '' }
- ${ features.membersonly ? html`- ${i18n_members_only} - ${i18n_members_help}
` : '' }
- ${ features.open ? html`- ${i18n_open} - ${i18n_open_help}
` : '' }
- ${ features.persistent ? html`- ${i18n_persistent} - ${i18n_persistent_help}
` : '' }
- ${ features.temporary ? html`- ${i18n_temporary} - ${i18n_temporary_help}
` : '' }
- ${ features.nonanonymous ? html`- ${i18n_not_anonymous} - ${i18n_not_anonymous_help}
` : '' }
- ${ features.semianonymous ? html`- ${i18n_semi_anon} - ${i18n_semi_anon_help}
` : '' }
- ${ features.moderated ? html`- ${i18n_moderated} - ${i18n_moderated_help}
` : '' }
- ${ features.unmoderated ? html`- ${i18n_not_moderated} - ${i18n_not_moderated_help}
` : '' }
- ${ features.mam_enabled ? html`- ${i18n_archiving} - ${i18n_archiving_help}
` : '' }
+ ${ features.passwordprotected ? html`- ${i18n_password_protected} - ${i18n_password_help}
` : '' }
+ ${ features.unsecured ? html`- ${i18n_no_password_required} - ${i18n_no_pass_help}
` : '' }
+ ${ features.hidden ? html`- ${i18n_hidden} - ${i18n_hidden_help}
` : '' }
+ ${ features.public_room ? html`- ${i18n_public} - ${o.__('This groupchat is publicly searchable') }
` : '' }
+ ${ features.membersonly ? html`- ${i18n_members_only} - ${i18n_members_help}
` : '' }
+ ${ features.open ? html`- ${i18n_open} - ${i18n_open_help}
` : '' }
+ ${ features.persistent ? html`- ${i18n_persistent} - ${i18n_persistent_help}
` : '' }
+ ${ features.temporary ? html`- ${i18n_temporary} - ${i18n_temporary_help}
` : '' }
+ ${ features.nonanonymous ? html`- ${i18n_not_anonymous} - ${i18n_not_anonymous_help}
` : '' }
+ ${ features.semianonymous ? html`- ${i18n_semi_anon} - ${i18n_semi_anon_help}
` : '' }
+ ${ features.moderated ? html`- ${i18n_moderated} - ${i18n_moderated_help}
` : '' }
+ ${ features.unmoderated ? html`- ${i18n_not_moderated} - ${i18n_not_moderated_help}
` : '' }
+ ${ features.mam_enabled ? html`- ${i18n_archiving} - ${i18n_archiving_help}
` : '' }
diff --git a/src/shared/chat/templates/message-text.js b/src/shared/chat/templates/message-text.js
index 21d3b3ca6..e314d0a4f 100644
--- a/src/shared/chat/templates/message-text.js
+++ b/src/shared/chat/templates/message-text.js
@@ -17,7 +17,7 @@ export default (el) => {
diff --git a/src/shared/styles/messages.scss b/src/shared/styles/messages.scss
index 6564ecb62..e8aa5b978 100644
--- a/src/shared/styles/messages.scss
+++ b/src/shared/styles/messages.scss
@@ -133,9 +133,9 @@
margin-bottom: 0.5em;
}
.spoiler-toggle {
- color: white;
+ color: var(--background);
i {
- color: white;
+ color: var(--background);
padding-right: 0.5em;
}
&:before {
diff --git a/src/shared/templates/icons.js b/src/shared/templates/icons.js
index f914f0dbc..9d2c10cb2 100644
--- a/src/shared/templates/icons.js
+++ b/src/shared/templates/icons.js
@@ -220,5 +220,8 @@ export default () => html`
+
+
+
`;