How to use the color.Color function in color

To help you get started, we’ve selected a few color examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NathanWalker / ShoutOutPlay / app / shared / core / services / fancyalert.service.ts View on Github external
private drawPlus() {
    let iconColor = new Color(ColorService.Active.COMPLIMENTARY).ios;
      
    //// Bezier Drawing
    let bezierPath = UIBezierPath.bezierPath();
    bezierPath.moveToPoint(CGPointMake(35.72, 15));
    bezierPath.addLineToPoint(CGPointMake(44.35, 15));
    bezierPath.addLineToPoint(CGPointMake(44.35, 35.65));
    bezierPath.addLineToPoint(CGPointMake(65, 35.65));
    bezierPath.addLineToPoint(CGPointMake(65, 43.89));
    bezierPath.addLineToPoint(CGPointMake(44.35, 43.89));
    bezierPath.addLineToPoint(CGPointMake(44.35, 65));
    bezierPath.addLineToPoint(CGPointMake(35.72, 65));
    bezierPath.addLineToPoint(CGPointMake(35.72, 43.89));
    bezierPath.addLineToPoint(CGPointMake(15, 43.89));
    bezierPath.addLineToPoint(CGPointMake(15, 35.65));
    bezierPath.addLineToPoint(CGPointMake(35.72, 35.65));
    bezierPath.addLineToPoint(CGPointMake(35.72, 15));
github nstudio / nativescript-videoplayer / demo / app / main-page.js View on Github external
function pageLoaded(args) {
    // Get the event sender    
    var page = args.object;
    page.bindingContext = new main_view_model_1.HelloWorldModel(page);
    if (platform_1.isAndroid && platform_1.device.sdkVersion >= "21") {
        var window_1 = application_1.android.startActivity.getWindow();
        window_1.setStatusBarColor(new color_1.Color("#d32f2f").android);
    }
}
exports.pageLoaded = pageLoaded;
github tjvantoll / nativescript-flashlight / demo / app / tns_modules / ui / border / border-common.js View on Github external
set: function (value) {
            if (types.isString(value) || types.isNumber(value)) {
                this._setValue(Border.borderColorProperty, new color.Color(value));
            }
            else {
                this._setValue(Border.borderColorProperty, value);
            }
        },
        enumerable: true,
github argonjs / argon-app / app / components / browser-view.js View on Github external
function BrowserView() {
        var _this = _super.call(this) || this;
        _this.realityWebviews = new Map();
        _this.videoView = vuforia.videoView;
        _this.scrollView = new scroll_view_1.ScrollView;
        _this.layerContainer = new grid_layout_1.GridLayout;
        _this.layers = [];
        _this._overviewEnabled = false;
        _this._checkedVersion = false;
        _this._lastTime = Date.now();
        _this._layerBackgroundColor = new color_1.Color(0, 255, 255, 255);
        _this.layerContainer.horizontalAlignment = 'stretch';
        _this.layerContainer.verticalAlignment = 'stretch';
        if (_this.layerContainer.ios) {
            _this.layerContainer.ios.layer.masksToBounds = false;
        }
        else if (_this.layerContainer.android) {
            _this.layerContainer.android.setClipChildren(false);
        }
        _this.scrollView.horizontalAlignment = 'stretch';
        _this.scrollView.verticalAlignment = 'stretch';
        _this.scrollView.content = _this.layerContainer;
        if (_this.scrollView.ios) {
            _this.scrollView.ios.layer.masksToBounds = false;
        }
        else if (_this.scrollView.android) {
            _this.scrollView.android.setClipChildren(false);
github JoshDSommer / nativescript-parallax / utilities.ts View on Github external
private static shadowView(opacity: number, width: number): StackLayout {
		let shadowRow = new StackLayout();
		shadowRow.backgroundColor = new Color('black');
		shadowRow.opacity = opacity;
		shadowRow.height = 1;
		return shadowRow;
	}
	public static fadeViews(topHeight: number, verticalOffset: number, viewsToFade: View[], topOpacity): void {
github bradyhouse / house / fiddles / nativeScript / fiddle-0001-PageNavigation / pagenavigation / platforms / android / build / intermediates / assets / F0 / debug / app / tns_modules / text / formatted-string-common.js View on Github external
set: function (value) {
            var foreColor;
            if (types.isString(value)) {
                foreColor = new colorModule.Color(value);
            }
            else {
                foreColor = value;
            }
            if (this._foregroundColor !== foreColor) {
                this._foregroundColor = foreColor;
            }
        },
        enumerable: true,
github manijak / nativescript-carousel / index-common.js View on Github external
    valueConverter: function (value) { return new colorModule.Color(value); },
    valueChanged: function (view, oldValue, newValue) {
github sitefinitysteve / nativescript-auth0 / plugin / index.ios.js View on Github external
function registerThemeColor(color, key){
	if(color != "undefined" && color !== null){
		if(theme === null){
			theme = new A0Theme();
		}
		
		theme.registerColorForKey(new colorModule.Color(color).ios, key);
	}
}
github bradyhouse / house / fiddles / nativeScript / fiddle-0010-Groceries / groceries / app / login / login.component.js View on Github external
LoginComponent.prototype.toggleDisplay = function () {
        this.isLoggingIn = !this.isLoggingIn;
        var mainContainer = this.mainContainer.nativeElement;
        mainContainer.animate({
            backgroundColor: this.isLoggingIn ? new color_1.Color("white") : new color_1.Color("#301217"),
            duration: 200
        });
    };
    LoginComponent.prototype.startBackgroundAnimation = function (background) {
github Akylas / nativescript-material-components / src / snackbar / snackbar.ios.ts View on Github external
private _setTextColor(color) {
        if (color) {
            this._snackbarManager.messageTextColor = new Color(color).ios;
        }
    }