1786272104
This commit is contained in:
@@ -2,7 +2,7 @@ fn main() {
|
|||||||
slint_build::compile_with_config(
|
slint_build::compile_with_config(
|
||||||
"ui/main.slint",
|
"ui/main.slint",
|
||||||
slint_build::CompilerConfiguration::new()
|
slint_build::CompilerConfiguration::new()
|
||||||
.with_style("material-light".into())
|
.with_style("material".into())
|
||||||
.embed_resources(slint_build::EmbedResourcesKind::EmbedFiles),
|
.embed_resources(slint_build::EmbedResourcesKind::EmbedFiles),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|||||||
@@ -44,6 +44,12 @@ export struct DateTimeData {
|
|||||||
component Clock {
|
component Clock {
|
||||||
in property <DateTimeData> date-time;
|
in property <DateTimeData> date-time;
|
||||||
|
|
||||||
|
TouchArea {
|
||||||
|
clicked => {
|
||||||
|
Palette.color-scheme = Palette.color-scheme == ColorScheme.dark ? ColorScheme.light : ColorScheme.dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
VerticalLayout {
|
VerticalLayout {
|
||||||
alignment: center;
|
alignment: center;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
@@ -117,6 +123,7 @@ component LightTile inherits Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export component AppWindow inherits Window {
|
export component AppWindow inherits Window {
|
||||||
|
|
||||||
title: "Dashboard";
|
title: "Dashboard";
|
||||||
width: 1024px;
|
width: 1024px;
|
||||||
height: 600px;
|
height: 600px;
|
||||||
|
|||||||
Reference in New Issue
Block a user