https://github.com/smuuf/adminer-colorfields
A tiny Adminer extension for parsing and displaying colors where there are colors.
https://github.com/smuuf/adminer-colorfields
adminer adminer-plugin color database hex php rgb
Last synced: 3 months ago
JSON representation
A tiny Adminer extension for parsing and displaying colors where there are colors.
- Host: GitHub
- URL: https://github.com/smuuf/adminer-colorfields
- Owner: smuuf
- License: mit
- Created: 2016-04-21T16:01:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-21T22:58:52.000Z (about 9 years ago)
- Last Synced: 2025-02-28T22:48:52.621Z (3 months ago)
- Topics: adminer, adminer-plugin, color, database, hex, php, rgb
- Language: PHP
- Size: 3.91 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Colorfields
A tiny [Adminer](https://www.adminer.org/) extension for parsing and displaying colors where there are colors found.
#### What does it do and why should I care?
If the cell's content matches either of the regexes down below, a small circle will appear next to the value. This way it should be pretty obvious **what the color looks like** without having to perform expensive decoding using brain-mathematics and having to imagine the color just using the brain.
#### Wait, what?
Currently Colorfields extension supports **HEX** and **RGB(a)** formats:
- HEX: `^#?([0-9a-fA-F]{3}){1,2}$`
- RGB(a): `^rgba?\((\d+),(\d+),(\d+)(,(\d+))?\)$`#### Eh, just show me what it looks like...
Here you go, you rascal you:
