Skip to content

Releases: wechatjs/mp-darkmode

v1.1.8

10 Dec 06:17
Compare
Choose a tag to compare

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

v1.1.7

26 Nov 07:15
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

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

v1.1.0

13 Dec 12:24
Compare
Choose a tag to compare

feature plugin support
bugfix backward compatible & update dependencies(向下兼容支持低版本浏览器以及更新依赖)
bugfix update the recognition rules of css value, and fix the problem of wrong recognition when css value contain colons(更新css值的识别规则,修复css值包含冒号时识别错误的问题)
optimization update mask color
optimization adjust the processing rules of text-shadow on pictures, and change it to the same as color without processing(调整文字阴影在图片上的处理规则,改为和文字颜色一样不处理)

v1.1.0-beta.3

21 Apr 10:01
Compare
Choose a tag to compare

optimization adjust the processing rules of text-shadow on pictures, and change it to the same as color without processing(调整文字阴影在图片上的处理规则,改为和文字颜色一样不处理)

v1.1.0-beta.2

23 Mar 08:02
Compare
Choose a tag to compare

optimization update mask color