q2a / question2answer

Question2Answer is a free and open source platform for Q&A sites, running on PHP/MySQL.
http://www.question2answer.org/
GNU General Public License v3.0
1.63k stars 628 forks source link

Allow heading colors to be changed #896

Closed pupi1985 closed 1 year ago

pupi1985 commented 3 years ago

When attempting to change the main heading color to a dark blue it looks this way: before

The favorite star is an image and has the light blue color as a background. This complicates things for newcomers as they would expect to make some non-intrusive changes like changing a background color and they end up having to recreate images (if they have the skill to do so).

I made several tweaks to fix that and also thought it was a good idea to remove all star images and move them to plain characters (which should be the next step for all icons).

This is how it looks like after the changes (all 4 stars in the image have been updated to characters). after

The big white star on the right, when the question is unfavorited becomes just an outline.

The most relevant change is actually changing the star input to a button. I don't believe it's a big deal, though.

Note I didn't want to add HTML for the icons so I had to add them to the /*------[ icons ]------*/ section.