mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-09 00:40:26 +00:00
Include contrast value in contrast errors
This commit is contained in:
parent
c1e36a1e5f
commit
2640406f5b
@ -79,8 +79,12 @@ tags: $:/tags/Macro
|
|||||||
[function[colour],<name>]
|
[function[colour],<name>]
|
||||||
\end color
|
\end color
|
||||||
|
|
||||||
|
\function tf.check-colour-contrast-subfunction()
|
||||||
|
[function[colour],<paletteEntryA>] [function[colour],<paletteEntryB>] +[colour-contrast:DeltaPhi[]fixed[3]]
|
||||||
|
\end tf.check-colour-contrast-subfunction
|
||||||
|
|
||||||
\function tf.check-colour-contrast(paletteEntryA,paletteEntryB,threshold)
|
\function tf.check-colour-contrast(paletteEntryA,paletteEntryB,threshold)
|
||||||
[function[colour],<paletteEntryA>] [function[colour],<paletteEntryB>] +[colour-contrast:DeltaPhi[]compare:number:gt<threshold>then[ok]] :else[<paletteEntryA>addsuffix[/]addsuffix<paletteEntryB>addsuffix[ contrast is too low]]
|
[function[tf.check-colour-contrast-subfunction]compare:number:gt<threshold>then[ok]] :else[function[tf.check-colour-contrast-subfunction]addsuffix[: ]addsuffix<paletteEntryA>addsuffix[/]addsuffix<paletteEntryB>addsuffix[ contrast is too low]]
|
||||||
\end tf.check-colour-contrast
|
\end tf.check-colour-contrast
|
||||||
|
|
||||||
\define box-shadow(shadow)
|
\define box-shadow(shadow)
|
||||||
|
Loading…
Reference in New Issue
Block a user