Themes and styling

This commit is contained in:
vakrilov
2015-09-01 15:01:15 +03:00
parent 254e4a55a1
commit ff9ee707c0
6 changed files with 112 additions and 15 deletions

7
utils/utils.d.ts vendored
View File

@@ -88,11 +88,18 @@
* @param name - Name of the resource.
*/
export function getStringId(name)
/**
* Gets the id from a given name.
* @param name - Name of the resource.
*/
export function getId(name: string): number;
/**
* Gets a color from the current theme.
* @param name - Name of the color resource.
*/
export function getPalleteColor(name: string, context: android.content.Context): number;
}
export function async<T>(doInBackground: () => T, callback: (result: T) => void);