summaryrefslogtreecommitdiff
path: root/prototype_2016/third_party/fluid/controls/BodyLabel.qml
diff options
context:
space:
mode:
authorlurchi <lurchi@strangeplace.net>2017-03-16 00:00:19 +0100
committerlurchi <lurchi@strangeplace.net>2017-03-16 00:00:19 +0100
commit4b2221f7063712afd2c11b6d54ee47817db19bb3 (patch)
tree639fb2285f9bc1ebb1cd99e3d49eb74109c2eedc /prototype_2016/third_party/fluid/controls/BodyLabel.qml
parent7632e7f4827da8805c079e5dbd87c1ed07facc9c (diff)
parentb3d231ef193aa1712d2ea8891223a3f94ef66594 (diff)
downloadsecushare-4b2221f7063712afd2c11b6d54ee47817db19bb3.tar.gz
secushare-4b2221f7063712afd2c11b6d54ee47817db19bb3.zip
merge fluid_icons_problem
Diffstat (limited to 'prototype_2016/third_party/fluid/controls/BodyLabel.qml')
-rw-r--r--prototype_2016/third_party/fluid/controls/BodyLabel.qml51
1 files changed, 51 insertions, 0 deletions
diff --git a/prototype_2016/third_party/fluid/controls/BodyLabel.qml b/prototype_2016/third_party/fluid/controls/BodyLabel.qml
new file mode 100644
index 0000000..ff63cec
--- /dev/null
+++ b/prototype_2016/third_party/fluid/controls/BodyLabel.qml
@@ -0,0 +1,51 @@
1/*
2 * This file is part of Fluid.
3 *
4 * Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
5 *
6 * $BEGIN_LICENSE:MPL2$
7 *
8 * This Source Code Form is subject to the terms of the Mozilla Public
9 * License, v. 2.0. If a copy of the MPL was not distributed with this
10 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 *
12 * $END_LICENSE$
13 */
14
15import QtQuick 2.0
16import QtQuick.Templates 2.0 as T
17
18/*!
19 \qmltype BodyLabel
20 \inqmlmodule Fluid.Controls
21 \ingroup fluidcontrols
22
23 \brief Text label with standard font and styling suitable to body text.
24
25 \code
26 BodyLabel {
27 text: qsTr("Body text")
28 }
29 \endcode
30*/
31T.Label {
32 /*!
33 \qmlproperty int level
34
35 This property holds the label level that controls
36 font style and size.
37
38 It can be either 1 or 2.
39
40 Default value is 1.
41 */
42 property int level: 1
43
44 font.pixelSize: 14
45 color: "#26282a"
46 linkColor: "#45a7d7"
47 onLevelChanged: {
48 if (level < 1 || level > 2)
49 console.error("BodyLabel level must be either 1 or 2")
50 }
51}