/usr/share/unity-2d/shell/dash/TickBox.qml is in unity-2d-shell 5.10.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69  | /*
 * This file is part of unity-2d
 *
 * Copyright 2010-2011 Canonical Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 3.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
import QtQuick 1.0
import Effects 1.0
import "../common"
AbstractButton {
    id: tickBox
    property string text
    property bool checked: false
    property bool canUncheck: true
    Accessible.name: text
    Accessible.role: Accessible.CheckBox
    width: childrenRect.width
    height: childrenRect.height
    Rectangle {
        id: container
        /* FIXME: Rectangle's borders grow half inside and half outside of the
           rectangle. In order to avoid it being clipped, we adjust its size
           and position depending on its border's width.
           Ref.: http://lists.qt.nokia.com/pipermail/qt-qml/2010-May/000264.html
        */
        x: Math.floor(border.width / 2)
        y: Math.floor(border.width / 2)
        width: parent.width - border.width
        height: parent.height - border.width
        border.color: if ( parent.state == "selected") return "white"
                      else if ( checked ) return "#cdffffff" // 13% opaque
                      else return "#21ffffff" // 80% opaque
        border.width: ( checked ) ? 2 : 1
        color: ( checked ) ? "#21ffffff" : "transparent"
        radius: 7
    }
    TextCustom {
        id: label
        anchors.fill: parent
        width: parent.width
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
        fontSize: "medium"
        color: "white"
        text: tickBox.text
        elide: Text.ElideRight
        opacity: ( !canUncheck ) ? 0 : 1
    }
}
 |