mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 17:57:55 -06:00
Change toolbox tabs to controls2
CURA-6006
This commit is contained in:
parent
4b8e3c32cb
commit
717fb260c1
1 changed files with 37 additions and 38 deletions
|
@ -2,31 +2,31 @@
|
||||||
// Toolbox is released under the terms of the LGPLv3 or higher.
|
// Toolbox is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.4
|
import QtQuick.Controls 2.0
|
||||||
import QtQuick.Controls.Styles 1.4
|
|
||||||
import UM 1.1 as UM
|
import UM 1.1 as UM
|
||||||
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
id: control
|
||||||
property bool active: false
|
property bool active: false
|
||||||
style: ButtonStyle
|
hoverEnabled: true
|
||||||
|
|
||||||
|
background: Item
|
||||||
{
|
{
|
||||||
background: Rectangle
|
|
||||||
{
|
|
||||||
color: "transparent"
|
|
||||||
implicitWidth: UM.Theme.getSize("toolbox_header_tab").width
|
implicitWidth: UM.Theme.getSize("toolbox_header_tab").width
|
||||||
implicitHeight: UM.Theme.getSize("toolbox_header_tab").height
|
implicitHeight: UM.Theme.getSize("toolbox_header_tab").height
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
visible: control.active
|
visible: control.active
|
||||||
color: UM.Theme.getColor("toolbox_header_highlight_hover")
|
color: UM.Theme.getColor("primary")
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: UM.Theme.getSize("toolbox_header_highlight").height
|
height: UM.Theme.getSize("toolbox_header_highlight").height
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
label: Label
|
contentItem: Label
|
||||||
{
|
{
|
||||||
|
id: label
|
||||||
text: control.text
|
text: control.text
|
||||||
color:
|
color:
|
||||||
{
|
{
|
||||||
|
@ -48,4 +48,3 @@ Button
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue