2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Limit the CalendarBox selectable days.

Use available information (first and last message date) to limit
the days you can choose in jump-to-date calendar box.
This commit is contained in:
John Preston
2017-03-07 19:40:17 +03:00
parent ec0c3c5f82
commit f663a2bf08
4 changed files with 126 additions and 21 deletions

View File

@@ -517,7 +517,7 @@ backgroundScroll: ScrollArea(boxLayerScroll) {
}
calendarTitleHeight: boxTitleHeight;
calendarLeft: IconButton {
calendarPrevious: IconButton {
width: calendarTitleHeight;
height: calendarTitleHeight;
@@ -530,9 +530,11 @@ calendarLeft: IconButton {
color: windowBgOver;
}
}
calendarRight: IconButton(calendarLeft) {
calendarPreviousDisabled: icon {{ "title_back", menuIconFg }};
calendarNext: IconButton(calendarPrevious) {
icon: icon {{ "title_back-flip_horizontal", boxTitleFg }};
}
calendarNextDisabled: icon {{ "title_back-flip_horizontal", menuIconFg }};
calendarTitleFont: boxTitleFont;
calendarDaysFont: normalFont;
calendarDaysFg: boxTitleAdditionalFg;