dd focus rectangles

This commit is contained in:
Marco Martin 2014-08-20 15:04:39 +02:00
parent 58f4f3b126
commit 770121d516
2 changed files with 12 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import QtQuick.Controls.Styles 1.1 as QtQuickControlStyle
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.components 2.0 as PlasmaComponents
import "../private" as Private
QtQuickControlStyle.CheckBoxStyle { QtQuickControlStyle.CheckBoxStyle {
id: checkboxStyle id: checkboxStyle
@ -68,5 +68,10 @@ QtQuickControlStyle.CheckBoxStyle {
} }
} }
} }
Private.ButtonShadow {
z: -1
anchors.fill: parent
state: control.activeFocus ? "focus" : (control.hovered ? "hover" : "shadow")
}
} }
} }

View File

@ -22,7 +22,7 @@ import QtQuick.Controls.Styles 1.1 as QtQuickControlStyle
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.components 2.0 as PlasmaComponents
import "../private" as Private
QtQuickControlStyle.RadioButtonStyle { QtQuickControlStyle.RadioButtonStyle {
id: radiobuttonStyle id: radiobuttonStyle
@ -63,5 +63,10 @@ QtQuickControlStyle.RadioButtonStyle {
} }
} }
} }
Private.RoundShadow {
anchors.fill: parent
z: -1
state: control.activeFocus ? "focus" : (control.hovered ? "hover" : "shadow")
}
} }
} }