Jump to content

Change BACKOFFICE state TEXT color


lucifer_1

Recommended Posts

Really not that important, but i can't help it i need it solved :)

When i change the button color of a state (for example shipped) and the button color is a bit darker, the font color is white, automatically. But when it is a bit a darker button color, the font color is #383838.
 

I want to change it, that the font color is always white for example. Where can i find it?

 

Link to comment
Share on other sites

Its (hard) coded in youradmin\themes\default\template\helpers\list\list_content.tpl

				{if isset($params.color) && isset($tr[$params.color])}
					<span class="label color_field" style="background-color:{$tr[$params.color]};color:{if !Tools::isBright($tr[$params.color])}white{else}#383838{/if}">
				{/if}

And in other places for e.g. order page as this is already in twig. Check class ColorBrightnessCalculator

Edited by JBW (see edit history)
  • Like 1
Link to comment
Share on other sites

I am sorry, didn't get an e-mail that there was an answer on my topic. Thank you. I think you are very close, but the list_content isn't the order list on the order page. Do you know where i can find the order list?

You say it is in twig, but where can i find those files?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...