Images: A set up updated icons focussing on more uniform visual style (by Roland Hahn)

This commit is contained in:
wp_xyz 2024-06-22 12:25:50 +02:00
parent 45fae1d64a
commit 83675a15d8
218 changed files with 55 additions and 45 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 369 B

After

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 417 B

After

Width:  |  Height:  |  Size: 466 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 501 B

After

Width:  |  Height:  |  Size: 550 B

View File

@ -9,26 +9,26 @@ object GraphicPropertyEditorForm: TGraphicPropertyEditorForm
ClientWidth = 436 ClientWidth = 436
Constraints.MinHeight = 180 Constraints.MinHeight = 180
Constraints.MinWidth = 200 Constraints.MinWidth = 200
Position = poScreenCenter
LCLVersion = '3.99.0.0'
OnClose = FormClose OnClose = FormClose
OnCreate = FormCreate OnCreate = FormCreate
Position = poScreenCenter
LCLVersion = '1.9.0.0'
object GroupBox1: TGroupBox object GroupBox1: TGroupBox
Left = 6 Left = 6
Height = 336 Height = 337
Top = 6 Top = 6
Width = 424 Width = 424
Align = alClient Align = alClient
BorderSpacing.Around = 6 BorderSpacing.Around = 6
Caption = 'Picture' Caption = 'Picture'
ClientHeight = 309 ClientHeight = 317
ClientWidth = 420 ClientWidth = 420
TabOrder = 0 TabOrder = 0
object ScrollBox: TScrollBox object ScrollBox: TScrollBox
AnchorSideRight.Control = GroupBox1 AnchorSideRight.Control = GroupBox1
AnchorSideBottom.Control = GroupBox1 AnchorSideBottom.Control = GroupBox1
Left = 6 Left = 6
Height = 297 Height = 305
Top = 6 Top = 6
Width = 322 Width = 322
HorzScrollBar.Page = 100 HorzScrollBar.Page = 100
@ -37,7 +37,7 @@ object GraphicPropertyEditorForm: TGraphicPropertyEditorForm
VertScrollBar.Tracking = True VertScrollBar.Tracking = True
Align = alClient Align = alClient
BorderSpacing.Around = 6 BorderSpacing.Around = 6
ClientHeight = 293 ClientHeight = 301
ClientWidth = 318 ClientWidth = 318
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
@ -55,12 +55,12 @@ object GraphicPropertyEditorForm: TGraphicPropertyEditorForm
end end
object LoadSaveBtnPanel: TPanel object LoadSaveBtnPanel: TPanel
Left = 334 Left = 334
Height = 309 Height = 317
Top = 0 Top = 0
Width = 86 Width = 86
Align = alRight Align = alRight
BevelOuter = bvNone BevelOuter = bvNone
ClientHeight = 309 ClientHeight = 317
ClientWidth = 86 ClientWidth = 86
TabOrder = 1 TabOrder = 1
object LoadButton: TButton object LoadButton: TButton
@ -142,8 +142,8 @@ object GraphicPropertyEditorForm: TGraphicPropertyEditorForm
end end
object OkCancelButtonPanel: TButtonPanel object OkCancelButtonPanel: TButtonPanel
Left = 6 Left = 6
Height = 27 Height = 26
Top = 348 Top = 349
Width = 424 Width = 424
OKButton.Name = 'OKButton' OKButton.Name = 'OKButton'
OKButton.DefaultCaption = True OKButton.DefaultCaption = True
@ -158,51 +158,51 @@ object GraphicPropertyEditorForm: TGraphicPropertyEditorForm
ShowBevel = False ShowBevel = False
end end
object OpenDialog: TOpenPictureDialog object OpenDialog: TOpenPictureDialog
left = 138 Left = 138
top = 182 Top = 182
end end
object SaveDialog: TSavePictureDialog object SaveDialog: TSavePictureDialog
left = 186 Left = 186
top = 182 Top = 182
end end
object ActionList: TActionList object ActionList: TActionList
left = 355 Left = 355
top = 244 Top = 244
object CopyAction: TEditCopy object CopyAction: TEditCopy
Category = 'Edit' Category = 'Edit'
Caption = '&Copy' Caption = '&Copy'
Hint = 'Copy' Hint = 'Copy'
ShortCut = 16451
OnExecute = CopyActionExecute OnExecute = CopyActionExecute
OnUpdate = CopyActionUpdate OnUpdate = CopyActionUpdate
ShortCut = 16451
end end
object PasteAction: TEditPaste object PasteAction: TEditPaste
Category = 'Edit' Category = 'Edit'
Caption = '&Paste' Caption = '&Paste'
Hint = 'Paste' Hint = 'Paste'
ShortCut = 16470
OnExecute = PasteActionExecute OnExecute = PasteActionExecute
OnUpdate = PasteActionUpdate OnUpdate = PasteActionUpdate
ShortCut = 16470
end end
object FileOpenAction: TAction object FileOpenAction: TAction
Category = 'File' Category = 'File'
Caption = 'Load' Caption = 'Load'
OnExecute = FileOpenActionExecute
ShortCut = 16463 ShortCut = 16463
OnExecute = FileOpenActionExecute
end end
object FileSaveAction: TAction object FileSaveAction: TAction
Category = 'File' Category = 'File'
Caption = 'Save' Caption = 'Save'
ShortCut = 16467
OnExecute = FileSaveActionExecute OnExecute = FileSaveActionExecute
OnUpdate = FileSaveActionUpdate OnUpdate = FileSaveActionUpdate
ShortCut = 16467
end end
object ClearAction: TEditDelete object ClearAction: TEditDelete
Category = 'Edit' Category = 'Edit'
Caption = 'Clear' Caption = 'Clear'
Hint = 'Delete' Hint = 'Delete'
OnExecute = ClearActionExecute
ShortCut = 46 ShortCut = 46
OnExecute = ClearActionExecute
end end
end end
end end

