Skip to content

Commit f9cea45

Browse files
committed
fix rendering issue in main dialog
1 parent 9c84b3d commit f9cea45

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

Encoding/VideoEncoder.vb

+4-4
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,16 @@ Public MustInherit Class VideoEncoder
161161

162162
ret.ShowItemToolTips = False
163163
ret.GripStyle = ToolStripGripStyle.Hidden
164-
ret.BackColor = System.Drawing.SystemColors.Window
164+
ret.BackColor = SystemColors.Window
165165
ret.Dock = DockStyle.Fill
166-
ret.BackColor = System.Drawing.SystemColors.Window
167-
ret.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow
166+
ret.BackColor = SystemColors.Window
167+
ret.LayoutStyle = ToolStripLayoutStyle.VerticalStackWithOverflow
168168
ret.ShowControlBorder = True
169169
ret.Font = New Font("Segoe UI", 9 * s.UIScaleFactor)
170170

171171
For Each i In GetMenu()
172172
Dim b As New ToolStripButton
173-
b.Margin = New Padding(0)
173+
b.Margin = New Padding(2, 2, 0, 0)
174174
b.Text = i.Key
175175
b.Padding = New Padding(4)
176176
Dim happy = i

StaxRip.sln

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Global
1313
Release|x64 = Release|x64
1414
EndGlobalSection
1515
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16-
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|Any CPU.ActiveCfg = Release|x64
17-
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|Any CPU.Build.0 = Release|x64
16+
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|Any CPU.Build.0 = Debug|Any CPU
1818
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|x64.ActiveCfg = Debug|x64
1919
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|x64.Build.0 = Debug|x64
2020
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Release|Any CPU.ActiveCfg = Release|Any CPU

StaxRip.vbproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<WarningLevel>0</WarningLevel>
7575
<NoWarn>41998,41999,42004,42016,42017,42018,42019,42020,42021,42022,42024,42025,42026,42029,42030,42031,42032,42036,42099,42104,42105,42106,42107,42108,42109,42353,42354,42355</NoWarn>
7676
<DebugType>Full</DebugType>
77-
<PlatformTarget>x64</PlatformTarget>
77+
<PlatformTarget>AnyCPU</PlatformTarget>
7878
<WarningsAsErrors>
7979
</WarningsAsErrors>
8080
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>

UI/Menu Types.vb

+1-5
Original file line numberDiff line numberDiff line change
@@ -662,13 +662,9 @@ Namespace UI
662662
MyBase.New(container)
663663
End Sub
664664

665-
Protected Overrides Sub OnOpening(e As CancelEventArgs)
666-
MyBase.OnOpening(e)
667-
g.SetRenderer(Me)
668-
End Sub
669-
670665
Protected Overrides Sub OnHandleCreated(e As EventArgs)
671666
MyBase.OnHandleCreated(e)
667+
g.SetRenderer(Me)
672668
Font = New Font("Segoe UI", 9 * s.UIScaleFactor)
673669
End Sub
674670

0 commit comments

Comments
 (0)