small component patches + code cleanup
This commit is contained in:
31
components/StandardPopup.qml
Normal file
31
components/StandardPopup.qml
Normal file
@@ -0,0 +1,31 @@
|
||||
import QtQuick
|
||||
import "../config" as Cfg
|
||||
|
||||
PopupPanel {
|
||||
id: popup
|
||||
|
||||
property color cardColor: "transparent"
|
||||
property color cardBorderColor: "transparent"
|
||||
property alias cardHeight: card.height
|
||||
property alias showShadow: card.showShadow
|
||||
property bool layerEnabled: false
|
||||
property alias hasKeyboardFocus: popup.hasKeyboardFocus
|
||||
property alias card: card
|
||||
property int activeTab: 0
|
||||
|
||||
default property alias popupContent: card._popupCardContent
|
||||
|
||||
PopupCard {
|
||||
id: card
|
||||
popupOpen: popup.popupOpen
|
||||
isTop: popup.chipRoot ? popup.chipRoot.isTop : true
|
||||
animEnabled: popup.visible
|
||||
color: popup.cardColor
|
||||
radius: Cfg.Config.popupRadius
|
||||
border.color: popup.cardBorderColor
|
||||
border.width: Cfg.Config.popupBorderWidth
|
||||
layer.enabled: popup.layerEnabled
|
||||
|
||||
Behavior on height { NumberAnimation { duration: 220; easing.type: Easing.OutCubic } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user