/* Code view */
.styled-text-area {
    -fx-font-family: $default-font-mono;
    -fx-font-size: 90%;
    -fx-background-color: -df-background-lighter;

    .comment {
        -styled-text-color: -df-script-comment;
        -fx-font-style: italic;
    }
    .list-view {
        -fx-background-color: -df-background-lighter;
        .list-cell {
            -fx-background-color: -df-background-lighter;
            -fx-padding: 0;
            -fx-border-width: 0;
            &:selected {
                -fx-background-color: -df-background-lighter !important;
                -fx-border-width: 0;
            }
        }
    }
    .source-segment, .plain-source-segment {
        -fx-font-family: $default-font-mono;
        -fx-font-size: 90%;
        -styled-text-color: -df-text;
    }
    .selection-marker {
            -fx-background-color: rgba(172,148,120,0.3)
    }
    .text-caret {
        -fx-fill: white;
        -fx-stroke: white;
    }
}

/* Script view colors */
.lua, .glsl, .c {
    &.styled-text-area {
        -styled-text-color: -df-script-comment;

        /* Hack for current line */
        .list-cell:selected {
            -fx-background-color: -df-background;
        }

        .comment, .comment-multi {
            -styled-text-color: -df-text-dark;
            -fx-font-style: italic;
        }

        .keyword {
            -styled-text-color: -df-script-keyword;
        }

        .operator {
            -styled-text-color: -df-script-operator;
        }

        .default {
            -styled-text-color: -df-text;
        }

        .string {
            -styled-text-color: -df-script-string;
            -fx-font-style: italic;
        }

        .number {
            -styled-text-color: -df-script-number;
        }

	.control-flow-keyword {
            -styled-text-color: -df-script-keyword;
	}
    }
}

.lua {
    &.styled-text-area {
        .helper-keyword {
            -styled-text-color: -df-script-helper;
        }

        .self-keyword {
            -styled-text-color: -df-script-self;
        }

        .logic-keywords {
            -styled-text-color: -df-script-logic;
        }

        .constant {
            -styled-text-color: -df-script-constant;
        }

        .defold-keyword {
            -styled-text-color: -df-script-function;
        }
    }
}

.glsl {
    &.styled-text-area {
	.directive, .macro-keyword, .precision-keyword,
	.storage-modifier-keyword, .storage-type {
            -styled-text-color: -df-script-keyword;
        }

	.support-function-keyword {
	    -styled-text-color: -df-script-function;
	}

	.support-constant-keyword {
	    -styled-text-color: -df-script-constant;
	}

	.support-variable-keyword {
	    -styled-text-color: -df-script-constant;
	}
    }
}

.c {
    &.styled-text-area {
        .directive {
            -styled-text-color: -df-script-keyword;
        }
    }
}


/* text editor code completion popup */
#proposals .list-cell:filled:selected {
    -fx-text-fill: -df-script-intellisense;
}
