Skip to content

Commit

Permalink
Fix alarm buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw committed Mar 10, 2025
1 parent 5853658 commit 01e5aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/home-automation/ui/components/alarm.slint
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: MIT
import { Animation, Measurements, Colors, Style, Palette } from "../common.slint";
import { Control} from "control.slint";
import { AppState } from "../appState.slint";
import { AppState, Orientation } from "../appState.slint";
import { HaText } from "general/haText.slint";
import { LineEdit } from "std-widgets.slint";
import { InnerShadowRectangle } from "general/innerShadowRectangle.slint";
Expand All @@ -14,7 +14,7 @@ export component ArmButton inherits Rectangle {
if label != -1: Rectangle {
Image {
source: ta.pressed ? @image-url("../images/default-button.png", nine-slice(0 50 0 50)) : @image-url("../images/pressed-button.png", nine-slice(0 50 0 50));
width: 80px;
width: 100px;
height: self.source.height * 1px;
}

Expand Down

0 comments on commit 01e5aad

Please sign in to comment.