Skip to content

Commit 7f33ed8

Browse files
committed
DIC - Improved support for VCL Styles on docked forms
DIC - Fixed text color on device platform selector XE7 DIC - Fixed text color on Multiview combobox XE7 DIC - Code refactoring on UxThemes Hooks DIC - Added style support for TEvalDialog form DITE - Fixed bug on Help Insight
1 parent caffa00 commit 7f33ed8

22 files changed

+299
-427
lines changed

delphi-ide-theme-editor/BuildDITE.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pause
66
EXIT
77

88
:INNO
9-
"C:\Program Files (x86)\Inno Setup 5\iscc.exe" "C:\Delphi\google-code\DITE\delphi-ide-theme-editor\DelphiIDEThemeEditor.iss"
9+
"C:\Program Files (x86)\Inno Setup 5\iscc.exe" "C:\Dephi\google-code\delphi-ide-theme-editor\DelphiIDEThemeEditor.iss"
1010
set INNO_STATUS=%ERRORLEVEL%
1111
if %INNO_STATUS%==0 GOTO END
1212
pause

delphi-ide-theme-editor/DITE.dproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@
108108
<DCC_DebugInformation>false</DCC_DebugInformation>
109109
</PropertyGroup>
110110
<PropertyGroup Condition="'$(Cfg_2_Win32)'!=''">
111-
<VerInfo_Release>5</VerInfo_Release>
111+
<VerInfo_Release>8</VerInfo_Release>
112112
<DCC_DebugInformation>true</DCC_DebugInformation>
113113
<DCC_MapFile>3</DCC_MapFile>
114114
<DCC_GenerateStackFrames>true</DCC_GenerateStackFrames>
115115
<VerInfo_MinorVer>7</VerInfo_MinorVer>
116116
<VerInfo_Build>0</VerInfo_Build>
117117
<DCC_UNIT_PLATFORM>false</DCC_UNIT_PLATFORM>
118-
<VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.7.5.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
118+
<VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.7.8.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
119119
<Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
120120
</PropertyGroup>
121121
<ItemGroup>

delphi-ide-theme-editor/DITE.res

0 Bytes
Binary file not shown.

delphi-ide-theme-editor/DelphiIDEThemeEditor.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ AppSupportURL=http://theroadtodelphi.wordpress.com/
19181918
AppUpdatesURL=http://theroadtodelphi.wordpress.com/
19191919
DefaultDirName={pf}\The Road To Delphi\Delphi IDE Theme Editor
19201920
;OutputDir=C:\Delphi\google-code\DITE\delphi-ide-theme-editor
1921-
OutputBaseFileName=Setup_DelphiIDEThemeEditor
1921+
OutputBaseFileName=Setup_DITE
19221922
DisableDirPage=false
19231923
Compression=lzma
19241924
SolidCompression=true

delphi-ide-theme-editor/IDE PlugIn/Colorizer.Hooks.IDE.pas

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ interface
5454
{$IFDEF DELPHIXE6} sModernThemeModule = 'ModernTheme200.bpl';{$ENDIF}
5555
{$IFDEF DELPHIXE7} sModernThemeModule = 'ModernTheme210.bpl';{$ENDIF}
5656

57+
{$IFDEF DELPHIXE7} sdesignideModule = 'designide210.bpl';{$ENDIF}
58+
59+
5760
procedure InstallHooksIDE;
5861
Procedure RemoveHooksIDE;
5962

@@ -64,6 +67,8 @@ implementation
6467
Colorizer.Vcl.Styles,
6568
Vcl.Styles,
6669
Vcl.Themes,
70+
{$ELSE}
71+
Themes,
6772
{$ENDIF}
6873
Colorizer.VirtualTrees,
6974
Colorizer.Wrappers,
@@ -135,6 +140,19 @@ TDockCaptionDrawerClass = class(TDockCaptionDrawer);
135140
{$ENDIF}
136141
Trampoline_TDockCaptionDrawer_DrawDockCaption : function (Self : TDockCaptionDrawerClass;const Canvas: TCanvas; CaptionRect: TRect; State: TParentFormState): TDockCaptionHitTest =nil;
137142

