change pane border on hover
This commit is contained in:
parent
01c2ea9044
commit
0ab37420a2
1 changed files with 4 additions and 2 deletions
|
|
@ -3,12 +3,14 @@ import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
|
|
||||||
Pane {
|
Pane {
|
||||||
|
id: pane
|
||||||
|
|
||||||
padding: 24
|
padding: 24
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.width: Styling.theme.border
|
border.width: Styling.theme.border
|
||||||
border.color: Styling.theme.basecontent
|
border.color: pane.hovered ? Styling.theme.accent : Styling.theme.basecontent
|
||||||
opacity: 0.33
|
opacity: 0.2
|
||||||
Behavior on border.color {
|
Behavior on border.color {
|
||||||
ColorAnimation {
|
ColorAnimation {
|
||||||
duration: Styling.animations.speed.fast
|
duration: Styling.animations.speed.fast
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue