Use color palette.

This commit is contained in:
Black Hat
2018-12-16 10:47:58 +08:00
parent df045a786f
commit 0d06498467
10 changed files with 34 additions and 13 deletions

View File

@@ -1,7 +1,6 @@
import QtQuick 2.12
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.3
import QtQuick.Controls.Material 2.4
import Spectral.Setting 0.1
import Spectral.Font 0.1
@@ -11,7 +10,7 @@ Text {
id: materialLabel
color: Material.foreground
color: MPalette.foreground
font.pixelSize: 24
font.family: MaterialFont.name
horizontalAlignment: Text.AlignHCenter

View File

@@ -58,7 +58,7 @@ ColumnLayout {
visible: !(sentByMe || avatarVisible)
text: Qt.formatDateTime(time, "hh:mm")
color: "#5B7480"
color: MPalette.lighter
font.pixelSize: 10
horizontalAlignment: Label.AlignHCenter

View File

@@ -1,8 +1,10 @@
import QtQuick 2.12
import QtQuick.Controls 2.4
import Spectral.Setting 0.1
Label {
text: section + " • " + Qt.formatTime(time, "hh:mm")
color: MPalette.foreground
font.pixelSize: 13
font.weight: Font.Medium
font.capitalization: Font.AllUppercase