diff options
Diffstat (limited to 'examples/quickcontrols/wearable/qml/Style')
5 files changed, 0 insertions, 181 deletions
diff --git a/examples/quickcontrols/wearable/qml/Style/PageIndicator.qml b/examples/quickcontrols/wearable/qml/Style/PageIndicator.qml deleted file mode 100644 index 593b50afb5..0000000000 --- a/examples/quickcontrols/wearable/qml/Style/PageIndicator.qml +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -import QtQuick -import QtQuick.Templates as T -import "." - -T.PageIndicator { - id: control - - implicitWidth: contentItem.implicitWidth + leftPadding + rightPadding - implicitHeight: contentItem.implicitHeight + topPadding + bottomPadding - - spacing: 6 - padding: 6 - bottomPadding: 7 - - delegate: Rectangle { - implicitWidth: 8 - implicitHeight: 8 - - radius: width / 2 - color: UIStyle.themeColorQtGray3 - - opacity: index === control.currentIndex ? 1.0 : 0.35 - - Behavior on opacity { - OpacityAnimator { - duration: 100 - } - } - } - - contentItem: Row { - spacing: control.spacing - - Repeater { - model: control.count - delegate: control.delegate - } - } -} diff --git a/examples/quickcontrols/wearable/qml/Style/Slider.qml b/examples/quickcontrols/wearable/qml/Style/Slider.qml deleted file mode 100644 index 79c664280f..0000000000 --- a/examples/quickcontrols/wearable/qml/Style/Slider.qml +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -import QtQuick -import QtQuick.Templates as T -import "." - -T.Slider { - id: control - - implicitWidth: 200 - implicitHeight: 26 - - handle: Rectangle { - x: control.visualPosition * (control.width - width) - y: (control.height - height) / 2 - width: 20 - height: 15 - - radius: 5 - color: control.pressed ? "#f0f0f0" : "#f6f6f6" - border.color: UIStyle.themeColorQtGray7 - } - - background: Rectangle { - y: (control.height - height) / 2 - height: 4 - radius: 2 - color: UIStyle.themeColorQtGray3 - - Rectangle { - width: control.visualPosition * parent.width - height: parent.height - color: UIStyle.colorQtAuxGreen2 - radius: 2 - } - } -} - diff --git a/examples/quickcontrols/wearable/qml/Style/Switch.qml b/examples/quickcontrols/wearable/qml/Style/Switch.qml deleted file mode 100644 index 6219bf231e..0000000000 --- a/examples/quickcontrols/wearable/qml/Style/Switch.qml +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -import QtQuick -import QtQuick.Templates as T -import "." - -T.Switch { - id: control - - implicitWidth: 48 - implicitHeight: 26 - - indicator: Rectangle { - x: control.visualPosition * (control.width - width) - y: (control.height - height) / 2 - width: 26 - height: 26 - - radius: 13 - color: control.down ? UIStyle.themeColorQtGray6 : UIStyle.themeColorQtGray10 - border.color: !control.checked ? "#999999" - : (control.down ? UIStyle.colorQtAuxGreen2 - : UIStyle.colorQtAuxGreen1) - - Behavior on x { - enabled: !control.pressed - SmoothedAnimation { velocity: 200 } - } - } - - background: Rectangle { - radius: 13 - color: control.checked ? UIStyle.colorQtAuxGreen2 : UIStyle.colorRed - border.color: control.checked ? UIStyle.colorQtAuxGreen2 - : UIStyle.themeColorQtGray6 - } -} - diff --git a/examples/quickcontrols/wearable/qml/Style/UIStyle.qml b/examples/quickcontrols/wearable/qml/Style/UIStyle.qml deleted file mode 100644 index 524b8394f5..0000000000 --- a/examples/quickcontrols/wearable/qml/Style/UIStyle.qml +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -import QtQuick - -pragma Singleton - -QtObject { - id: uiStyle - - // Font Sizes - readonly property int fontSizeXXS: 10 - readonly property int fontSizeXS: 15 - readonly property int fontSizeS: 20 - readonly property int fontSizeM: 25 - readonly property int fontSizeL: 30 - readonly property int fontSizeXL: 35 - readonly property int fontSizeXXL: 40 - - // Color Scheme - // Green - readonly property color colorQtPrimGreen: "#41cd52" - readonly property color colorQtAuxGreen1: "#21be2b" - readonly property color colorQtAuxGreen2: "#17a81a" - - // Red - readonly property color colorRed: "#e6173d" - - // Gray - readonly property color colorQtGray1: "#09102b" - readonly property color colorQtGray2: "#222840" - readonly property color colorQtGray3: "#3a4055" - readonly property color colorQtGray4: "#53586b" - readonly property color colorQtGray5: "#53586b" - readonly property color colorQtGray6: "#848895" - readonly property color colorQtGray7: "#9d9faa" - readonly property color colorQtGray8: "#b5b7bf" - readonly property color colorQtGray9: "#cecfd5" - readonly property color colorQtGray10: "#f3f3f4" - - // Light/dark versions of the colors above. - // Some UI elements always use a specific color regardless of theme, - // which is why we have both sets: so that those elements don't need to hard-code the hex string. - readonly property color themeColorQtGray1: darkTheme ? colorQtGray10 : colorQtGray1 - readonly property color themeColorQtGray2: darkTheme ? colorQtGray9 : colorQtGray2 - readonly property color themeColorQtGray3: darkTheme ? colorQtGray8 : colorQtGray3 - readonly property color themeColorQtGray4: darkTheme ? colorQtGray7 : colorQtGray4 - readonly property color themeColorQtGray5: darkTheme ? colorQtGray6 : colorQtGray5 - readonly property color themeColorQtGray6: darkTheme ? colorQtGray5 : colorQtGray6 - readonly property color themeColorQtGray7: darkTheme ? colorQtGray4 : colorQtGray7 - readonly property color themeColorQtGray8: darkTheme ? colorQtGray3 : colorQtGray8 - readonly property color themeColorQtGray9: darkTheme ? colorQtGray2 : colorQtGray9 - readonly property color themeColorQtGray10: darkTheme ? colorQtGray1 : colorQtGray10 - - property bool darkTheme: false - - function themeImagePath(baseImagePath) { - return baseImagePath + (darkTheme ? "-dark" : "-light") + ".png" - } -} diff --git a/examples/quickcontrols/wearable/qml/Style/qmldir b/examples/quickcontrols/wearable/qml/Style/qmldir deleted file mode 100644 index a04072bed6..0000000000 --- a/examples/quickcontrols/wearable/qml/Style/qmldir +++ /dev/null @@ -1 +0,0 @@ -singleton UIStyle 1.0 UIStyle.qml |