Page 1 of 1

White icons for dark styles

Posted: 19 Oct 2017, 16:47
by nou nou
Does something like this exist for mChatrooms, as well?

Re: [HowTo] White icons for dark styles

Posted: 19 Oct 2017, 16:58
by kasimi
The mChat Rooms icons should adapt to whatever icons are used in mChat itself, meaning that if $MCHAT_USE_WHITE_MESSAGE_ICONS is defined, Rooms icons will be white too. :+1:

Re: [HowTo] White icons for dark styles

Posted: 19 Oct 2017, 19:20
by nou nou
Ah, good to know.

Hmm... it doesn't appear the icons in the room list turn white?

Re: [HowTo] White icons for dark styles

Posted: 19 Oct 2017, 19:28
by kasimi
What style are you using? I tested in with Digi and it works fine.

Re: [HowTo] White icons for dark styles

Posted: 19 Oct 2017, 19:31
by nou nou
Subway.

I did seem to have some sort of manual solution for the white icons in place before. Hoping I didn't modify anything that broke your functionality.
But if it should work I'll dig a little deeper.

Re: [HowTo] White icons for dark styles

Posted: 19 Oct 2017, 19:44
by kasimi
I only have access to Subway for phpBB 3.1. If you send me a PM with the 3.2 version I'll have a look too. :+1:

Re: [HowTo] White icons for dark styles

Posted: 19 Oct 2017, 20:51
by nou nou
I'm still on 3.1 - does that version work fine for you?

Re: [HowTo] White icons for dark styles

Posted: 20 Oct 2017, 09:04
by kasimi
It doesn't, but the fix is easy:
  • Open ext/kasimi/mchatrooms/styles/prosilver/template/mchatrooms_rooms.html
  • Find MCHAT_USE_WHITE_MESSAGE_ICONS
  • Replace with definition.MCHAT_USE_WHITE_MESSAGE_ICONS
The fix will be included in the next mChat Rooms release. :+1:

Re: [HowTo] White icons for dark styles

Posted: 23 Oct 2017, 16:56
by nou nou
That was an easy fix indeed, thank you! :)

One tiny thing - the rotating progress wheel when switching rooms has an ugly white border around it.

Re: White icons for dark styles

Posted: 25 Oct 2017, 10:29
by kasimi
Can you test a different loading image? For example this one: https://www.tacticalpad.com/tacticalpad ... oading.gif

Location of the image: ext/kasimi/mchatrooms/styles/prosilver/theme/images/load.gif

I moved your posts to the Rooms forum.