@@ -42,7 +42,9 @@ FocusScope {
42 property bool showDecoration: true
42 property bool showDecoration: true
43 property bool animateDecoration: false
43 property bool animateDecoration: false
44 property bool showHighlight: false
44 property bool showHighlight: false
45+ property int highlightSize: units.gu(1)
45 property real shadowOpacity: 0
46 property real shadowOpacity: 0
47+ property bool darkening: false
47 property real requestedWidth
49 property real requestedWidth
48 property real requestedHeight
50 property real requestedHeight
@@ -82,16 +84,9 @@ FocusScope {
82 Rectangle {
84 Rectangle {
83 id: selectionHighlight
85 id: selectionHighlight
84 anchors.fill: parent
86 anchors.fill: parent
85− anchors.margins: -units.gu(1)
87+ anchors.margins: -root.highlightSize
86 color: "white"
88 color: "white"
87− opacity: showHighlight ? 0.15 : 0
89+ opacity: showHighlight ? 0.55 : 0
91− anchors { left: selectionHighlight.left; right: selectionHighlight.right; bottom: selectionHighlight.bottom; }
93− color: theme.palette.normal.focus
94− visible: showHighlight
97 BorderImage {
92 BorderImage {
@@ -186,4 +181,11 @@ FocusScope {
186+ anchors.fill: parent
188+ opacity: root.darkening && !root.showHighlight ? 0.05 : 0
189+ Behavior on opacity { UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration } }