// _____ _ // |_ _| |_ _ _ ___ ___ _ __ __ _ // | | | ' \| '_/ -_) -_) ' \/ _` |_ // |_| |_||_|_| \___\___|_|_|_\__,_(_) // // Threema iOS Client // Copyright (c) 2012-2020 Threema GmbH // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License, version 3, // as published by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . static CGFloat const kSentDateMinFontSize = 12.0f; static CGFloat const kSentDateMaxFontSize = 17.0f; static CGFloat const kLocationMinFontSize = 12.0f; static CGFloat const kSystemMessageMinFontSize = 12.0f; static CGFloat const kSystemMessageMaxFontSize = 17.0f; static CGFloat const kChatContactMinFontSize = 12.0f; static CGFloat const kChatContactMaxFontSize = 17.0f; static CGFloat const kMessageScreenMargin = 140.0f; static CGFloat const kLandscapeWidthThreshold = 321.0f; static CGFloat const kMessageImageWidth = 240.0f; static CGFloat const kMessageImageHeight = 240.0f; static CGFloat const kContentHeightMaxPortrait = 142.0f; // 7 lines static CGFloat const kContentHeightMaxLandscape = 82.0f; // 3 lines static CGFloat const kChatBarHeight1 = 40.0f; static CGFloat const kScrollButtonAlpha = 1.0f; static CGFloat const kIphoneXChatBarBottomPadding = 20.0f; static CGFloat const kIphoneXChatBarLandscapePadding = 35.0f; #define ClearConversationButtonIndex 0 #define MESSAGES_AT_START 20 #define LOAD_MESSAGES_PER_PAGE 100