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

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

import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.1

import UM 1.6 as UM
import Cura 1.7 as Cura

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

    leftPadding: searchIcon.width + UM.Theme.getSize("default_margin").width * 2

    placeholderText: catalog.i18nc("@placeholder", "Search")
    font.italic: true

    UM.ColorImage
    {
        id: searchIcon

        anchors
        {
            verticalCenter: parent.verticalCenter
            left: parent.left
            leftMargin: UM.Theme.getSize("default_margin").width
        }
        source: UM.Theme.getIcon("Magnifier")
        height: UM.Theme.getSize("small_button_icon").height
        width: height
        color: UM.Theme.getColor("text")
    }
}