Skip to content

Commit d7cf90c

Browse files
committed
fix: dark mode
1 parent e7e4a22 commit d7cf90c

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

TABAnimatedDemo/TABAnimated/Decorate/DarkMode/TABAnimatedDarkModeImpl.m

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,8 @@ - (void)traitCollectionDidChange:(UITraitCollection *)traitCollection
4141

4242
backgroundLayer.backgroundColor = animatedBackgroundColor.CGColor;
4343
for (TABComponentLayer *layer in layers) {
44-
if (layer.numberOflines > 0) {
45-
for (TABComponentLayer *sub in layer.lineLayers) {
46-
sub.backgroundColor = animatedColor.CGColor;
47-
}
48-
}else {
49-
layer.backgroundColor = animatedColor.CGColor;
50-
}
44+
45+
layer.backgroundColor = animatedColor.CGColor;
5146
if (layer.contents && layer.placeholderName && layer.placeholderName.length > 0) {
5247
layer.contents = (id)[UIImage imageNamed:layer.placeholderName].CGImage;
5348
}

0 commit comments

Comments
 (0)