diff --git a/LegacyComponents/TGWallpaperController.m b/LegacyComponents/TGWallpaperController.m index c53a6f59ce..db0c215aa9 100644 --- a/LegacyComponents/TGWallpaperController.m +++ b/LegacyComponents/TGWallpaperController.m @@ -154,15 +154,16 @@ _panelView = [[UIView alloc] initWithFrame:CGRectMake(0, screenSize.height - 49, screenSize.width, 49)]; + TGNavigationBarPallete *pallete = [[LegacyComponentsGlobals provider] navigationBarPallete]; if (iosMajorVersion() >= 7 && [TGViewController isWidescreen]) { UIToolbar *toolbar = [[UIToolbar alloc] initWithFrame:_panelView.bounds]; toolbar.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; [_panelView addSubview:toolbar]; + toolbar.barTintColor = pallete.backgroundColor; } else { - TGNavigationBarPallete *pallete = [[LegacyComponentsGlobals provider] navigationBarPallete]; _panelView.backgroundColor = pallete.backgroundColor; _panelView.backgroundColor = [UIColor grayColor]; } @@ -171,8 +172,6 @@ CGFloat separatorWidth = TGScreenPixel; - TGNavigationBarPallete *pallete = [[LegacyComponentsGlobals provider] navigationBarPallete]; - _cancelButton = [[TGModernButton alloc] initWithFrame:CGRectMake(0, 0, CGFloor(_panelView.frame.size.width / 2) - separatorWidth, _panelView.frame.size.height)]; _cancelButton.backgroundColor = [UIColor clearColor]; //_cancelButton.highlightBackgroundColor = self.presentation.pallete.selectionColor;