Skip to content

Commit ae80c38

Browse files
committed
karm-kira: Improved accessibility of checkbox and scaffold content.
1 parent f7b0d56 commit ae80c38

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/karm-kira/checkbox.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ struct Checkbox : Ui::View<Checkbox> {
4444

4545
if (_mouseListener.isPress()) {
4646
g.strokeStyle(Gfx::stroke(Ui::GRAY600).withWidth(1).withAlign(Gfx::INSIDE_ALIGN));
47-
g.stroke(bound().cast<f64>(), 4);
47+
} else {
48+
g.strokeStyle(Gfx::stroke(Ui::GRAY500).withWidth(1).withAlign(Gfx::INSIDE_ALIGN));
4849
}
50+
g.stroke(bound().cast<f64>(), 4);
4951
}
5052

5153
g.pop();

src/karm-kira/scaffold.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,14 @@ export Ui::Child scaffold(Scaffold scaffold) {
186186

187187
export auto scaffoldContent() {
188188
return [](Ui::Child child) {
189-
return child | Ui::box({.borderRadii = 6, .backgroundFill = Ui::GRAY950});
189+
return child |
190+
Ui::bound() |
191+
Ui::box({
192+
.borderRadii = 6,
193+
.borderWidth = 1,
194+
.borderFill = Ui::GRAY800,
195+
.backgroundFill = Ui::GRAY950,
196+
});
190197
};
191198
}
192199

0 commit comments

Comments
 (0)