Popup.qml 1011 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright (C) 2017 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. // Qt-Security score:significant reason:default
  4. import QtQuick
  5. import QtQuick.Templates as T
  6. import QtQuick.Controls.Universal
  7. T.Popup {
  8. id: control
  9. implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
  10. implicitContentWidth + leftPadding + rightPadding)
  11. implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
  12. implicitContentHeight + topPadding + bottomPadding)
  13. padding: 12
  14. background: Rectangle {
  15. color: control.Universal.chromeMediumLowColor
  16. border.color: control.Universal.chromeHighColor
  17. border.width: 1 // FlyoutBorderThemeThickness
  18. }
  19. T.Overlay.modal: Rectangle {
  20. color: control.Universal.baseLowColor
  21. }
  22. T.Overlay.modeless: Rectangle {
  23. color: control.Universal.baseLowColor
  24. }
  25. }