SectionDescription.qml 578 B

1234567891011121314151617181920
  1. import QtQuick
  2. import Felgo
  3. Rectangle {
  4. color: Theme.secondaryBackgroundColor
  5. width: parent.width
  6. height: appText.height + 2 * dp(Theme.navigationBar.defaultBarItemPadding)
  7. property alias text: appText.text
  8. AppText {
  9. id: appText
  10. width: parent.width - 2 * dp(Theme.navigationBar.defaultBarItemPadding)
  11. anchors.verticalCenter: parent.verticalCenter
  12. anchors.horizontalCenter: parent.horizontalCenter
  13. horizontalAlignment: Text.AlignHCenter
  14. color: Theme.secondaryTextColor
  15. font.pixelSize: sp(12)
  16. }
  17. }