fix: deepen ice-blue labels after measured contrast check
这个提交包含在:
1 父节点
77856a1334
当前提交
09e04ca647
3 个文件已更改
+6
-3
没有与搜索条件相匹配的文件
@@ -28,7 +28,7 @@
|
||||
run.record(@"compact-gold-labels-have-readable-contrast",minimum>=4.5,@{@"minimumContrast":@(minimum)});
|
||||
NSDictionary *themeSnapshot=[view presetSnapshot];int themeUndo=host->_undoStarts;
|
||||
DYSetThemeIndex(7);double lightMinimum=100;
|
||||
for(NSString *text in @[@"text",@"secondary",@"slot15"])for(NSString *surface in @[@"background",@"backgroundEnd",@"card",@"cardEnd",@"field",@"headerTop",@"headerBottom"])
|
||||
for(NSString *text in @[@"text",@"secondary",@"slot15",@"accent"])for(NSString *surface in @[@"background",@"backgroundEnd",@"card",@"cardEnd",@"field",@"headerTop",@"headerBottom"])
|
||||
lightMinimum=std::min(lightMinimum,(luminance(DYThemePalette()[surface])+.05)/(luminance(DYThemePalette()[text])+.05));
|
||||
run.record(@"soft-light-text-contrast-at-least-4.5",lightMinimum>=4.5,@{@"minimumContrast":@(lightMinimum)});
|
||||
[view performSelector:@selector(themeChanged:) withObject:nil];
|
||||
|
||||
在新工单中引用
屏蔽一个用户