|
@@ -77,6 +77,8 @@ type
|
|
|
constructor Create(AOwner: TComponent); override;
|
|
constructor Create(AOwner: TComponent); override;
|
|
|
destructor Destroy; override;
|
|
destructor Destroy; override;
|
|
|
public
|
|
public
|
|
|
|
|
+ function PreferredButtonHeight(const hasGlyph: boolean): Integer; override;
|
|
|
|
|
+ function PreferredButtonWidth(const hasGlyph: boolean): Integer; override;
|
|
|
procedure DrawButton(Caption: string; State: TBGRAThemeButtonState;
|
|
procedure DrawButton(Caption: string; State: TBGRAThemeButtonState;
|
|
|
Focused: boolean; ARect: TRect; ASurface: TBGRAThemeSurface; AImageIndex: Integer = -1; AImageList: TBGRASVGImageList = nil); override;
|
|
Focused: boolean; ARect: TRect; ASurface: TBGRAThemeSurface; AImageIndex: Integer = -1; AImageList: TBGRASVGImageList = nil); override;
|
|
|
procedure DrawRadioButton(Caption: string; State: TBGRAThemeButtonState;
|
|
procedure DrawRadioButton(Caption: string; State: TBGRAThemeButtonState;
|
|
@@ -618,6 +620,20 @@ begin
|
|
|
inherited Destroy;
|
|
inherited Destroy;
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
+function TBGRASVGTheme.PreferredButtonHeight(const hasGlyph: boolean): Integer;
|
|
|
|
|
+begin
|
|
|
|
|
+ Result := (FButtonTextSpacing * 2);
|
|
|
|
|
+ if (hasGlyph) then
|
|
|
|
|
+ Result := Result + FGlyphTextSpacing;
|
|
|
|
|
+end;
|
|
|
|
|
+
|
|
|
|
|
+function TBGRASVGTheme.PreferredButtonWidth(const hasGlyph: boolean): Integer;
|
|
|
|
|
+begin
|
|
|
|
|
+ Result := (FButtonTextSpacing * 2);
|
|
|
|
|
+ if (hasGlyph) then
|
|
|
|
|
+ Result := Result + FGlyphTextSpacing;
|
|
|
|
|
+end;
|
|
|
|
|
+
|
|
|
procedure TBGRASVGTheme.DrawButton(Caption: string;
|
|
procedure TBGRASVGTheme.DrawButton(Caption: string;
|
|
|
State: TBGRAThemeButtonState; Focused: boolean; ARect: TRect;
|
|
State: TBGRAThemeButtonState; Focused: boolean; ARect: TRect;
|
|
|
ASurface: TBGRAThemeSurface; AImageIndex: Integer;
|
|
ASurface: TBGRAThemeSurface; AImageIndex: Integer;
|