Skip to content

Releases: wechatjs/mp-darkmode

v1.2.1

24 Oct 07:00

Choose a tag to compare

optimization introducing Just-noticeable difference and Weber-Fechner law to upgrade complementary color judgment rules(引入最小可觉差和韦伯-费希纳定理,升级补色判断规则)

v1.2.0

25 Sep 09:35

Choose a tag to compare

feature complement the effect of gradient on background color and correct the blending mode of mixed colors(补充渐变对背景色的影响,并修正混合颜色的混合模式)
bugfix fix the issue where the background color of an element would be processed repeatedly when it matched its complementary color(修复元素背景色与补色一致时会被重复处理的问题)

v1.1.10

13 May 09:40

Choose a tag to compare

feature added support for some css properties like text-decoration, text-emphasis-color, outline...(新增了一些css属性的支持,比如text-decorationtext-emphasis-coloroutline等等)
bugfix removed useless values of background-position and background-size(移除了无用的background-positionbackground-size值)

v1.1.8

10 Dec 06:17

Choose a tag to compare

bugfix fix the issue that defaultDarkTextColor and defaultDarkBgColor were not work(修复defaultDarkTextColordefaultDarkBgColor不生效的问题)

v1.1.7

26 Nov 07:15

Choose a tag to compare

bugfix fix the issue that the parameter isSwitch of the callback options.begin returned incorrect values in some cases(修复某些情况下 begin 回调的 isSwitch 参数返回错误值的问题)

v1.1.5

18 Nov 09:29

Choose a tag to compare

optimization don't throw the errors of invalid color(不再抛出非法色值的错误)
feature support param options.whitelist.attribute(支持白名单新配置options.whitelist.attribute,详见API文档)

v1.1.4

21 Oct 07:16

Choose a tag to compare

optimization remove image mask and data-style(移除图片蒙层以及data-style属性)
feature suport getContrast API(支持新方法getContrast,用于计算颜色对比度,详见API文档)
bugfix fix the inheritance algorithm of text color(修复文本颜色样式继承算法)

v1.1.3

17 Oct 06:55

Choose a tag to compare

bugfix darkmode className should not be added when forcing lightmode(强制指定 lightmode 时不应该加 darkmode 的 className)

v1.1.2

16 Oct 13:07

Choose a tag to compare

bugfix fix the bug where the visibility attribute value of the first screen node was tampered with(修复首屏节点 visibility 属性值被篡改的bug)

v1.1.1

13 Jun 07:59

Choose a tag to compare

bugfix ignore low opacity color(忽略低透明度色值)