OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_TODAY_EXTENSION_TRANSPARENT_BUTTON_H_ |
| 6 #define IOS_CHROME_TODAY_EXTENSION_TRANSPARENT_BUTTON_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 // A button that has a transparent background with Vibrancy effect and an ink |
| 11 // ripple effect. |
| 12 @interface TransparentButton : UIButton |
| 13 |
| 14 - (instancetype)initWithFrame:(CGRect)frame; |
| 15 |
| 16 // A container view to add subviews to the button. |
| 17 @property(nonatomic, readonly) UIView* contentView; |
| 18 |
| 19 // The color of the border of the button. |
| 20 @property(nonatomic, retain) UIColor* borderColor; |
| 21 |
| 22 // The width of the border of the button. |
| 23 @property(nonatomic) CGFloat borderWidth; |
| 24 |
| 25 // The ink color. |
| 26 @property(nonatomic, retain) UIColor* inkColor; |
| 27 |
| 28 // The corner radius of the button. |
| 29 @property(nonatomic, assign) CGFloat cornerRadius; |
| 30 |
| 31 @end |
| 32 |
| 33 #endif // IOS_CHROME_TODAY_EXTENSION_TRANSPARENT_BUTTON_H_ |
OLD | NEW |