summaryrefslogtreecommitdiffstats
path: root/meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bbappend
blob: 26233c5b9505d44b80dbcd2da2e1a1dbb05e1962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

PACKAGE_ARCH = "${MACHINE_ARCH}"

WESTON_DISPLAYS:append = "${@bb.utils.contains("DISTRO_FEATURES", "weston-remoting", " remote-output", "", d)}"
WESTON_DISPLAYS:append = "${@bb.utils.contains("AGL_FEATURES", "waltham-remoting", " transmitter-output", "", d)}"

# For virtual machines and intel-corei7-64 we want to support both the HDMI-A-1
# and Virtual-1 outputs. This allows us to run virtual images on real hardware
# and vice versa.
WESTON_DISPLAYS:append:qemuall = " virtual-90"
WESTON_DISPLAYS:append:intel-corei7-64 = " virtual-90"
WESTON_DISPLAYS:append:virtio-aarch64 = " virtual-90"
: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/*
 * Copyright (C) 2016 The Qt Company Ltd.
 * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
 * Copyright (c) 2017-2019 TOYOTA MOTOR CORPORATION
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import QtQuick 2.2
import QtQuick.Layouts 1.1
import HomeScreen 1.0

Item {
    id: root
    width: 700
    height: 80

    property date now: new Date
    Timer {
        interval: 100; running: true; repeat: true;
        onTriggered: root.now = new Date
    }

    Timer {
        id:notificationTimer
        interval: 3000
        running: false
        repeat: true
        onTriggered: notificationItem.visible = false
    }

    Connections {
        target: weather

        onConditionChanged: {
            var icon = ''

            if (condition.indexOf("clouds") !== -1) {
                icon = "WeatherIcons_Cloudy-01.png"
            } else if (condition.indexOf("thunderstorm") !== -1) {
                icon = "WeatherIcons_Thunderstorm-01.png"
            } else if (condition.indexOf("snow") !== -1) {
                icon = "WeatherIcons_Snow-01.png"
            } else if (condition.indexOf("rain") !== -1) {
                icon = "WeatherIcons_Rain-01.png"
            }

            condition_item.source = icon ? './images/Weather/' + icon : ''
        }

        onTemperatureChanged: {
            temperature_item.text = temperature.split(".")[0] + '°F'
        }
    }

        RowLayout {
            anchors.fill: parent
            spacing: 0
            RowLayout {
                id: icons
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.preferredWidth: 120
                spacing: -10

                Image {
                    id: bt_icon
                    Layout.preferredWidth: 50
                    Layout.preferredHeight: 50
                    source: connStatus ? './images/Status/HMI_Status_Bluetooth_On-01.png' : './images/Status/HMI_Status_Bluetooth_Inactive-01.png'
                    fillMode: Image.PreserveAspectFit
                    property string deviceName: "none"
                    property bool connStatus: false
                    Connections {
                        target: bluetooth
                        onConnectionEvent: {
                            console.log("onConnectionEvent", data.Status)
                            if (data.Status === "connected") {
                                bt_icon.connStatus = true
                            } else if (data.Status === "disconnected") {
                                bt_icon.connStatus = false
                            }
                        }
                        onDeviceUpdateEvent: {
                            console.log("onConnectionEvent", data.Paired)
                            if (data.Paired === "True" && data.Connected === "True") {
                                bt_icon.deviceName = data.name
                                bt_icon.connStatus = true
                            } else {
                                if(bt_icon.deviceName === data.Name)
                                {
                                    bt_icon.connStatus = false
                                }
                            }
                        }
                    }
                }

                Repeater {
                    model: StatusBarModel { objectName: "statusBar" }
                    delegate: Image {
                        Layout.preferredWidth: 50
                        Layout.preferredHeight: 50
                        source: model.modelData
                        fillMode: Image.PreserveAspectFit
                    }
                }
            }
            Item {
                anchors.left: icons.right
                Layout.fillHeight: true
                width: 440
                ColumnLayout {
                    anchors.fill: parent
                    anchors.margins: 17
                    spacing: 0
                    Text {
                        Layout.fillWidth: true
                        Layout.fillHeight: true
                        text: Qt.formatDate(now, 'dddd').toUpperCase()
                        font.family: 'Roboto'
                        font.pixelSize: 13
                        color: 'white'
                        horizontalAlignment:  Text.AlignHCenter
                        verticalAlignment:  Text.AlignVCenter
                    }
                    Text {
                        Layout.fillWidth: true
                        Layout.fillHeight: true
                        text: Qt.formatTime(now, 'h:mm ap').toUpperCase()
                        font.family: 'Roboto'
                        font.pixelSize: 38
                        color: 'white'
                        horizontalAlignment:  Text.AlignHCenter
                        verticalAlignment:  Text.AlignVCenter
                    }
                }
            }
            RowLayout {
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.preferredHeight: 20

                Image {
                    id: condition_item
                    source: './images/Weather/WeatherIcons_Rain-01.png'
                }
                Text {
                    id: temperature_item
                    text: '64°F'
                    color: 'white'
                    font.family: 'Helvetica'
                    font.pixelSize: 32
                }
            }
        }

        Item {
            id: notificationItem
            x: 0
            y: 0
            z: 1
            width: parent.width
            height: 100
            opacity: 0.8
            visible: false

            Rectangle {
                width: parent.width
                height: parent.height
                anchors.fill: parent
                color: "gray"
                Image {
                    id: notificationIcon
                    width: 70
                    height: 70
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    anchors.verticalCenter: parent.verticalCenter
                    source: ""
                }

                Text {
                    id: notificationtext
                    font.pixelSize: 25
                    anchors.left: notificationIcon.right
                    anchors.leftMargin: 5
                    anchors.verticalCenter: parent.verticalCenter
                    color: "white"
                    text: qsTr("")
                }
            }
        }

        Connections {
            target: homescreenHandler
            onNotification: {
                notificationIcon.source = './images/Shortcut/%1.svg'.arg(id)
                notificationtext.text = text
                notificationItem.visible = true
                notificationTimer.restart()
            }
        }

}