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}:

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) => {
${el.model.get('spoiler_hint')} - + ${ el.model.get('is_spoiler_visible') ? i18n_show_less : i18n_show }
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` + + + `;