Warning, /graphics/krita/libs/libqml/plugins/components/Header.qml is written in an unsupported language. File is not indexed.
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2012 Arjen Hiemstra <ahiemstra@heimr.nl> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.3 0008 import org.krita.sketch 1.0 0009 0010 Image { 0011 id: base; 0012 0013 property alias text: title.text; 0014 property alias leftArea: left.children; 0015 property alias rightArea: right.children; 0016 0017 property alias background: base.source; 0018 0019 height: Constants.GridHeight * 2; 0020 width: parent.width; 0021 0022 source: Settings.theme.image("header_krita_sketch.png"); 0023 smooth: true; 0024 0025 Row { 0026 id: left; 0027 0028 anchors { 0029 left: parent.left; 0030 leftMargin: Constants.GridWidth * 0.5; 0031 top: parent.top; 0032 topMargin: Constants.GridHeight * 0.5; 0033 bottom: parent.bottom; 0034 bottomMargin: Constants.GridHeight * 0.5; 0035 } 0036 } 0037 0038 Label { 0039 id: title; 0040 anchors.centerIn: parent; 0041 0042 font.styleName: "Bold"; 0043 font.pixelSize: Constants.HugeFontSize; 0044 color: Settings.theme.color("components/header"); 0045 } 0046 0047 Row { 0048 id: right; 0049 0050 anchors { 0051 right: parent.right; 0052 rightMargin: Constants.GridWidth * 0.5; 0053 top: parent.top; 0054 topMargin: Constants.GridHeight * 0.5; 0055 bottom: parent.bottom; 0056 bottomMargin: Constants.GridHeight * 0.5; 0057 } 0058 } 0059 }