Fix MUC icon colors in controlbox

The default icon color is used elsewhere and is sufficient.

The `var(--inverse-link-color)` used previously did not have enough
contrast in the default theme.
This commit is contained in:
JC Brand 2022-10-26 09:25:15 +02:00
parent 40024f4599
commit cc6a20b3e6

View File

@ -16,7 +16,7 @@ const bookmark = (o) => {
@click=${o.removeBookmark} @click=${o.removeBookmark}
title="${ o.bookmarked ? i18n_remove_bookmark : i18n_add_bookmark }"> title="${ o.bookmarked ? i18n_remove_bookmark : i18n_add_bookmark }">
<converse-icon class="fa fa-bookmark" size="1.2em" color="var(--inverse-link-color)"></converse-icon> <converse-icon class="fa fa-bookmark" size="1.2em" color="${ o.currently_open(o.room) ? 'var(--inverse-link-color)' : '' }"></converse-icon>
</a>`; </a>`;
} else { } else {
return html` return html`
@ -26,7 +26,7 @@ const bookmark = (o) => {
@click=${o.addBookmark} @click=${o.addBookmark}
title="${ o.bookmarked ? i18n_remove_bookmark : i18n_add_bookmark }"> title="${ o.bookmarked ? i18n_remove_bookmark : i18n_add_bookmark }">
<converse-icon class="fa fa-bookmark" size="1.2em" color="var(--inverse-link-color)"></converse-icon> <converse-icon class="fa fa-bookmark" size="1.2em" color="${ o.currently_open(o.room) ? 'var(--inverse-link-color)' : '' }"></converse-icon>
</a>`; </a>`;
} }
} }
@ -57,7 +57,7 @@ const room_item = (o) => {
title="${__('Show more information on this groupchat')}" title="${__('Show more information on this groupchat')}"
@click=${o.showRoomDetailsModal}> @click=${o.showRoomDetailsModal}>
<converse-icon class="fa fa-info-circle" size="1.2em" color="var(--inverse-link-color)"></converse-icon> <converse-icon class="fa fa-info-circle" size="1.2em" color="${ o.currently_open(o.room) ? 'var(--inverse-link-color)' : '' }""></converse-icon>
</a> </a>
<a class="list-item-action close-room" <a class="list-item-action close-room"
@ -66,7 +66,7 @@ const room_item = (o) => {
title="${i18n_leave_room}" title="${i18n_leave_room}"
@click=${o.closeRoom}> @click=${o.closeRoom}>
<converse-icon class="fa fa-sign-out-alt" size="1.2em" color="var(--inverse-link-color)"></converse-icon> <converse-icon class="fa fa-sign-out-alt" size="1.2em" color="${ o.currently_open(o.room) ? 'var(--inverse-link-color)' : '' }"></converse-icon>
</a> </a>
</div>`; </div>`;
} }