weixin / Miaow

A set of plugins for Sketch include drawing links & marks, UI Kit & Color sync, font & text replacing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

取色代码有问题

Ashung opened this issue · comments

colorReplace.js L64-L80, fills().firstObject() 是界面中最底层的项,如果遇到一个图层,关掉底层的填充而显示上层的填充,实际显示是有颜色的,这个代码是无法取到颜色的,应该使用
layer.style().enabledFills().lastObject() ,border 也同理。如下图。

image

已修复