mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -06:00
WIP: Put all MachineSettings stuff together
This commit is contained in:
parent
42a304c049
commit
8242a3801c
4 changed files with 74 additions and 282 deletions
29
resources/qml/Widgets/CuraTabButton.qml
Normal file
29
resources/qml/Widgets/CuraTabButton.qml
Normal file
|
@ -0,0 +1,29 @@
|
|||
// Copyright (c) 2019 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.10
|
||||
import QtQuick.Controls 2.3
|
||||
import QtQuick.Layouts 1.3
|
||||
|
||||
import UM 1.3 as UM
|
||||
import Cura 1.1 as Cura
|
||||
|
||||
|
||||
//
|
||||
// This is the default Cura Tab button which is a plaintext label.
|
||||
//
|
||||
UM.TabRowButton
|
||||
{
|
||||
id: tabButton
|
||||
text: model.name
|
||||
|
||||
contentItem: Label
|
||||
{
|
||||
anchors.centerIn: tabButton
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: tabButton.text
|
||||
font: tabButton.checked ? UM.Theme.getFont("medium_bold") : UM.Theme.getFont("medium")
|
||||
renderType: Text.NativeRendering
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue