Fix TGWallpaperController appearance

This commit is contained in:
Peter
2018-11-23 04:19:31 +03:00
parent 0753d31062
commit 2588e3ef9e

View File

@@ -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;