mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
11 lines
497 B
TypeScript
11 lines
497 B
TypeScript
import { SearchBar } from "tns-core-modules/ui/search-bar";
|
|
import { Color } from "tns-core-modules/color";
|
|
import { getColor } from "../helper";
|
|
|
|
export function getNativeHintColor(searchBar: SearchBar): Color {
|
|
return (<any>searchBar)._placeholderLabel ? getColor((<any>searchBar)._placeholderLabel.textColor) : undefined;
|
|
}
|
|
export function getNativeFontSize(searchBar: SearchBar): number {
|
|
return (<any>searchBar)._textField ? (<any>searchBar)._textField.font.pointSize : undefined;
|
|
}
|