Adds colourblind mode and a colour matrix editor (#17933)

* Colourblind mode + Matrix editor

* increase that

* Protanopia filter

* Tritanopia filter

* The SQL part

* Refactor

* you saw nothing
This commit is contained in:
AffectedArc07
2022-06-11 00:52:28 +01:00
committed by GitHub
parent 0d465cdd6f
commit 7d5a7ad85d
20 changed files with 266 additions and 61 deletions
+1
View File
@@ -284,6 +284,7 @@ CREATE TABLE `player` (
`screentip_mode` tinyint(1) DEFAULT '8',
`screentip_color` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#ffd391',
`ghost_darkness_level` tinyint(1) UNSIGNED NOT NULL DEFAULT '255',
`colourblind_mode` VARCHAR(48) NOT NULL DEFAULT 'None' COLLATE 'utf8mb4_general_ci',
PRIMARY KEY (`id`),
UNIQUE KEY `ckey` (`ckey`),
KEY `lastseen` (`lastseen`),
+4
View File
@@ -0,0 +1,4 @@
# Updates DB from 36 to 37 -AffectedArc07
# New preferences column for colourblind mode
ALTER TABLE `player` ADD COLUMN `colourblind_mode` VARCHAR(48) NOT NULL DEFAULT 'None' AFTER `ghost_darkness_level`;