Page 1 of 1

[HowTo] White icons for dark styles

Posted: 14 Nov 2016, 22:28
by kasimi
Since mChat 2.0.0-RC6 there is an easy way to change the icons in your messages from black to white. mChat supports a few black styles where the icons are white already. If you use a style where they are not, follow these simple steps:

  • Create the following folder structure if it doesn't already exist:
    [board root]/ext/dmzx/mchat/styles/[your style name here]/template/event
  • Inside this event folder create en empty file dmzx_mchat_messages_define_icons.html
  • Add this code to the file:

    Code: Select all

    <!-- DEFINE $MCHAT_USE_WHITE_MESSAGE_ICONS = TRUE -->
  • Save the file and refresh your board cache.
Please post the name of your style here so that the next mChat release can come with this fix included. :+1:

Re: [HowTo] White icons for dark styles

Posted: 15 Nov 2016, 07:14
by nastyknight
Again thanks for the fix working great now on my dark style.

Style:- ne-blackgreen

Re: [HowTo] White icons for dark styles

Posted: 30 Dec 2016, 17:36
by andares
Congratulations kasimi for CDB :+1:

Applied the fix in these dark styles and in others that aren't but it looks better:

360Elite
Black_Star
blue_lagoon
Blue-Night
Brown
bubbleogd
conan
Cynthia
dark_vision
digi
DVGFX
honour
lucid_lime
ongraydark
ongraydark_footballact
proDVGFX
Rainbow-AOP
redpassionogd

Re: [HowTo] White icons for dark styles

Posted: 30 Dec 2016, 21:49
by kasimi
That's an impressive list, thanks. I will check them all. :+1:

Re: [HowTo] White icons for dark styles

Posted: 09 Jan 2017, 17:23
by kasimi
andares wrote:Applied the fix in these dark styles and in others that aren't but it looks better
The next mChat version will have white icons for all styles you listed except for dark_vision, I can't find a working download link for that one.

Thanks again andares for the long list. :+1:

Re: [HowTo] White icons for dark styles

Posted: 11 Jan 2017, 19:26
by andares
You're welcome kasimi, I started using mchat with 3.0 and I am happy to see that its development continues even with 3.1 & 3.2 :+1:

Dark vision is available here:

http://reyno41.bplaced.net/phpbb/viewto ... f=32&t=118

Re: [HowTo] White icons for dark styles

Posted: 11 Jan 2017, 22:48
by kasimi
I think it was the same board I tried to download it from yesterday but it always timed out. Now it works, all added. :+1:

Re: [HowTo] White icons for dark styles

Posted: 07 Sep 2019, 23:54
by roury
is not working on Milk V2

Re: [HowTo]White icons for dark styles

Posted: 08 Sep 2019, 08:53
by kasimi
The code change in the first post only worked for phpBB 3.1. phpBB 3.2 uses FontAwesome icons whose color you can change with CSS:

Code: Select all

.mchat-buttons .fa {
    color: gray;
}