mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user