mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Special donate icon in special times
This commit is contained in:
parent
5ae6c5dd0a
commit
ccd809d4ed
2 changed files with 25 additions and 0 deletions
|
@ -746,6 +746,13 @@ namespace Greenshot {
|
|||
} else {
|
||||
contextmenu_capturefullscreen.Click += CaptureFullScreenToolStripMenuItemClick;
|
||||
}
|
||||
|
||||
var now = DateTime.Now;
|
||||
if ((now.Month == 12 && now.Day > 19 && now.Day < 27) || // christmas
|
||||
(now.Month == 3 && now.Day > 13 && now.Day < 21)) { // birthday
|
||||
var resources = new ComponentResourceManager(typeof(MainForm));
|
||||
contextmenu_donate.Image = (Image)resources.GetObject("contextmenu_present.Image");
|
||||
}
|
||||
}
|
||||
|
||||
void ContextMenuClosing(object sender, EventArgs e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue