UNPKG

@nativescript-community/ui-material-core

Version:
53 lines (52 loc) 2.19 kB
import { Color } from '@nativescript/core'; import { ShapeProperties, TypographyOptions } from '.'; import { applyMixins } from './index.common'; export * from './cssproperties'; export { applyMixins }; export declare class Themer { appColorScheme: MDCSemanticColorScheme; appTypoScheme: MDCTypographyScheme; primaryColor: string | Color; backgroundColor: string | Color; onBackgroundColor: string | Color; onPrimaryColor: string | Color; secondaryColor: string | Color; accentColor: string | Color; primaryColorVariant: string | Color; surfaceColor: string | Color; onSurfaceColor: string | Color; constructor(); getOrcreateAppColorScheme(): MDCSemanticColorScheme; getAppColorScheme(): MDCSemanticColorScheme; setPrimaryColor(value: string | Color): void; getPrimaryColor(): string | Color; setOnPrimaryColor(value: any): void; getOnPrimaryColor(): string | Color; setSecondaryColor(value: string | Color): void; getSecondaryColor(): string | Color; setAccentColor(value: string | Color): void; getAccentColor(): string | Color; setSurfaceColor(value: string | Color): void; getSurfaceColor(): string | Color; setOnSurfaceColor(value: string | Color): void; getOnSurfaceColor(): string | Color; setPrimaryColorVariant(value: string | Color): void; getPrimaryColorVariant(): string | Color; setBackgroundColor(value: string | Color): void; getBackgroundColor(): string | Color; setOnBackgroundColor(value: string | Color): void; getOnBackgroundColor(): string | Color; getOrcreateAppTypographyScheme(): MDCTypographyScheme; getAppTypographyScheme(): MDCTypographyScheme; setButtonTypography(args: TypographyOptions): void; _shapes: { [k: string]: MDCShapeScheme; }; getShape(key: string): MDCShapeScheme; createShape(key: string, options: ShapeProperties): void; } export declare const themer: Themer; export declare function install(): void; export declare function getRippleColor(color: string | Color, alpha?: number): UIColor; export declare function overrideViewBase(): void; export declare function installMixins(): void;