mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 21:48:22 +02:00
improve the design of the validation error list
This commit is contained in:
@@ -57,7 +57,15 @@ public class I18nValidationUtil {
|
||||
}
|
||||
}
|
||||
|
||||
return message.toString();
|
||||
if (!validationMessages.isEmpty()) {
|
||||
return cutOffLastLineBreak(message.toString());
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
private static String cutOffLastLineBreak(String message) {
|
||||
return message.substring(0, message.length()-1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,2 +1,15 @@
|
||||
.list-view {
|
||||
-fx-background-color: -fx-background;
|
||||
-fx-padding: 1;
|
||||
}
|
||||
|
||||
.list-cell {
|
||||
-fx-padding: 1.0em 1.0em 1.0em 1.0em;
|
||||
}
|
||||
.list-cell:odd {
|
||||
-fx-background: -fx-control-inner-background-alt;
|
||||
}
|
||||
|
||||
.list-cell:even {
|
||||
-fx-background: -fx-control-inner-background;
|
||||
}
|
||||
Reference in New Issue
Block a user