Closed
Description
Focused StandardListView
is indistinguishable from an unfocused one, making it impossible to tell, whether a list is focused. This happens with all three styles (fluent, material, and native).
Video
Here is a video of how the code below behaves:
Slint.focus.mp4
To reproduce
Launch the following code and repeatedly press the TAB key. You can see, that buttons and checkbox are highlighted correctly when focused, while the list is not.
import { Button, CheckBox, VerticalBox, StandardListView, HorizontalBox} from "std-widgets.slint";
export component Test {
height: 250px;
VerticalBox {
StandardListView {
model: [
{text: "Item 1"},
{text: "Item 2"},
{text: "Item 3"},
];
}
HorizontalBox {
Button {
text: "Button 1";
}
Button {
text: "Button 2";
}
Button {
text: "Button 3";
}
}
CheckBox {
text: "A checkbox";
}
}
}
Platform: KDE, Linux, X11