@@ -18,13 +18,14 @@ public class MainForm : Form
1818 private TabControl ? tabControl ;
1919 private Process ? currentProcess ;
2020
21+ // Light mode colors
2122 private readonly Color BgColor = SystemColors . Control ;
2223 private readonly Color ControlBg = Color . White ;
2324 private readonly Color TextColor = SystemColors . ControlText ;
2425 private readonly Color SecondaryText = SystemColors . GrayText ;
2526 private readonly Color ButtonBg = SystemColors . ButtonFace ;
2627 private readonly Color StartButtonColor = Color . FromArgb ( 40 , 167 , 69 ) ;
27- private readonly Color StopButtonColor = Color . FromArgb ( 220 , 53 , 69 ) ;
28+ private readonly Color StopButtonColor = Color . FromArgb ( 220 , 53 , 69 ) ;
2829 private readonly string extractorPath = "extractor.exe" ;
2930
3031 public MainForm ( )
@@ -76,13 +77,19 @@ private void InitializeComponents()
7677 MarqueeAnimationSpeed = 30
7778 } ;
7879
79- btnStart = CreateButton ( "START EXTRACTION" , left , 740 , 340 , 45 , AccentColor ) ;
80+ btnStart = CreateButton ( "START EXTRACTION" , left , 740 , 340 , 45 , StartButtonColor ) ;
8081 btnStart . Font = new Font ( this . Font , FontStyle . Bold ) ;
8182 btnStart . ForeColor = Color . White ;
83+ btnStart . FlatStyle = FlatStyle . Flat ;
84+ btnStart . FlatAppearance . BorderSize = 1 ;
85+ btnStart . FlatAppearance . BorderColor = Color . FromArgb ( 30 , 126 , 52 ) ;
8286 btnStart . Click += RunExtractor ;
8387
84- btnStop = CreateButton ( "STOP" , 370 , 740 , 340 , 45 , Color . FromArgb ( 220 , 53 , 69 ) ) ;
88+ btnStop = CreateButton ( "STOP" , 370 , 740 , 340 , 45 , StopButtonColor ) ;
8589 btnStop . ForeColor = Color . White ;
90+ btnStop . FlatStyle = FlatStyle . Flat ;
91+ btnStop . FlatAppearance . BorderSize = 1 ;
92+ btnStop . FlatAppearance . BorderColor = Color . FromArgb ( 165 , 40 , 52 ) ;
8693 btnStop . Enabled = false ;
8794 btnStop . Click += ( s , e ) => KillProcessTree ( ) ;
8895
@@ -100,6 +107,7 @@ private void AddBasicControls(TabPage page)
100107 txtPath = CreateTextBox ( left , y , 500 ) ;
101108 btnBrowse = CreateButton ( "Browse..." , 530 , y - 2 , 120 , 32 , ButtonBg ) ;
102109 btnBrowse . ForeColor = TextColor ;
110+ btnBrowse . FlatStyle = FlatStyle . Standard ;
103111 btnBrowse . Click += ( s , e ) =>
104112 {
105113 using ( OpenFileDialog ofd = new OpenFileDialog { Filter = "SCS Files|*.scs|All Files|*.*" , Title = "Select SCS File" } )
@@ -114,6 +122,7 @@ private void AddBasicControls(TabPage page)
114122 txtDest . Text = "./extracted" ;
115123 btnDestBrowse = CreateButton ( "Browse..." , 530 , y - 2 , 120 , 32 , ButtonBg ) ;
116124 btnDestBrowse . ForeColor = TextColor ;
125+ btnDestBrowse . FlatStyle = FlatStyle . Standard ;
117126 btnDestBrowse . Click += ( s , e ) =>
118127 {
119128 using ( FolderBrowserDialog fbd = new FolderBrowserDialog ( ) )
@@ -156,6 +165,7 @@ private void AddBasicControls(TabPage page)
156165 txtPathsFile = CreateTextBox ( left , y , 500 ) ;
157166 btnPathsBrowse = CreateButton ( "Browse..." , 530 , y - 2 , 120 , 32 , ButtonBg ) ;
158167 btnPathsBrowse . ForeColor = TextColor ;
168+ btnPathsBrowse . FlatStyle = FlatStyle . Standard ;
159169 btnPathsBrowse . Click += ( s , e ) =>
160170 {
161171 using ( OpenFileDialog ofd = new OpenFileDialog ( ) )
@@ -228,6 +238,7 @@ private void AddHashFSControls(TabPage page)
228238 txtAdditionalFile = CreateTextBox ( left , y , 500 ) ;
229239 btnAdditionalBrowse = CreateButton ( "Browse..." , 530 , y - 2 , 120 , 32 , ButtonBg ) ;
230240 btnAdditionalBrowse . ForeColor = TextColor ;
241+ btnAdditionalBrowse . FlatStyle = FlatStyle . Standard ;
231242 btnAdditionalBrowse . Click += ( s , e ) =>
232243 {
233244 using ( OpenFileDialog ofd = new OpenFileDialog ( ) )
@@ -255,7 +266,7 @@ private void AddHeader(TabPage page, string text, int x, int y)
255266 Text = text ,
256267 Location = new Point ( x , y ) ,
257268 AutoSize = true ,
258- ForeColor = AccentColor ,
269+ ForeColor = SystemColors . Highlight ,
259270 Font = new Font ( "Segoe UI" , 9 , FontStyle . Bold )
260271 } ) ;
261272 }
0 commit comments