mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-08 01:40:09 +00:00
Fix camera UI on new iPhones
This commit is contained in:
parent
92895e8908
commit
924be77a87
@ -110,7 +110,18 @@
|
|||||||
CGFloat shutterButtonWidth = 66.0f;
|
CGFloat shutterButtonWidth = 66.0f;
|
||||||
CGSize screenSize = TGScreenSize();
|
CGSize screenSize = TGScreenSize();
|
||||||
CGFloat widescreenWidth = MAX(screenSize.width, screenSize.height);
|
CGFloat widescreenWidth = MAX(screenSize.width, screenSize.height);
|
||||||
if (widescreenWidth == 896.0f)
|
if (widescreenWidth == 926.0f)
|
||||||
|
{
|
||||||
|
_topPanelOffset = 77.0f;
|
||||||
|
_topPanelHeight = 77.0f;
|
||||||
|
_bottomPanelOffset = 94.0f;
|
||||||
|
_bottomPanelHeight = 155.0f;
|
||||||
|
_modeControlOffset = 6.0f;
|
||||||
|
_modeControlHeight = 66.0f;
|
||||||
|
_counterOffset = 7.0f;
|
||||||
|
shutterButtonWidth = 72.0f;
|
||||||
|
}
|
||||||
|
else if (widescreenWidth == 896.0f)
|
||||||
{
|
{
|
||||||
_topPanelOffset = 33.0f;
|
_topPanelOffset = 33.0f;
|
||||||
_topPanelHeight = 44.0f;
|
_topPanelHeight = 44.0f;
|
||||||
@ -121,6 +132,17 @@
|
|||||||
_counterOffset = 7.0f;
|
_counterOffset = 7.0f;
|
||||||
shutterButtonWidth = 72.0f;
|
shutterButtonWidth = 72.0f;
|
||||||
}
|
}
|
||||||
|
if (widescreenWidth == 844.0f)
|
||||||
|
{
|
||||||
|
_topPanelOffset = 33.0f;
|
||||||
|
_topPanelHeight = 44.0f;
|
||||||
|
_bottomPanelOffset = 63.0f;
|
||||||
|
_bottomPanelHeight = 123.0f;
|
||||||
|
_modeControlOffset = 3.0f;
|
||||||
|
_modeControlHeight = 40.0f;
|
||||||
|
_counterOffset = 7.0f;
|
||||||
|
shutterButtonWidth = 70.0f;
|
||||||
|
}
|
||||||
else if (widescreenWidth == 812.0f)
|
else if (widescreenWidth == 812.0f)
|
||||||
{
|
{
|
||||||
_topPanelOffset = 33.0f;
|
_topPanelOffset = 33.0f;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user