4

I just noticed that my IRC client, Textual, has a different icon than usual. Why?

There are no notifications in the app that could explain this. It's not my birthday or anyone's I know either.

Screenshot

1 Answer 1

6

Today, July 23rd, is Textual's birthday, and it changes its icon for the day. From the source code:

The first public commit of Textual occured on July, 23, 2010. This is the day that we consider the birthday of the application.

Source code excerpt showing the condition for the different icon:

/* THIS IS A SECRET!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 Birthday icon designed by Alex Sørlie Glomsaas. */

NSCalendar *sysCalendar = [NSCalendar currentCalendar];

NSDateComponents *breakdownInfo = [sysCalendar components:(NSDayCalendarUnit | NSMonthCalendarUnit) fromDate:[NSDate date]];

/* The first public commit of Textual occured on July, 23, 2010. This is the day
 that we consider the birthday of the application. */
if ([breakdownInfo month] == 7 && [breakdownInfo day] == 23) {
    return [NSImage imageNamed:@"birthdayIcon"];
} else {
    return [NSImage imageNamed:@"NSApplicationIcon"];
}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .