mvmike / min-cal-widget

Minimal calendar widget
BSD 3-Clause "New" or "Revised" License
89 stars 15 forks source link

%2d formatting #42

Closed 532910 closed 5 years ago

532910 commented 5 years ago

I'd prefer the day numbers be %2d formatted. What do you think about?

mvmike commented 5 years ago

I like them as it is now. Checked also my two linux desktop environment calendars and they're working the same way, as google calendar is doing in web and android versions too. Shall we keep it that way?

532910 commented 5 years ago

As I see, all graphical calendars use center-justification. And all text calendars use right-justification.

mvmike commented 5 years ago

I'd say that justification can be corrected and stay with the current number of digits, is that ok?

532910 commented 5 years ago

Sorry, what do you mean under "number of digits"? They definitely should not be zero padded.

I mean like cal does: image

mvmike commented 5 years ago

Agree, thought you were asking for all of them to have to digits, zero-padding those between 1 and 9

532910 commented 5 years ago

Pardon my c (:

% cat test.c
#include <stdio.h>

int main()
{
    printf( "%2d\n", 2 );
    return 0;
}
% gcc -o test ./test.c
% ./test
 2
%