2023年5月18日12:26:54 修改音乐列表 添加 鼠标滑过样式

master
zhangmeng 2023-05-18 15:48:09 +08:00
parent 5f4734f470
commit d0c080e2ad
1 changed files with 1 additions and 3 deletions

View File

@ -619,11 +619,9 @@ public class MusicController {
cell.hoverProperty().addListener((observableValue, aBoolean, t1) -> {
if (t1 && !text.getText().equals("")) {
position = listView.getItems().indexOf(text.getText());
text.setFont(new Font(16));
listView.getFocusModel().focus(position);
cell.setStyle("-fx-background-color: #369e7d");
cell.setStyle("-fx-background-color: #cbcacb");
} else {
text.setFont(new Font(13));
cell.setStyle("-fx-background-color: " + color_cell);
}
});