mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-26 22:03:48 +02:00
Qt: qtthemes - when toolbar is flat, then make toolbar buttons also flat.
git-svn-id: trunk@16659 -
This commit is contained in:
parent
fd0b43824d
commit
160b31e9dc
@ -272,6 +272,11 @@ begin
|
||||
Result := Result or QStyleState_NoChange;
|
||||
|
||||
// specific states
|
||||
{when toolbar = flat, toolbar buttons should be flat too.}
|
||||
if (Details.Element = teToolBar) and
|
||||
(Details.Part = TP_BUTTON) and
|
||||
(Details.State = TS_NORMAL) then
|
||||
Result := QStyleState_AutoRaise;
|
||||
|
||||
// define orientations
|
||||
if ((Details.Element = teRebar) and (Details.Part = RP_GRIPPER)) or
|
||||
|
Loading…
Reference in New Issue
Block a user