CalendarGridPanel, gridFgSel
Brought to you by:
michaelbaranov
Naturally, the foreground color for selected date would be white (on blue background). "Descriptive" patch:
CalendarGridPanel constructor:
+ gridFgSel = Microba.getOverridenColor(CalendarColors.COLOR_CALENDAR_GRID_FOREGROUND_SELECTED, peer,
+ UIManager.getColor("TextField.selectionForeground"));
CalendarGridPanel.DateLabel.updateFg():
- setForeground(isEnabled() ? : gridFgEn : gridFgDis);
+ setForeground(isEnabled() ? (isSelected() ? gridFgSel : gridFgEn) : gridFgDis);
CalendarColors:
+ public static final String COLOR_CALENDAR_GRID_FOREGROUND_SELECTED = "calendar.grid.foreground.selected";
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests"
the selected cell has blue background, and would probably look nicer with a border of the same color (instead of white empty border):
DateLabel.udapteBorder():
- setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
+ if (isSelected() && !isFocused()) {
+ setBorder(BorderFactory.createLineBorder(
+ isEnabled() ? selBgEn : selBgDis, 1));
+ } else {
+ setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
+ }