OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_BROWSER_UI_FANCY_UI_TINTED_BUTTON_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_FANCY_UI_TINTED_BUTTON_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 // Subclass of UIButton whose tint color changes depending on its state. |
| 11 // If the value is not specified for a state, uses the UIControlStateNormal |
| 12 // value. If the UIControlStateNormal value is not set, defaults to the system's |
| 13 // value. |
| 14 @interface TintedButton : UIButton |
| 15 |
| 16 // Sets the tint color of a button to use for the specified state. |
| 17 // Currently only supports |UIControlStateNormal| and |
| 18 // |UIControlStateHighlighted|. |
| 19 - (void)setTintColor:(UIColor*)color forState:(UIControlState)state; |
| 20 |
| 21 @end |
| 22 |
| 23 #endif // IOS_CHROME_BROWSER_UI_FANCY_UI_TINTED_BUTTON_H_ |
OLD | NEW |