/[EmuXPortal]/branches/mono/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /branches/mono/EmuXPortal/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/Form1.cs	2014/08/05 12:48:58	253
+++ trunk/EmuXPortal/Form1.cs	2014/08/05 12:58:18	255
@@ -22,6 +22,7 @@
 {
     public partial class Form1 : Form
     {
+        static readonly Color SELECTED_CONTROL_BACKCOLOR = Color.SteelBlue;
         const float PROGRESS_BAR_FONT_SIZE = 24;
         private delegate Font Delegate_GetFormFont();
         private delegate Font Delegate_ResizeFont(Font font, float size);
@@ -135,12 +136,14 @@
         {
             PlatformControl c = sender as PlatformControl;
             c.BorderStyle = BorderStyle.None;
+            c.BackColor = this.BackColor;
         }
 
         void platform_ctrl_GotFocus(object sender, EventArgs e)
         {
             PlatformControl c = sender as PlatformControl;
             c.BorderStyle = BorderStyle.FixedSingle;
+            c.BackColor = SELECTED_CONTROL_BACKCOLOR;
             CurrentPlatformControl = c;
         }
         void game_ctrl_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
@@ -488,12 +491,14 @@
         {
             GameControl c = sender as GameControl;
             c.BorderStyle = BorderStyle.None;
+            c.BackColor = this.BackColor;
         }
 
         void game_ctrl_GotFocus(object sender, EventArgs e)
         {
             GameControl c = sender as GameControl;
             c.BorderStyle = BorderStyle.FixedSingle;
+            c.BackColor = SELECTED_CONTROL_BACKCOLOR;
             CurrentGameControl = c;
         }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22