From 1cbb4cda99f0b13254d6579ee085cd2a09bbaea5 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Tue, 24 Dec 2013 13:48:37 +0000 Subject: [PATCH] Add icons to discreet labels in main menu area. --- res/icons/paypal.png | Bin 0 -> 571 bytes source/main.dfm | 80 +++++++++++++++++++++++++++++++++++++++++-- source/main.pas | 18 ++++++++-- 3 files changed, 93 insertions(+), 5 deletions(-) create mode 100644 res/icons/paypal.png diff --git a/res/icons/paypal.png b/res/icons/paypal.png new file mode 100644 index 0000000000000000000000000000000000000000..5360fc0dbd9011bc08849f7ad839cf25c4d6a521 GIT binary patch literal 571 zcmV-B0>u4^P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02*{fSaefwW^{L9 za%BKeVQFr3E>1;MAa*k@H7+qRNAp5A00051NkltfOsVk zM?qDi0i#q&Al?YX*ffJNyG7<-PRp#{J&SkMLv>r zj8YH46sQDL|KEM`I#>}5R83hAHvs6B|9}4e1sSjhrWxe_7cd1bnSD@g5ODF<rR0TH~}*N?tg4p!mZ@LNlfei+UXnr-+KJ^|Bh34 zK$;%`aTSLDL3rPpn^4~)!0QiR|6jfT>i^75XF-}T0`YQ~?P188wL|N{8dAGAffS*GFoeOsSzw`7hOoIbd6&_%ex*w)l)~g(B`-IgeK$ nil then + lbl.Font.Style := lbl.Font.Style + [fsUnderline]; end; @@ -2313,7 +2320,12 @@ procedure TMainForm.lblMenuMouseLeave(Sender: TObject); var lbl: TLabel; begin - lbl := Sender as TLabel; + lbl := nil; + if (Sender = lblDonate) or (Sender = imgDonate) then + lbl := lblDonate + else if (Sender = lblUpdateAvailable) or (Sender = imgUpdateAvailable) then + lbl := lblUpdateAvailable; + if lbl <> nil then lbl.Font.Style := lbl.Font.Style - [fsUnderline]; end;