mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 17:39:22 +02:00
AnchorDocking: Use default close button, so it scaled in HighDPI, issue #35806
git-svn-id: trunk@64812 -
This commit is contained in:
parent
2c5911c6d3
commit
ccb4169a92
@ -6569,17 +6569,17 @@ function TAnchorDockCloseButton.GetDrawDetails: TThemedElementDetails;
|
||||
function WindowPart: TThemedWindow;
|
||||
begin
|
||||
// no check states available
|
||||
Result := twSmallCloseButtonNormal;
|
||||
Result := twCloseButtonNormal;
|
||||
if not IsEnabled then
|
||||
Result := twSmallCloseButtonDisabled
|
||||
Result := twCloseButtonDisabled
|
||||
else
|
||||
if FState in [bsDown, bsExclusive] then
|
||||
Result := twSmallCloseButtonPushed
|
||||
Result := twCloseButtonPushed
|
||||
else
|
||||
if FState = bsHot then
|
||||
Result := twSmallCloseButtonHot
|
||||
Result := twCloseButtonHot
|
||||
else
|
||||
Result := twSmallCloseButtonNormal;
|
||||
Result := twCloseButtonNormal;
|
||||
end;
|
||||
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user