From 87f1d321d7b3c970fdcefaa9c312286a81119486 Mon Sep 17 00:00:00 2001 From: EddyVerbruggen Date: Sat, 25 Jan 2014 15:52:20 +0100 Subject: [PATCH] Last layout tweaks, and we're done --- src/ios/Toast+UIView.h | 30 ------------------------------ src/ios/Toast+UIView.m | 18 +++++------------- 2 files changed, 5 insertions(+), 43 deletions(-) diff --git a/src/ios/Toast+UIView.h b/src/ios/Toast+UIView.h index 652ef35..5af9a59 100644 --- a/src/ios/Toast+UIView.h +++ b/src/ios/Toast+UIView.h @@ -1,33 +1,3 @@ -/*************************************************************************** - -Toast+UIView.h -Toast -Version 2.2 - -Copyright (c) 2013 Charles Scalesse. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -***************************************************************************/ - - #import @interface UIView (Toast) diff --git a/src/ios/Toast+UIView.m b/src/ios/Toast+UIView.m index d64e73a..aaa4fcd 100644 --- a/src/ios/Toast+UIView.m +++ b/src/ios/Toast+UIView.m @@ -1,11 +1,3 @@ -// -// Toast+UIView.m -// Toast -// Version 2.2 -// -// Copyright 2013 Charles Scalesse. -// - #import "Toast+UIView.h" #import #import @@ -18,15 +10,15 @@ // general appearance static const CGFloat CSToastMaxWidth = 0.8; // 80% of parent view width static const CGFloat CSToastMaxHeight = 0.8; // 80% of parent view height -static const CGFloat CSToastHorizontalPadding = 10.0; -static const CGFloat CSToastVerticalPadding = 10.0; +static const CGFloat CSToastHorizontalPadding = 16.0; +static const CGFloat CSToastVerticalPadding = 12.0; static const CGFloat CSToastTopBottomOffset = 10.0; -static const CGFloat CSToastCornerRadius = 10.0; +static const CGFloat CSToastCornerRadius = 20.0; static const CGFloat CSToastOpacity = 0.8; -static const CGFloat CSToastFontSize = 16.0; +static const CGFloat CSToastFontSize = 13.0; static const CGFloat CSToastMaxTitleLines = 0; static const CGFloat CSToastMaxMessageLines = 0; -static const NSTimeInterval CSToastFadeDuration = 0.2; +static const NSTimeInterval CSToastFadeDuration = 0.3; // shadow appearance static const CGFloat CSToastShadowOpacity = 0.8;