2
* Copyright 2016 Canonical Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Marco Trevisan <marco.trevisan@canonical.com>
21
import Ubuntu.Components 1.3
26
property alias checked: bullet.visible
28
function onClickedCallback() {
30
menu.triggered(checked)
35
width: menuStyle.iconSize
37
anchors.verticalCenter: parent.verticalCenter
38
SlotsLayout.overrideVerticalPositioning: true
39
SlotsLayout.position: SlotsLayout.Leading
43
when: menu.pointerMode
51
width: menuStyle.padding.leading + units.gu(1)
52
SlotsLayout.padding.leading: 0
53
SlotsLayout.padding.trailing: 0
56
target: menu.layout.mainSlot
57
SlotsLayout.padding.leading: 0
64
anchors.centerIn: parent
66
width: visible ? units.gu(0.8) : 0
69
color: menu.foregroundColor
70
opacity: visible ? 1.0 : 0.0
71
Behavior on opacity { UbuntuNumberAnimation {} }
72
Behavior on width { UbuntuNumberAnimation {} }