|
|
@@ -8,12 +8,21 @@ uses
|
|
|
|
|
|
type
|
|
|
TImagesModule = class(TDataModule)
|
|
|
- LightBuildImageList: TImageList;
|
|
|
- DarkBuildImageList: TImageList;
|
|
|
- LightToolBarImageCollection: TImageCollection;
|
|
|
- DarkToolBarImageCollection: TImageCollection;
|
|
|
- LightMarkersAndACImageCollection: TImageCollection;
|
|
|
- DarkMarkersAndACImageCollection: TImageCollection;
|
|
|
+ private
|
|
|
+ function GetBuildImageList(Dark: Boolean): TImageList;
|
|
|
+ function GetMarkersAndACImageCollection(Dark: Boolean): TImageCollection;
|
|
|
+ function GetToolbarImageCollection(Dark: Boolean): TImageCollection;
|
|
|
+ public
|
|
|
+ property BuildImageList[Dark: Boolean]: TImageList read GetBuildImageList;
|
|
|
+ property ToolBarImageCollection[Dark: Boolean]: TImageCollection read GetToolbarImageCollection;
|
|
|
+ property MarkersAndACImageCollection[Dark: Boolean]: TImageCollection read GetMarkersAndACImageCollection;
|
|
|
+ published
|
|
|
+ LightBuildImageList: TImageList;
|
|
|
+ DarkBuildImageList: TImageList;
|
|
|
+ LightToolBarImageCollection: TImageCollection;
|
|
|
+ DarkToolBarImageCollection: TImageCollection;
|
|
|
+ LightMarkersAndACImageCollection: TImageCollection;
|
|
|
+ DarkMarkersAndACImageCollection: TImageCollection;
|
|
|
end;
|
|
|
|
|
|
var
|
|
|
@@ -25,4 +34,30 @@ implementation
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
+{ TImagesModule }
|
|
|
+
|
|
|
+function TImagesModule.GetBuildImageList(Dark: Boolean): TImageList;
|
|
|
+begin
|
|
|
+ if Dark then
|
|
|
+ Result := DarkBuildImageList
|
|
|
+ else
|
|
|
+ Result := LightBuildImageList;
|
|
|
+end;
|
|
|
+
|
|
|
+function TImagesModule.GetMarkersAndACImageCollection(Dark: Boolean): TImageCollection;
|
|
|
+begin
|
|
|
+ if Dark then
|
|
|
+ Result := DarkMarkersAndACImageCollection
|
|
|
+ else
|
|
|
+ Result := LightMarkersAndACImageCollection;
|
|
|
+end;
|
|
|
+
|
|
|
+function TImagesModule.GetToolbarImageCollection(Dark: Boolean): TImageCollection;
|
|
|
+begin
|
|
|
+ if Dark then
|
|
|
+ Result := DarkToolBarImageCollection
|
|
|
+ else
|
|
|
+ Result := LightToolBarImageCollection;
|
|
|
+end;
|
|
|
+
|
|
|
end.
|