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

Menu.qml « Widgets « qml « resources - github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1a64b981fa3dfe9453098dedca6d92328768000d (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
// Copyright (c) 2021 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.

import QtQuick 2.7

import UM 1.5 as UM
import Cura 1.0 as Cura

//
// Menu with Cura styling.
//
UM.Menu
{
    id: menu
    Item { enabled: false; UM.I18nCatalog { id: catalog; name: "cura"} }
    topPadding: UM.Theme.getSize("narrow_margin").height
    bottomPadding: UM.Theme.getSize("narrow_margin").height
    padding: 0

    implicitWidth: UM.Theme.getSize("menu").width

    delegate: Cura.MenuItem {}
    background: Rectangle
    {
        color: UM.Theme.getColor("main_background")
        border.color: UM.Theme.getColor("lining")
    }
}