Releases: wechatjs/mp-darkmode
Releases · wechatjs/mp-darkmode
v1.1.8
bugfix
fix the issue that defaultDarkTextColor
and defaultDarkBgColor
were not work(修复defaultDarkTextColor
和defaultDarkBgColor
不生效的问题)
v1.1.7
bugfix
fix the issue that the parameter isSwitch
of the callback options.begin
returned incorrect values in some cases(修复某些情况下 begin
回调的 isSwitch
参数返回错误值的问题)
v1.1.5
optimization
don't throw the errors of invalid color(不再抛出非法色值的错误)
feature
support param options.whitelist.attribute(支持白名单新配置options.whitelist.attribute
,详见API文档)
v1.1.4
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
bugfix
darkmode className should not be added when forcing lightmode(强制指定 lightmode 时不应该加 darkmode 的 className)
v1.1.2
bugfix
fix the bug where the visibility
attribute value of the first screen node was tampered with(修复首屏节点 visibility
属性值被篡改的bug)
v1.1.1
bugfix
ignore low opacity color(忽略低透明度色值)
v1.1.0
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
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
optimization
update mask color