143+
{
144+
@Viewselector@TViewSelectorFrame@cbStyleSelectorDrawItem$qqrp24Vcl@Controls@TWinControlirx18System@Types@TRect60System@%Set$32Winapi@Windows@Winapi_Windows__1t1$i0$t1$i12$%
145+
@Viewselector@TViewSelectorFrame@cbStyleSelectorChange$qqrp14System@TObject
146+
@Viewselector@TViewSelectorFrame@cbDeviceSelectorDrawItem$qqrp24Vcl@Controls@TWinControlirx18System@Types@TRect60System@%Set$32Winapi@Windows@Winapi_Windows__1t1$i0$t1$i12$%
147+
148+
000AE804 4530 1440 __fastcall Viewselector::TViewSelectorFrame::cbDeviceSelectorDrawItem(Vcl::Controls::TWinControl *, int, System::Types::TRect&, System::Set<Winapi::Windows::Winapi_Windows__1, 0, 12>)
149+
000AECB4 4529 1441 __fastcall Viewselector::TViewSelectorFrame::cbStyleSelectorChange(System::TObject *)
150+
000AED9C 4528 1442 __fastcall Viewselector::TViewSelectorFrame::cbStyleSelectorDrawItem(Vcl::Controls::TWinControl *, int, System::Types::TRect&, System::Set<Winapi::Windows::Winapi_Windows__1, 0, 12>)
151+
152+
TDrawItemEvent = procedure(Control: TWinControl; Index: Integer;
153+
Rect: TRect; State: TOwnerDrawState) of object;
154+
155+
}
138156
procedure CustomProjectTree2PaintText(Self : TObject; Sender: TObject{TBaseVirtualTree}; const TargetCanvas: TCanvas; Node: {PVirtualNode}Pointer; Column: Integer{TColumnIndex}; TextType: Byte {TVSTTextType});
139157
begin
140158
//TargetCanvas.Font.Color:=clRed;
@@ -701,6 +719,12 @@ function Detour_TDockCaptionDrawer_DrawDockCaption(Self : TDockCaptionDrawerClas
701719
ShouldDrawClose: Boolean;
702720
CloseRect, PinRect: TRect;
703721
LPngImage : TPngImage;
722+
{$IFDEF DELPHIXE2_UP}
723+
LDetails : TThemedElementDetails;
724+
LStyleServices : TCustomStyleServices;
725+
SavedIndex : Integer;
726+
{$ENDIF}
727+
704728
begin
705729

706730
if (Assigned(TColorizerLocalSettings.Settings) and not TColorizerLocalSettings.Settings.Enabled) or (not TColorizerLocalSettings.Settings.DockCustom) or (not Assigned(TColorizerLocalSettings.ColorMap)) then
@@ -720,7 +744,8 @@ function Detour_TDockCaptionDrawer_DrawDockCaption(Self : TDockCaptionDrawerClas
720744
Canvas.Pen.Color := TColorizerLocalSettings.ColorMap.FrameTopLeftInner;
721745

722746
CaptionRect.Top := CaptionRect.Top + 1;
723-
747+
if not TColorizerLocalSettings.Settings.UseVCLStyles then
748+
begin
724749
if State.Focused then
725750
begin
726751
if not TColorizerLocalSettings.Settings.DockCustomColors then
@@ -785,6 +810,24 @@ function Detour_TDockCaptionDrawer_DrawDockCaption(Self : TDockCaptionDrawerClas
785810
Canvas.Brush.Style:=bsClear;
786811
Canvas.Rectangle(CaptionRect);
787812
end;
813+
end
814+
else
815+
begin
816+
{$IFDEF DELPHIXE2_UP}
817+
LStyleServices:= ColorizerStyleServices;
818+
if State.Focused then
819+
LDetails:=LStyleServices.GetElementDetails(twSmallCaptionActive)
820+
else
821+
LDetails:=LStyleServices.GetElementDetails(twSmallCaptionInactive);
822+
823+
SavedIndex := SaveDC(Canvas.Handle);
824+
try
825+
LStyleServices.DrawElement(Canvas.Handle, LDetails, CaptionRect);
826+
finally
827+
RestoreDC(Canvas.Handle, SavedIndex);
828+
end;
829+
{$ENDIF}
830+
end;
788831

789832
CloseRect := GetCloseRect(CaptionRect);
790833

0 commit comments

Comments
 (0)