ToolboxActionButtonStyle.qml 762 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // Toolbox is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.2
  4. import QtQuick.Controls 1.4
  5. import QtQuick.Controls.Styles 1.4
  6. import UM 1.1 as UM
  7. ButtonStyle
  8. {
  9. background: Rectangle
  10. {
  11. implicitWidth: UM.Theme.getSize("toolbox_action_button").width
  12. implicitHeight: UM.Theme.getSize("toolbox_action_button").height
  13. color: "transparent"
  14. border
  15. {
  16. width: UM.Theme.getSize("default_lining").width
  17. color: UM.Theme.getColor("lining")
  18. }
  19. }
  20. label: Label
  21. {
  22. text: control.text
  23. color: UM.Theme.getColor("text")
  24. verticalAlignment: Text.AlignVCenter
  25. horizontalAlignment: Text.AlignHCenter
  26. }
  27. }