replace hsl's l with relative luminance for better lightness detection

This commit is contained in:
Henry Jameson 2020-01-12 17:58:26 +02:00
parent 88f83fc9fa
commit 39dd08e694
4 changed files with 10 additions and 12 deletions

View file

@ -2,9 +2,7 @@ import { set, delete as del } from 'vue'
import {
rgb2hex,
hex2rgb,
getContrastRatio,
getContrastRatioLayers,
alphaBlend
getContrastRatioLayers
} from '../../services/color_convert/color_convert.js'
import {
generateColors,
@ -265,7 +263,6 @@ export default {
const theme = this.previewTheme
console.log(source)
return {
// To separate from other random JSON files and possible future source formats
_pleroma_theme_version: 2, theme, source