mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 07:44:22 +08:00

Subdivided the new icons in 3 size categories. As requested by UX Used the company naming scheme for uniformity and easy recognition. Known issues: - Top/Bottom category wasn't taken into account by UX at the time. Since this is a recent addition. Both the Walls and Top/Bottom will be updated. - Cloud/Network connection icons 12px don't render correctly. Due to the theme-ing. - Extruder Icons do not render correctly. CURA-8010_new_icons
84 lines
2.0 KiB
QML
84 lines
2.0 KiB
QML
// Copyright (c) 2018 Ultimaker B.V.
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.2
|
|
import QtQuick.Controls 1.1
|
|
import QtQuick.Controls.Styles 1.1
|
|
|
|
import UM 1.4 as UM
|
|
import Cura 1.1 as Cura
|
|
// A row of buttons that control the view direction
|
|
Row
|
|
{
|
|
id: viewOrientationControl
|
|
|
|
spacing: UM.Theme.getSize("narrow_margin").width
|
|
height: childrenRect.height
|
|
width: childrenRect.width
|
|
|
|
ViewOrientationButton
|
|
{
|
|
iconSource: UM.Theme.getIcon("View3D")
|
|
onClicked: Cura.Actions.view3DCamera.trigger()
|
|
|
|
UM.TooltipArea
|
|
{
|
|
anchors.fill: parent
|
|
text: catalog.i18nc("@info:tooltip", "3D View")
|
|
acceptedButtons: Qt.NoButton
|
|
}
|
|
}
|
|
|
|
ViewOrientationButton
|
|
{
|
|
iconSource: UM.Theme.getIcon("ViewFront")
|
|
onClicked: Cura.Actions.viewFrontCamera.trigger()
|
|
|
|
UM.TooltipArea
|
|
{
|
|
anchors.fill: parent
|
|
text: catalog.i18nc("@info:tooltip", "Front View")
|
|
acceptedButtons: Qt.NoButton
|
|
}
|
|
}
|
|
|
|
ViewOrientationButton
|
|
{
|
|
iconSource: UM.Theme.getIcon("ViewTop")
|
|
onClicked: Cura.Actions.viewTopCamera.trigger()
|
|
|
|
UM.TooltipArea
|
|
{
|
|
anchors.fill: parent
|
|
text: catalog.i18nc("@info:tooltip", "Top View")
|
|
acceptedButtons: Qt.NoButton
|
|
}
|
|
}
|
|
|
|
ViewOrientationButton
|
|
{
|
|
iconSource: UM.Theme.getIcon("ViewLeft")
|
|
onClicked: Cura.Actions.viewLeftSideCamera.trigger()
|
|
|
|
UM.TooltipArea
|
|
{
|
|
anchors.fill: parent
|
|
text: catalog.i18nc("@info:tooltip", "Left View")
|
|
acceptedButtons: Qt.NoButton
|
|
}
|
|
}
|
|
|
|
ViewOrientationButton
|
|
{
|
|
iconSource: UM.Theme.getIcon("ViewRight")
|
|
onClicked: Cura.Actions.viewRightSideCamera.trigger()
|
|
|
|
UM.TooltipArea
|
|
{
|
|
anchors.fill: parent
|
|
text: catalog.i18nc("@info:tooltip", "Right View")
|
|
acceptedButtons: Qt.NoButton
|
|
}
|
|
}
|
|
}
|