Skip to content

Commit 175a187

Browse files
committed
Derive from Form to keep dark mode theming consistent
1 parent f268580 commit 175a187

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

CSVLintNppPlugin/CsvLintNppPlugin.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@
141141
<DependentUpon>CsvLintWindow.cs</DependentUpon>
142142
</Compile>
143143
<Compile Include="Forms\DockingFormBase.cs">
144-
<SubType>UserControl</SubType>
144+
<SubType>Form</SubType>
145+
</Compile>
146+
<Compile Include="Forms\DockingFormBase.Designer.cs">
147+
<DependentUpon>DockingFormBase.cs</DependentUpon>
145148
</Compile>
146149
<Compile Include="PluginInfrastructure\ScintillaStreams.cs" />
147150
<Compile Include="PluginInfrastructure\Win32.cs" />

CSVLintNppPlugin/Forms/DockingFormBase.Designer.cs

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CSVLintNppPlugin/Forms/DockingFormBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55

66
namespace CSVLintNppPlugin.Forms
77
{
8-
public partial class DockingFormBase : UserControl
8+
public partial class DockingFormBase : Form
99
{
1010
private static Win32.WindowLongGetter _wndLongGetter;
1111
private static Win32.WindowLongSetter _wndLongSetter;
1212

1313
public DockingFormBase()
1414
{
15+
InitializeComponent();
1516
if (Marshal.SizeOf(typeof(IntPtr)) == 8) // we are 64-bit
1617
{
1718
_wndLongGetter = Win32.GetWindowLongPtr;

0 commit comments

Comments
 (0)