diff options
Diffstat (limited to 'plugins/Marketplace/resources/qml/PackageTypeTab.qml')
-rw-r--r-- | plugins/Marketplace/resources/qml/PackageTypeTab.qml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/Marketplace/resources/qml/PackageTypeTab.qml b/plugins/Marketplace/resources/qml/PackageTypeTab.qml new file mode 100644 index 0000000000..79eaa9a16c --- /dev/null +++ b/plugins/Marketplace/resources/qml/PackageTypeTab.qml @@ -0,0 +1,33 @@ +// Copyright (c) 2021 Ultimaker B.V. +// Cura is released under the terms of the LGPLv3 or higher. + +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import UM 1.0 as UM + +TabButton +{ + property string pageTitle + padding: UM.Theme.getSize("narrow_margin").width + horizontalPadding: UM.Theme.getSize("default_margin").width + hoverEnabled: true + property color inactiveBackgroundColor : hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("detail_background") + property color activeBackgroundColor : UM.Theme.getColor("main_background") + + background: Rectangle + { + anchors.fill: parent + color: parent.checked ? activeBackgroundColor : inactiveBackgroundColor + border.color: UM.Theme.getColor("detail_background") + border.width: UM.Theme.getSize("thick_lining").width + } + + contentItem: Label + { + text: parent.text + font: UM.Theme.getFont("medium_bold") + color: UM.Theme.getColor("text") + width: contentWidth + anchors.centerIn: parent + } +}
\ No newline at end of file |