style manager: use color picker based on value #3160
commit88c52daa6e3de423f927420a479970cfaffe621e
authorAndreas Gohr <andi@splitbrain.org>
Sun, 14 Jun 2020 08:32:07 +0000 (14 10:32 +0200)
committerAndreas Gohr <andi@splitbrain.org>
Sun, 14 Jun 2020 08:32:07 +0000 (14 10:32 +0200)
tree2a43093e848a5775e6f4fce00b61e2b5eb6803b1
parent5758059490bdc82bea00e6c2532e3dfa8392b212
style manager: use color picker based on value #3160

Instead of trying to guess if a setting is expecting a color base on the
setting's name it is now determined based on the value in it. Only hex
colors are supported (it's the only thing the type="color" input
supports either).
lib/plugins/styling/admin.php