Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Clock.qml
Show All 13 Lines | |||||
14 | * You should have received a copy of the GNU Library General Public | 14 | * You should have received a copy of the GNU Library General Public | ||
15 | * License along with this program; if not, write to the | 15 | * License along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | 16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.0 | 20 | import QtQuick 2.0 | ||
21 | import QtQuick.Layouts 1.1 | 21 | import QtQuick.Layouts 1.1 | ||
22 | import QtGraphicalEffects 1.0 | ||||
22 | 23 | | |||
23 | import org.kde.plasma.core 2.0 | 24 | import org.kde.plasma.core 2.0 | ||
24 | import org.kde.plasma.components 2.0 | 25 | import org.kde.plasma.components 2.0 | ||
25 | 26 | | |||
27 | Item { | ||||
28 | width: clock.implicitWidth | ||||
29 | height: clock.implicitHeight | ||||
30 | | ||||
31 | DropShadow { | ||||
32 | id: clockShadow | ||||
33 | anchors.fill: clock | ||||
34 | source: clock | ||||
35 | horizontalOffset: 0 | ||||
36 | verticalOffset: 2 | ||||
37 | radius: 14 | ||||
38 | samples: 32 | ||||
39 | spread: 0.3 | ||||
40 | color: ColorScope.backgroundColor | ||||
41 | } | ||||
42 | | ||||
26 | ColumnLayout { | 43 | ColumnLayout { | ||
44 | id: clock | ||||
27 | Label { | 45 | Label { | ||
28 | text: Qt.formatTime(timeSource.data["Local"]["DateTime"]) | 46 | text: Qt.formatTime(timeSource.data["Local"]["DateTime"]) | ||
29 | font.pointSize: 32 //Mockup says this, I'm not sure what to do? | 47 | font.pointSize: 48 | ||
davidedmundson: The mockup didn't change!
Just drop the comment. | |||||
48 | font.weight: Font.Light | ||||
30 | Layout.alignment: Qt.AlignHCenter | 49 | Layout.alignment: Qt.AlignHCenter | ||
31 | } | 50 | } | ||
davidedmundson: why?
The fact that it's in just one of two labels makes it weirder. | |||||
This was copied from the lookandfeel clock (the two had drifted out of sync). I can remove it from both places. ngraham: This was copied from the lookandfeel clock (the two had drifted out of sync). I can remove it… | |||||
32 | Label { | 51 | Label { | ||
33 | text: Qt.formatDate(timeSource.data["Local"]["DateTime"], Qt.DefaultLocaleLongDate) | 52 | text: Qt.formatDate(timeSource.data["Local"]["DateTime"], Qt.DefaultLocaleLongDate) | ||
34 | font.pointSize: 18 | 53 | font.pointSize: 24 | ||
54 | font.weight: Font.Light | ||||
35 | Layout.alignment: Qt.AlignHCenter | 55 | Layout.alignment: Qt.AlignHCenter | ||
36 | } | 56 | } | ||
37 | DataSource { | 57 | DataSource { | ||
38 | id: timeSource | 58 | id: timeSource | ||
39 | engine: "time" | 59 | engine: "time" | ||
40 | connectedSources: ["Local"] | 60 | connectedSources: ["Local"] | ||
41 | interval: 1000 | 61 | interval: 1000 | ||
42 | } | 62 | } | ||
43 | } | 63 | } | ||
64 | } |
The mockup didn't change!
Just drop the comment.