diff --git a/Time.qml b/Time.qml index 9c941cd..92f634b 100644 --- a/Time.qml +++ b/Time.qml @@ -2,6 +2,7 @@ import QtQuick 2.0 import QtQml 2.12 import QtQuick.Layouts 1.12 import org.ukui.appwidget 1.0 +import QtGraphicalEffects 1.0 //import QtQuick.Controls 2.0 AppWidget { id:appwidget @@ -108,6 +109,13 @@ AppWidget { font.pixelSize:112 font.letterSpacing: 0 font.family: "STxihei" + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } } Rectangle { @@ -140,6 +148,13 @@ AppWidget { font.letterSpacing: 0 font.family: "STxihei" verticalAlignment: TextInput.AlignVCenter + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } RowLayout { Text { @@ -149,6 +164,13 @@ AppWidget { font.letterSpacing: 0 font.family: "STxihei" verticalAlignment: TextInput.AlignVCenter + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } Text { id: date1 @@ -157,6 +179,13 @@ AppWidget { font.letterSpacing: 0 font.family: "STxihei" verticalAlignment: TextInput.AlignVCenter + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } } } @@ -187,6 +216,13 @@ AppWidget { font.pixelSize:112 font.letterSpacing:0 font.family: "STxihei" + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } } Rectangle { @@ -218,6 +254,13 @@ AppWidget { font.letterSpacing: 0 font.family: "STxihei" verticalAlignment: TextInput.AlignVCenter + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } Text { id: date2 @@ -226,6 +269,13 @@ AppWidget { font.letterSpacing: 0 font.family: "STxihei" verticalAlignment: TextInput.AlignVCenter + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } } } diff --git a/data/time/time.qml b/data/time/time.qml index 9c941cd..92f634b 100644 --- a/data/time/time.qml +++ b/data/time/time.qml @@ -2,6 +2,7 @@ import QtQuick 2.0 import QtQml 2.12 import QtQuick.Layouts 1.12 import org.ukui.appwidget 1.0 +import QtGraphicalEffects 1.0 //import QtQuick.Controls 2.0 AppWidget { id:appwidget @@ -108,6 +109,13 @@ AppWidget { font.pixelSize:112 font.letterSpacing: 0 font.family: "STxihei" + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } } Rectangle { @@ -140,6 +148,13 @@ AppWidget { font.letterSpacing: 0 font.family: "STxihei" verticalAlignment: TextInput.AlignVCenter + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } RowLayout { Text { @@ -149,6 +164,13 @@ AppWidget { font.letterSpacing: 0 font.family: "STxihei" verticalAlignment: TextInput.AlignVCenter + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } Text { id: date1 @@ -157,6 +179,13 @@ AppWidget { font.letterSpacing: 0 font.family: "STxihei" verticalAlignment: TextInput.AlignVCenter + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } } } @@ -187,6 +216,13 @@ AppWidget { font.pixelSize:112 font.letterSpacing:0 font.family: "STxihei" + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } } Rectangle { @@ -218,6 +254,13 @@ AppWidget { font.letterSpacing: 0 font.family: "STxihei" verticalAlignment: TextInput.AlignVCenter + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } Text { id: date2 @@ -226,6 +269,13 @@ AppWidget { font.letterSpacing: 0 font.family: "STxihei" verticalAlignment: TextInput.AlignVCenter + + layer.enabled: true + layer.effect: DropShadow { + verticalOffset: 1 + color: "#40262626" + samples: 4 + } } } } diff --git a/main.qml b/main.qml index afd1e26..4d1210b 100644 --- a/main.qml +++ b/main.qml @@ -5,7 +5,7 @@ Window { visible: true width: 640 height: 480 - color: "black" + color: "transparent" title: qsTr("Hello World")