polish(protect): 记住账号改成自绘勾选框(点击可切换)
老 DuiLib 没有勾选图片资源,CheckBox 画不出框;Label 又不会发 click 通知(只有 Button 会)。 做法:14x14 的 Label 当视觉方框(bordersize=1 描边),文字用透明 Button 承接点击, 选中时把方框填充主色 + 边框同色 —— 一眼能看出勾选态,也不依赖任何图片/字形。 实测:点击前 0 个主色像素,点击后 14x14 方框内 196 个主色像素,状态切换正常。 壳资源 723,456 B,e2e 8 套全过。
This commit is contained in:
Binary file not shown.
Reference in New Issue
Block a user