View File

@ -74,6 +74,8 @@ type
property Graphic: TGraphic read GetGraphic write SetGraphic; property Graphic: TGraphic read GetGraphic write SetGraphic;
end; end;
TGraphicPropertyEditorFormClass = class of TGraphicPropertyEditorForm;
implementation implementation
{$R *.lfm} {$R *.lfm}

View File

@ -30,6 +30,8 @@ type
TPixmap, TIcon, etc.). } TPixmap, TIcon, etc.). }
TGraphicPropertyEditor = class(TClassPropertyEditor) TGraphicPropertyEditor = class(TClassPropertyEditor)
protected
class function GetEditorFormClass: TGraphicPropertyEditorFormClass; virtual;
public public
procedure Edit; override; procedure Edit; override;
function GetAttributes: TPropertyAttributes; override; function GetAttributes: TPropertyAttributes; override;
@ -175,7 +177,7 @@ var
FreeGraphic: Boolean; FreeGraphic: Boolean;
begin begin
AGraphic := TGraphic(GetObjectValue(TGraphic)); AGraphic := TGraphic(GetObjectValue(TGraphic));
TheDialog := TGraphicPropertyEditorForm.Create(nil); TheDialog := GetEditorFormClass.Create(nil);
FreeGraphic:=false; FreeGraphic:=false;
try try
TheDialog.CaptionDetail := GetComponent(0).GetNamePath + '.' + GetName(); TheDialog.CaptionDetail := GetComponent(0).GetNamePath + '.' + GetName();
@ -225,6 +227,12 @@ begin
Result := [paDialog, paRevertable, paReadOnly]; Result := [paDialog, paRevertable, paReadOnly];
end; end;
class function TGraphicPropertyEditor.GetEditorFormClass: TGraphicPropertyEditorFormClass;
begin
Result := TGraphicPropertyEditorForm;
end;
{ TPicturePropertyEditor } { TPicturePropertyEditor }
procedure TPicturePropertyEditor.Edit; procedure TPicturePropertyEditor.Edit;
@ -241,7 +249,7 @@ var
Picture: TPicture; Picture: TPicture;
begin begin
Picture := TPicture(GetObjectValue(TPicture)); Picture := TPicture(GetObjectValue(TPicture));
TheDialog := TGraphicPropertyEditorForm.Create(nil); TheDialog := GetEditorFormClass.Create(nil);
try try
TheDialog.CaptionDetail := GetComponent(0).GetNamePath + '.' + GetName(); TheDialog.CaptionDetail := GetComponent(0).GetNamePath + '.' + GetName();
if (Picture.Graphic <> nil) then if (Picture.Graphic <> nil) then
@ -280,7 +288,7 @@ var
ABitmap: TBitmap; ABitmap: TBitmap;
begin begin
ABitmap := TBitmap(GetObjectValue(TBitmap)); ABitmap := TBitmap(GetObjectValue(TBitmap));
TheDialog := TGraphicPropertyEditorForm.Create(nil); TheDialog := GetEditorFormClass.Create(nil);
try try
TheDialog.CaptionDetail := GetComponent(0).GetNamePath + '.' + GetName(); TheDialog.CaptionDetail := GetComponent(0).GetNamePath + '.' + GetName();
if not ABitmap.Empty then if not ABitmap.Empty then

