<commit_before>/*
 * Copyright (C) 2015-2017 kimmoli <<EMAIL>>
 * All rights reserved.
 *
 * This file is part of Maira
 *
 * You may use this file under the terms of BSD license
 */

import QtQuick 2.0
import Sailfish.Silica 1.0

BackgroundItem
{
    visible: opacity > 0.0
    opacity: index < showLinks ? 1.0 : 0.0
    Behavior on opacity { FadeAnimation {} }
    width: column.width
    height: Theme.itemSizeExtraSmall
    clip: true

    Column
    {
        anchors.verticalCenter: parent.verticalCenter
        x: Theme.paddingSmall
        width: parent.width - 2*Theme.paddingSmall

        Label
        {
            height: Theme.itemSizeExtraSmall/2
            width: parent.width
            font.pixelSize: Theme.fontSizeSmall
            text: linktype + " " + linkedissuekey
            elide: Text.ElideRight
        }
        Label
        {
            height: Theme.itemSizeExtraSmall/2
            width: parent.width
            font.pixelSize: Theme.fontSizeExtraSmall
            text: linkedissuesummary
            elide: Text.ElideRight
        }
    }

    onClicked: followlink(linkedissuekey)
}
<commit_msg>fix link delegate highlight colors<commit_after>/*
 * Copyright (C) 2015-2017 kimmoli <<EMAIL>>
 * All rights reserved.
 *
 * This file is part of Maira
 *
 * You may use this file under the terms of BSD license
 */

import QtQuick 2.0
import Sailfish.Silica 1.0

BackgroundItem
{
    id: delegate
    visible: opacity > 0.0
    opacity: index < showLinks ? 1.0 : 0.0
    Behavior on opacity { FadeAnimation {} }
    width: column.width
    height: Theme.itemSizeExtraSmall
    clip: true

    Column
    {
        anchors.verticalCenter: parent.verticalCenter
        x: Theme.paddingSmall
        width: parent.width - 2*Theme.paddingSmall

        Label
        {
            text: linktype + " " + linkedissuekey
            height: Theme.itemSizeExtraSmall/2
            width: parent.width
            font.pixelSize: Theme.fontSizeSmall
            color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
            elide: Text.ElideRight
        }
        Label
        {
            text: linkedissuesummary
            height: Theme.itemSizeExtraSmall/2
            width: parent.width
            font.pixelSize: Theme.fontSizeExtraSmall
            color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
            elide: Text.ElideRight
        }
    }

    onClicked: followlink(linkedissuekey)
}

{'fraction_non_alphanumeric': 0.07394502516453735, 'fraction_numerical': 0.016260162601626018, 'mean_word_length': 1.808695652173913, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7225654', 'n_tokens_mistral': 803, 'n_tokens_neox': 700, 'n_words': 182}