mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 02:43:15 +02:00
IDE: message frame: fix icons
git-svn-id: trunk@57860 -
This commit is contained in:
parent
c482fcbcf4
commit
59e52062f8
@ -1550,6 +1550,7 @@ var
|
|||||||
FirstLineIsNotSelectedMessage: Boolean;
|
FirstLineIsNotSelectedMessage: Boolean;
|
||||||
SecondLineIsNotSelectedMessage: Boolean;
|
SecondLineIsNotSelectedMessage: Boolean;
|
||||||
col: TColor;
|
col: TColor;
|
||||||
|
ImgRes: TScaledImageListResolution;
|
||||||
begin
|
begin
|
||||||
if Focused then
|
if Focused then
|
||||||
Include(FStates,mcsFocused)
|
Include(FStates,mcsFocused)
|
||||||
@ -1615,10 +1616,11 @@ begin
|
|||||||
ImgIndex:=fUrgencyStyles[Line.Urgency].ImageIndex;
|
ImgIndex:=fUrgencyStyles[Line.Urgency].ImageIndex;
|
||||||
if (Images<>nil) and (mcoShowMsgIcons in Options)
|
if (Images<>nil) and (mcoShowMsgIcons in Options)
|
||||||
and (ImgIndex>=0) and (ImgIndex<Images.Count) then begin
|
and (ImgIndex>=0) and (ImgIndex<Images.Count) then begin
|
||||||
Images.DrawForControl(Canvas,
|
ImgRes := Images.ResolutionForControl[0, Self];
|
||||||
|
ImgRes.Draw(Canvas,
|
||||||
NodeRect.Left + 1, (NodeRect.Top + NodeRect.Bottom - Images.Height) div 2,
|
NodeRect.Left + 1, (NodeRect.Top + NodeRect.Bottom - Images.Height) div 2,
|
||||||
ImgIndex, 0, Self, gdeNormal);
|
ImgIndex, gdeNormal);
|
||||||
inc(NodeRect.Left,Images.Width+2);
|
inc(NodeRect.Left, ImgRes.Width+2);
|
||||||
end;
|
end;
|
||||||
// message text
|
// message text
|
||||||
col:=UrgencyStyles[Line.Urgency].Color;
|
col:=UrgencyStyles[Line.Urgency].Color;
|
||||||
@ -3495,7 +3497,7 @@ begin
|
|||||||
EnvironmentOptions.MsgColors[mluFatal]);
|
EnvironmentOptions.MsgColors[mluFatal]);
|
||||||
UrgencyStyles[mluPanic].SetValues(lisPanic, ImgIDFatal,
|
UrgencyStyles[mluPanic].SetValues(lisPanic, ImgIDFatal,
|
||||||
EnvironmentOptions.MsgColors[mluPanic]);
|
EnvironmentOptions.MsgColors[mluPanic]);
|
||||||
Images:=FImages;
|
Images:=Self.FImages;
|
||||||
PopupMenu:=MsgCtrlPopupMenu;
|
PopupMenu:=MsgCtrlPopupMenu;
|
||||||
end;
|
end;
|
||||||
MessagesCtrl.SourceMarks:=ExtToolsMarks;
|
MessagesCtrl.SourceMarks:=ExtToolsMarks;
|
||||||
|
Loading…
Reference in New Issue
Block a user