mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Load buttons icons only from internal theme
This commit is contained in:
parent
1deb745de2
commit
3916b3abcb
1 changed files with 3 additions and 2 deletions
|
|
@ -136,7 +136,8 @@ const
|
|||
'choose-encoding'
|
||||
);
|
||||
|
||||
ButtonNames: array[0..1] of String = (
|
||||
ButtonNames: array[0..2] of String = (
|
||||
'list-add',
|
||||
'choose-filter',
|
||||
'choose-variable'
|
||||
);
|
||||
|
|
@ -178,7 +179,7 @@ begin
|
|||
begin
|
||||
// GetThemeIcon takes into account
|
||||
// CanvasScaleFactor, so use original icon size here
|
||||
ABitmap:= PixMapManager.GetThemeIcon(AName, Images.Width);
|
||||
ABitmap:= PixMapManager.GetThemeIcon(ittInternal, AName, Images.Width);
|
||||
if (ABitmap = nil) then ABitmap:= TBitmap.Create;
|
||||
|
||||
Images.AddMultipleResolutions([ABitmap]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue