mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
29 lines
758 B
QML
29 lines
758 B
QML
/*
|
|
* SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
|
|
import QtQuick 2.12
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import org.kde.plasma.plasma5support 2.0 as P5Support
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents
|
|
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
|
|
|
|
import org.kde.kirigami as Kirigami
|
|
|
|
import "indicators" as Indicators
|
|
|
|
PlasmaComponents.Label {
|
|
id: clock
|
|
|
|
required property P5Support.DataSource source
|
|
|
|
property bool is24HourTime: MobileShell.ShellUtil.isSystem24HourFormat
|
|
|
|
text: Qt.formatTime(source.data.Local.DateTime, is24HourTime ? "h:mm" : "h:mm ap")
|
|
color: Kirigami.Theme.textColor
|
|
verticalAlignment: Qt.AlignVCenter
|
|
}
|