mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
WIP: Cleanup and unify MachineAction styles
This commit is contained in:
parent
8d68db9ff0
commit
3911c3d73d
16 changed files with 82 additions and 93 deletions
28
resources/qml/Widgets/TabButton.qml
Normal file
28
resources/qml/Widgets/TabButton.qml
Normal file
|
@ -0,0 +1,28 @@
|
|||
// 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 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