Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ModelChecker.qml « ModelChecker « plugins - github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 437df295166934b96cc26ceaa162241fc91b94be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// 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 QtQuick.Layouts 1.1
import QtQuick.Dialogs 1.1
import QtQuick.Window 2.2

import UM 1.2 as UM
import Cura 1.0 as Cura


Button
{
    id: modelCheckerButton

    UM.I18nCatalog{id: catalog; name: "cura"}

    visible: manager.hasWarnings
    tooltip: catalog.i18nc("@info:tooltip", "Some things could be problematic in this print. Click to see tips for adjustment.")
    onClicked: manager.showWarnings()

    width: UM.Theme.getSize("save_button_specs_icons").width
    height: UM.Theme.getSize("save_button_specs_icons").height

    style: ButtonStyle
    {
        background: Item
        {
            UM.RecolorImage
            {
                width: UM.Theme.getSize("save_button_specs_icons").width;
                height: UM.Theme.getSize("save_button_specs_icons").height;
                sourceSize.height: width;
                color: control.hovered ? UM.Theme.getColor("text_scene_hover") : UM.Theme.getColor("text_scene");
                source: "model_checker.svg"
            }
        }
    }
}