diff options
Diffstat (limited to 'prototype_2016/third_party/fluid/controls/+material')
8 files changed, 0 insertions, 237 deletions
diff --git a/prototype_2016/third_party/fluid/controls/+material/BaseListItem.qml b/prototype_2016/third_party/fluid/controls/+material/BaseListItem.qml deleted file mode 100644 index 41f2692..0000000 --- a/prototype_2016/third_party/fluid/controls/+material/BaseListItem.qml +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | /* | ||
2 | * This file is part of Fluid. | ||
3 | * | ||
4 | * Copyright (C) 2016 Michael Spencer <sonrisesoftware@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 | |||
15 | import QtQuick 2.4 | ||
16 | import QtQuick.Controls 2.0 | ||
17 | import Fluid.Material 1.0 | ||
18 | |||
19 | ListItemDelegate { | ||
20 | id: listItem | ||
21 | |||
22 | background: Rectangle { | ||
23 | color: listItem.highlighted ? Qt.rgba(0,0,0,0.05) | ||
24 | : ripple.containsMouse ? Qt.rgba(0,0,0,0.03) | ||
25 | : Qt.rgba(0,0,0,0) | ||
26 | |||
27 | Ripple { | ||
28 | id: ripple | ||
29 | width: parent.width | ||
30 | height: parent.height | ||
31 | enabled: interactive | ||
32 | |||
33 | control: listItem | ||
34 | } | ||
35 | |||
36 | ThinDivider { | ||
37 | x: dividerInset | ||
38 | y: parent.height - height | ||
39 | |||
40 | width: parent.width - x | ||
41 | |||
42 | visible: showDivider | ||
43 | } | ||
44 | } | ||
45 | } | ||
diff --git a/prototype_2016/third_party/fluid/controls/+material/BodyLabel.qml b/prototype_2016/third_party/fluid/controls/+material/BodyLabel.qml deleted file mode 100644 index cf52144..0000000 --- a/prototype_2016/third_party/fluid/controls/+material/BodyLabel.qml +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | /* | ||
2 | * This file is part of Fluid. | ||
3 | * | ||
4 | * Copyright (C) 2016 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 | |||
15 | import QtQuick 2.4 | ||
16 | import QtQuick.Controls 2.0 | ||
17 | import Fluid.Core 1.0 | ||
18 | |||
19 | Label { | ||
20 | property int level: 1 | ||
21 | |||
22 | font.pixelSize: Device.isMobile ? 14 : 13 | ||
23 | font.weight: level == 1 ? Font.Normal : Font.Medium | ||
24 | lineHeight: level <= 1 ? 20.0 : 24.0 | ||
25 | lineHeightMode: Text.FixedHeight | ||
26 | onLevelChanged: { | ||
27 | if (level < 1 || level > 2) | ||
28 | console.error("BodyLabel level must be either 1 or 2") | ||
29 | } | ||
30 | } | ||
diff --git a/prototype_2016/third_party/fluid/controls/+material/CaptionLabel.qml b/prototype_2016/third_party/fluid/controls/+material/CaptionLabel.qml deleted file mode 100644 index 4ef1710..0000000 --- a/prototype_2016/third_party/fluid/controls/+material/CaptionLabel.qml +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | /* | ||
2 | * This file is part of Fluid. | ||
3 | * | ||
4 | * Copyright (C) 2016 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 | |||
15 | import QtQuick 2.4 | ||
16 | import QtQuick.Controls 2.0 | ||
17 | |||
18 | Label { | ||
19 | font.pixelSize: 12 | ||
20 | } | ||
diff --git a/prototype_2016/third_party/fluid/controls/+material/DisplayLabel.qml b/prototype_2016/third_party/fluid/controls/+material/DisplayLabel.qml deleted file mode 100644 index 72087d1..0000000 --- a/prototype_2016/third_party/fluid/controls/+material/DisplayLabel.qml +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | /* | ||
2 | * This file is part of Fluid. | ||
3 | * | ||
4 | * Copyright (C) 2016 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 | |||
15 | import QtQuick 2.4 | ||
16 | import QtQuick.Controls 2.0 | ||
17 | import Fluid.Core 1.0 | ||
18 | |||
19 | Label { | ||
20 | property int level: 1 | ||
21 | |||
22 | font.pixelSize: { | ||
23 | if (level <= 1) | ||
24 | return 34 | ||
25 | else if (level == 2) | ||
26 | return 45 | ||
27 | else if (level == 3) | ||
28 | return 56 | ||
29 | return 112 | ||
30 | } | ||
31 | lineHeight: { | ||
32 | if (level <= 1) | ||
33 | return 40.0 | ||
34 | else if (level == 2) | ||
35 | return 48.0 | ||
36 | return 1.0 | ||
37 | } | ||
38 | lineHeightMode: { | ||
39 | if (level <= 2) | ||
40 | return Text.FixedHeight | ||
41 | return Text.ProportionalHeight | ||
42 | } | ||
43 | font.weight: level >= 4 ? Font.Light : Font.Normal | ||
44 | onLevelChanged: { | ||
45 | if (level < 1 || level > 4) | ||
46 | console.error("DisplayLabel level must be between 1 and 4") | ||
47 | } | ||
48 | } | ||
diff --git a/prototype_2016/third_party/fluid/controls/+material/HeadlineLabel.qml b/prototype_2016/third_party/fluid/controls/+material/HeadlineLabel.qml deleted file mode 100644 index 8264c2d..0000000 --- a/prototype_2016/third_party/fluid/controls/+material/HeadlineLabel.qml +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | /* | ||
2 | * This file is part of Fluid. | ||
3 | * | ||
4 | * Copyright (C) 2016 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 | |||
15 | import QtQuick 2.4 | ||
16 | import QtQuick.Controls 2.0 | ||
17 | |||
18 | Label { | ||
19 | font.pixelSize: 24 | ||
20 | lineHeight: 32.0 | ||
21 | lineHeightMode: Text.FixedHeight | ||
22 | } | ||
diff --git a/prototype_2016/third_party/fluid/controls/+material/SubheadingLabel.qml b/prototype_2016/third_party/fluid/controls/+material/SubheadingLabel.qml deleted file mode 100644 index 06c005b..0000000 --- a/prototype_2016/third_party/fluid/controls/+material/SubheadingLabel.qml +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | /* | ||
2 | * This file is part of Fluid. | ||
3 | * | ||
4 | * Copyright (C) 2016 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 | |||
15 | import QtQuick 2.4 | ||
16 | import QtQuick.Controls 2.0 | ||
17 | import Fluid.Core 1.0 | ||
18 | |||
19 | Label { | ||
20 | property int level: 1 | ||
21 | |||
22 | font.pixelSize: Device.isMobile ? 16 : 15 | ||
23 | lineHeight: level <= 1 ? 24.0 : 28.0 | ||
24 | lineHeightMode: Text.FixedHeight | ||
25 | onLevelChanged: { | ||
26 | if (level < 1 || level > 2) | ||
27 | console.error("SubheadingLabel level must be either 1 or 2 with the Material style") | ||
28 | } | ||
29 | } | ||
diff --git a/prototype_2016/third_party/fluid/controls/+material/ThinDivider.qml b/prototype_2016/third_party/fluid/controls/+material/ThinDivider.qml deleted file mode 100644 index 113c2b0..0000000 --- a/prototype_2016/third_party/fluid/controls/+material/ThinDivider.qml +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | /* | ||
2 | * This file is part of Fluid. | ||
3 | * | ||
4 | * Copyright (C) 2016 Michael Spencer <sonrisesoftware@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 | |||
15 | import QtQuick 2.4 | ||
16 | import QtQuick.Controls.Material 2.0 | ||
17 | |||
18 | Rectangle { | ||
19 | color: Material.dividerColor | ||
20 | width: parent.width | ||
21 | height: 1 | ||
22 | } | ||
diff --git a/prototype_2016/third_party/fluid/controls/+material/TitleLabel.qml b/prototype_2016/third_party/fluid/controls/+material/TitleLabel.qml deleted file mode 100644 index bf62b29..0000000 --- a/prototype_2016/third_party/fluid/controls/+material/TitleLabel.qml +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | /* | ||
2 | * This file is part of Fluid. | ||
3 | * | ||
4 | * Copyright (C) 2016 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 | |||
15 | import QtQuick 2.4 | ||
16 | import QtQuick.Controls 2.0 | ||
17 | |||
18 | Label { | ||
19 | font.pixelSize: 20 | ||
20 | font.weight: Font.Medium | ||
21 | } | ||