Skip to content

Commit

Permalink
fix: dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerAndBull committed Apr 30, 2021
1 parent e7e4a22 commit d7cf90c
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,8 @@ - (void)traitCollectionDidChange:(UITraitCollection *)traitCollection

backgroundLayer.backgroundColor = animatedBackgroundColor.CGColor;
for (TABComponentLayer *layer in layers) {
if (layer.numberOflines > 0) {
for (TABComponentLayer *sub in layer.lineLayers) {
sub.backgroundColor = animatedColor.CGColor;
}
}else {
layer.backgroundColor = animatedColor.CGColor;
}

layer.backgroundColor = animatedColor.CGColor;
if (layer.contents && layer.placeholderName && layer.placeholderName.length > 0) {
layer.contents = (id)[UIImage imageNamed:layer.placeholderName].CGImage;
}
Expand Down

0 comments on commit d7cf90c

Please sign in to comment.