mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-17 09:51:20 +00:00
Fix TGWallpaperController appearance
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user