How do you create a different theme for each server in phpMyAdmin?
-
19-09-2019 - |
Question
Is there any way w/o majorly rewriting the phpMyAdmin source code to have a different theme chosen based on server?
I see it's easy to change themes, but it applies to all servers.
Reason I'd like to do this is so that when I perform a query on production it shows a different color right there and I won't confuse it with a query on dev.
Solution
Haven't tried this but apparently you can configure it by:
Theme selection
On the Homepage, we can offer a theme selector to users. Setting $cfg['ThemeManager'] to TRUE (the default) shows the selector: To help choose a suitable theme, the color palette icon next to Theme/Style brings us screenshots of the available themes. We can then click on take it under the theme we want. The chosen theme is remembered in a cookie. By default, the remembered theme applies to all servers we connect to. To make phpMyAdmin remember one theme per MySQL server, we set $cfg['ThemePerServer'] to TRUE.