View File

@ -109,21 +109,21 @@ type
function GetGlyphInfo(const aItemIndex: Integer): TGlyphInfo; function GetGlyphInfo(const aItemIndex: Integer): TGlyphInfo;
procedure RefreshItemHeight; procedure RefreshItemHeight;
procedure FreeGlyphInfos; procedure FreeGlyphInfos;
procedure InternalAddImageToList(const Picture: TPicture; AddType: TAddType);
procedure RecreatePreviewImages(const aForce: Boolean = False); procedure RecreatePreviewImages(const aForce: Boolean = False);
procedure UpdatePreviewImage;
procedure UpdateImagesGroupBoxWidth; procedure UpdateImagesGroupBoxWidth;
procedure UpdateImagesGroupBoxWidthQueue({%H-}Data: PtrInt); procedure UpdateImagesGroupBoxWidthQueue({%H-}Data: PtrInt);
class function ResolutionToString(const ARes: TCustomImageListResolution): string; class function ResolutionToString(const ARes: TCustomImageListResolution): string;
procedure PasteFromClipboardAndAdd; procedure PasteFromClipboardAndAdd;
protected protected
procedure DoDestroy; override; procedure DoDestroy; override;
procedure InternalAddImageToList(const Picture: TPicture; AddType: TAddType);
procedure UpdatePreviewImage;
public public
procedure LoadFromImageList(AImageList: TImageList); procedure LoadFromImageList(AImageList: TImageList);
procedure SaveToImageList; procedure SaveToImageList;
procedure AddImageToList(const FileName: String; AddType: TAddType); procedure AddImageToList(const FileName: String; AddType: TAddType);
procedure AddSlicedImagesToList(const FileName: String); procedure AddSlicedImagesToList(const FileName: String);
property Modified: Boolean read FModified write FModified;
end; end;
//Editor call by Lazarus with 1 verbe only //Editor call by Lazarus with 1 verbe only

Binary file not shown.

Before

Width:  |  Height:  |  Size: 638 B

After

Width:  |  Height:  |  Size: 659 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 877 B

After

Width:  |  Height:  |  Size: 801 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 913 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 585 B

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 932 B

After

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 860 B

After

Width:  |  Height:  |  Size: 730 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1003 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 734 B

After

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 590 B

After

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 920 B

After

Width:  |  Height:  |  Size: 644 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 802 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 451 B

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 512 B

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 645 B

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 647 B

After

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 864 B

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 B

After

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 720 B

After

Width:  |  Height:  |  Size: 865 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 956 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 583 B

After

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 656 B

After

Width:  |  Height:  |  Size: 530 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 539 B

After

Width:  |  Height:  |  Size: 481 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 753 B

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 908 B

After

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 477 B

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 B

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 654 B

After

Width:  |  Height:  |  Size: 913 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 616 B

After

Width:  |  Height:  |  Size: 415 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 493 B

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 557 B

After

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 491 B

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 538 B

After

Width:  |  Height:  |  Size: 441 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 659 B

After

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 B

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 394 B

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 452 B

After

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 507 B

After

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 B

After

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 593 B

After

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 299 B

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 B

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 B

After

Width:  |  Height:  |  Size: 658 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 889 B

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 660 B

After

Width:  |  Height:  |  Size: 724 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 866 B

After

Width:  |  Height:  |  Size: 957 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 759 B

After

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 568 B

After

Width:  |  Height:  |  Size: 522 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 796 B

After

Width:  |  Height:  |  Size: 759 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 616 B

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 814 B

After

Width:  |  Height:  |  Size: 895 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 913 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 416 B

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 516 B

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 541 B

After

Width:  |  Height:  |  Size: 436 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 714 B

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 848 B

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 386 B

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 488 B

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 524 B

After

Width:  |  Height:  |  Size: 388 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 B

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 452 B

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 578 B

After

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 968 B

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 399 B

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 548 B

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 639 B

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 406 B

After

Width:  |  Height:  |  Size: 613 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 528 B

After

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 627 B

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 B

After

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 896 B

After

Width:  |  Height:  |  Size: 768 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 824 B

After

Width:  |  Height:  |  Size: 783 B

Some files were not shown because too many files have changed in this diff Show More