Added new icon.

Updated graphics with new assets and added logo to about panel.
Fixed default font loading.
This commit is contained in:
Lorenz Cuno Klopfenstein 2014-01-18 01:53:55 +01:00
parent 6256dba0bd
commit 04d517e1da
28 changed files with 7372 additions and 356 deletions

View file

@ -44,7 +44,6 @@
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem();
this.fullOpacityToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.resizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuResize = new System.Windows.Forms.ContextMenuStrip(this.components);
this.doubleToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
@ -68,6 +67,7 @@
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuContextClose = new System.Windows.Forms.ToolStripMenuItem();
this.fullOpacityToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fullSelectWindowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuFullscreenContext = new System.Windows.Forms.ContextMenuStrip(this.components);
this.modeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -117,6 +117,7 @@
this.menuWindows.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.noneToolStripMenuItem});
this.menuWindows.Name = "menuWindows";
this.menuWindows.OwnerItem = this.fullSelectWindowToolStripMenuItem;
this.menuWindows.Size = new System.Drawing.Size(118, 26);
//
// noneToolStripMenuItem
@ -208,7 +209,7 @@
this.toolStripMenuItem3,
this.toolStripMenuItem4});
this.menuOpacity.Name = "menuOpacity";
this.menuOpacity.OwnerItem = this.menuContextOpacity;
this.menuOpacity.OwnerItem = this.fullOpacityToolStripMenuItem;
this.menuOpacity.ShowCheckMargin = true;
this.menuOpacity.ShowImageMargin = false;
this.menuOpacity.Size = new System.Drawing.Size(154, 92);
@ -252,14 +253,6 @@
this.toolStripMenuItem4.ToolTipText = global::OnTopReplica.Strings.MenuOp25TT;
this.toolStripMenuItem4.Click += new System.EventHandler(this.Menu_Opacity_click);
//
// fullOpacityToolStripMenuItem
//
this.fullOpacityToolStripMenuItem.DropDown = this.menuOpacity;
this.fullOpacityToolStripMenuItem.Image = global::OnTopReplica.Properties.Resources.window_opacity;
this.fullOpacityToolStripMenuItem.Name = "fullOpacityToolStripMenuItem";
this.fullOpacityToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
this.fullOpacityToolStripMenuItem.Text = global::OnTopReplica.Strings.MenuOpacity;
//
// resizeToolStripMenuItem
//
this.resizeToolStripMenuItem.DropDown = this.menuResize;
@ -450,6 +443,14 @@
this.menuContextClose.Text = global::OnTopReplica.Strings.MenuClose;
this.menuContextClose.Click += new System.EventHandler(this.Menu_Close_click);
//
// fullOpacityToolStripMenuItem
//
this.fullOpacityToolStripMenuItem.DropDown = this.menuOpacity;
this.fullOpacityToolStripMenuItem.Image = global::OnTopReplica.Properties.Resources.window_opacity;
this.fullOpacityToolStripMenuItem.Name = "fullOpacityToolStripMenuItem";
this.fullOpacityToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
this.fullOpacityToolStripMenuItem.Text = global::OnTopReplica.Strings.MenuOpacity;
//
// fullSelectWindowToolStripMenuItem
//
this.fullSelectWindowToolStripMenuItem.DropDown = this.menuWindows;
@ -468,7 +469,7 @@
this.enableClickthroughToolStripMenuItem,
this.fullExitToolStripMenuItem});
this.menuFullscreenContext.Name = "menuFullscreenContext";
this.menuFullscreenContext.Size = new System.Drawing.Size(190, 136);
this.menuFullscreenContext.Size = new System.Drawing.Size(190, 114);
//
// modeToolStripMenuItem
//
@ -484,21 +485,21 @@
// menuModeStandardToolStripMenuItem
//
this.menuModeStandardToolStripMenuItem.Name = "menuModeStandardToolStripMenuItem";
this.menuModeStandardToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.menuModeStandardToolStripMenuItem.Size = new System.Drawing.Size(130, 22);
this.menuModeStandardToolStripMenuItem.Text = "Standard";
this.menuModeStandardToolStripMenuItem.Click += new System.EventHandler(this.Menu_Fullscreen_Mode_Standard_click);
//
// menuModeFullscreenToolStripMenuItem
//
this.menuModeFullscreenToolStripMenuItem.Name = "menuModeFullscreenToolStripMenuItem";
this.menuModeFullscreenToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.menuModeFullscreenToolStripMenuItem.Size = new System.Drawing.Size(130, 22);
this.menuModeFullscreenToolStripMenuItem.Text = "Fullscreen";
this.menuModeFullscreenToolStripMenuItem.Click += new System.EventHandler(this.Menu_Fullscreen_Mode_Fullscreen_click);
//
// menuModeAllScreensToolStripMenuItem
//
this.menuModeAllScreensToolStripMenuItem.Name = "menuModeAllScreensToolStripMenuItem";
this.menuModeAllScreensToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.menuModeAllScreensToolStripMenuItem.Size = new System.Drawing.Size(130, 22);
this.menuModeAllScreensToolStripMenuItem.Text = "All screens";
this.menuModeAllScreensToolStripMenuItem.Click += new System.EventHandler(this.Menu_Fullscreen_Mode_AllScreens_click);
//
@ -524,7 +525,7 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(324, 232);
this.ClientSize = new System.Drawing.Size(326, 234);
this.ControlBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
this.HideCaption = true;

File diff suppressed because it is too large Load diff

View file

@ -41,7 +41,7 @@ namespace OnTopReplica {
_taskIcon = new NotifyIcon {
Text = Strings.ApplicationName,
Icon = Resources.icon_new,
Icon = Resources.new_flat_icon,
Visible = true,
ContextMenuStrip = _contextMenu
};

View file

@ -12,7 +12,7 @@
<AssemblyName>OnTopReplica</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ApplicationIcon>Assets\icon-new.ico</ApplicationIcon>
<ApplicationIcon>new-flat-icon.ico</ApplicationIcon>
<IsWebBootstrapper>false</IsWebBootstrapper>
<GenerateManifests>false</GenerateManifests>
<TargetZone>Internet</TargetZone>
@ -382,6 +382,9 @@
<None Include="Assets\reduce.png" />
</ItemGroup>
<ItemGroup>
<Content Include="new-flat-icon.ico" />
<None Include="Resources\new-flat-logo-64.png" />
<None Include="Resources\new-flat-icon.ico" />
<None Include="Resources\help.png" />
<None Include="Resources\minimize.png" />
<None Include="LICENSE.txt">

View file

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -170,6 +170,16 @@ namespace OnTopReplica.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap flat_logo_64 {
get {
object obj = ResourceManager.GetObject("flat_logo_64", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@ -210,16 +220,6 @@ namespace OnTopReplica.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon icon_new {
get {
object obj = ResourceManager.GetObject("icon_new", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@ -240,6 +240,16 @@ namespace OnTopReplica.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon new_flat_icon {
get {
object obj = ResourceManager.GetObject("new_flat_icon", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View file

@ -196,9 +196,6 @@
<data name="list" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Assets\list.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_new" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Assets\icon-new.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fullscreen" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Assets\fullscreen.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
@ -235,4 +232,10 @@
<data name="help" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\help.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="new_flat_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\new-flat-icon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="flat_logo_64" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\new-flat-logo-64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -12,6 +12,10 @@ namespace OnTopReplica {
/// </summary>
class SidePanel : UserControl {
public SidePanel() {
this.FixDefaultFont();
}
protected override void OnCreateControl() {
if (!DesignMode) {
Dock = DockStyle.Fill;

View file

@ -29,12 +29,12 @@
//
// labelVersion
//
this.labelVersion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labelVersion.Location = new System.Drawing.Point(0, 270);
this.labelVersion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labelVersion.Location = new System.Drawing.Point(0, 312);
this.labelVersion.Name = "labelVersion";
this.labelVersion.Padding = new System.Windows.Forms.Padding(0, 0, 0, 3);
this.labelVersion.Size = new System.Drawing.Size(265, 20);
this.labelVersion.Size = new System.Drawing.Size(344, 23);
this.labelVersion.TabIndex = 0;
this.labelVersion.Text = "Version";
this.labelVersion.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
@ -42,25 +42,24 @@
//
// panelContents
//
this.panelContents.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panelContents.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panelContents.AutoScroll = true;
this.panelContents.Location = new System.Drawing.Point(6, 6);
this.panelContents.Margin = new System.Windows.Forms.Padding(6);
this.panelContents.Location = new System.Drawing.Point(7, 7);
this.panelContents.Name = "panelContents";
this.panelContents.Size = new System.Drawing.Size(253, 255);
this.panelContents.Size = new System.Drawing.Size(330, 294);
this.panelContents.TabIndex = 1;
//
// AboutPanel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.panelContents);
this.Controls.Add(this.labelVersion);
this.MinimumSize = new System.Drawing.Size(265, 290);
this.MinimumSize = new System.Drawing.Size(344, 335);
this.Name = "AboutPanel";
this.Size = new System.Drawing.Size(265, 290);
this.Size = new System.Drawing.Size(344, 335);
this.ResumeLayout(false);
}

View file

@ -112,9 +112,9 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -37,28 +37,30 @@
this.linkLicense = new System.Windows.Forms.LinkLabel();
this.labeledDivider4 = new WindowsFormsAero.LabeledDivider();
this.linkContribute = new System.Windows.Forms.LinkLabel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// labelTranslators
//
this.labelTranslators.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labelTranslators.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labelTranslators.AutoEllipsis = true;
this.labelTranslators.Location = new System.Drawing.Point(0, 289);
this.labelTranslators.Name = "labelTranslators";
this.labelTranslators.Size = new System.Drawing.Size(240, 101);
this.labelTranslators.Size = new System.Drawing.Size(302, 101);
this.labelTranslators.TabIndex = 31;
this.labelTranslators.Text = "Translators:";
//
// linkCredits
//
this.linkCredits.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.linkCredits.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.linkCredits.AutoEllipsis = true;
this.linkCredits.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
this.linkCredits.Location = new System.Drawing.Point(0, 223);
this.linkCredits.Name = "linkCredits";
this.linkCredits.Size = new System.Drawing.Size(240, 57);
this.linkCredits.Size = new System.Drawing.Size(302, 57);
this.linkCredits.TabIndex = 30;
this.linkCredits.TabStop = true;
this.linkCredits.Text = "%CREDITS%";
@ -66,11 +68,11 @@
//
// progressUpdate
//
this.progressUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.progressUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.progressUpdate.Location = new System.Drawing.Point(0, 155);
this.progressUpdate.Name = "progressUpdate";
this.progressUpdate.Size = new System.Drawing.Size(132, 23);
this.progressUpdate.Size = new System.Drawing.Size(194, 23);
this.progressUpdate.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
this.progressUpdate.TabIndex = 29;
this.progressUpdate.Visible = false;
@ -78,7 +80,7 @@
// buttonUpdate
//
this.buttonUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonUpdate.Location = new System.Drawing.Point(138, 155);
this.buttonUpdate.Location = new System.Drawing.Point(200, 155);
this.buttonUpdate.Name = "buttonUpdate";
this.buttonUpdate.Size = new System.Drawing.Size(102, 23);
this.buttonUpdate.TabIndex = 28;
@ -89,36 +91,38 @@
//
// lblUpdateDisclaimer
//
this.lblUpdateDisclaimer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblUpdateDisclaimer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblUpdateDisclaimer.AutoEllipsis = true;
this.lblUpdateDisclaimer.Location = new System.Drawing.Point(0, 108);
this.lblUpdateDisclaimer.Name = "lblUpdateDisclaimer";
this.lblUpdateDisclaimer.Size = new System.Drawing.Size(240, 44);
this.lblUpdateDisclaimer.Size = new System.Drawing.Size(302, 44);
this.lblUpdateDisclaimer.TabIndex = 27;
this.lblUpdateDisclaimer.Text = "OnTopReplica automatically checks for updates at every start up.";
//
// labeledDivider2
//
this.labeledDivider2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labeledDivider2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labeledDivider2.DividerColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(191)))), ((int)(((byte)(222)))));
this.labeledDivider2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
this.labeledDivider2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(170)))));
this.labeledDivider2.Location = new System.Drawing.Point(0, 197);
this.labeledDivider2.Name = "labeledDivider2";
this.labeledDivider2.Size = new System.Drawing.Size(240, 23);
this.labeledDivider2.Size = new System.Drawing.Size(302, 23);
this.labeledDivider2.TabIndex = 26;
this.labeledDivider2.Text = global::OnTopReplica.Strings.AboutDividerCredits;
//
// labeledDivider1
//
this.labeledDivider1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labeledDivider1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labeledDivider1.DividerColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(191)))), ((int)(((byte)(222)))));
this.labeledDivider1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
this.labeledDivider1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(170)))));
this.labeledDivider1.Location = new System.Drawing.Point(0, 82);
this.labeledDivider1.Name = "labeledDivider1";
this.labeledDivider1.Size = new System.Drawing.Size(240, 23);
this.labeledDivider1.Size = new System.Drawing.Size(302, 23);
this.labeledDivider1.TabIndex = 25;
this.labeledDivider1.Text = global::OnTopReplica.Strings.AboutDividerUpdates;
//
@ -127,7 +131,7 @@
this.linkHomepage.AutoSize = true;
this.linkHomepage.BackColor = System.Drawing.Color.Transparent;
this.linkHomepage.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
this.linkHomepage.Location = new System.Drawing.Point(0, 54);
this.linkHomepage.Location = new System.Drawing.Point(67, 50);
this.linkHomepage.Name = "linkHomepage";
this.linkHomepage.Size = new System.Drawing.Size(167, 17);
this.linkHomepage.TabIndex = 23;
@ -143,7 +147,7 @@
this.linkAuthor.BackColor = System.Drawing.Color.Transparent;
this.linkAuthor.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
this.linkAuthor.LinkColor = System.Drawing.Color.Blue;
this.linkAuthor.Location = new System.Drawing.Point(0, 33);
this.linkAuthor.Location = new System.Drawing.Point(67, 33);
this.linkAuthor.Name = "linkAuthor";
this.linkAuthor.Size = new System.Drawing.Size(72, 17);
this.linkAuthor.TabIndex = 22;
@ -155,37 +159,37 @@
//
// lblSlogan
//
this.lblSlogan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblSlogan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblSlogan.AutoEllipsis = true;
this.lblSlogan.BackColor = System.Drawing.Color.Transparent;
this.lblSlogan.Location = new System.Drawing.Point(0, 0);
this.lblSlogan.Location = new System.Drawing.Point(67, 0);
this.lblSlogan.Name = "lblSlogan";
this.lblSlogan.Size = new System.Drawing.Size(240, 33);
this.lblSlogan.Size = new System.Drawing.Size(235, 33);
this.lblSlogan.TabIndex = 24;
this.lblSlogan.Text = "A lightweight, real-time, always on top thumbnail of a window of your choice.";
//
// labeledDivider3
//
this.labeledDivider3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labeledDivider3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labeledDivider3.DividerColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(191)))), ((int)(((byte)(222)))));
this.labeledDivider3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(170)))));
this.labeledDivider3.Location = new System.Drawing.Point(0, 393);
this.labeledDivider3.Name = "labeledDivider3";
this.labeledDivider3.Size = new System.Drawing.Size(240, 23);
this.labeledDivider3.Size = new System.Drawing.Size(302, 23);
this.labeledDivider3.TabIndex = 32;
this.labeledDivider3.Text = "License";
//
// linkLicense
//
this.linkLicense.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.linkLicense.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.linkLicense.AutoEllipsis = true;
this.linkLicense.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
this.linkLicense.Location = new System.Drawing.Point(0, 419);
this.linkLicense.Name = "linkLicense";
this.linkLicense.Size = new System.Drawing.Size(240, 81);
this.linkLicense.Size = new System.Drawing.Size(302, 81);
this.linkLicense.TabIndex = 33;
this.linkLicense.TabStop = true;
this.linkLicense.Text = "%LICENSE%";
@ -193,35 +197,47 @@
//
// labeledDivider4
//
this.labeledDivider4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labeledDivider4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labeledDivider4.DividerColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(191)))), ((int)(((byte)(222)))));
this.labeledDivider4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(170)))));
this.labeledDivider4.Location = new System.Drawing.Point(0, 503);
this.labeledDivider4.Name = "labeledDivider4";
this.labeledDivider4.Size = new System.Drawing.Size(240, 23);
this.labeledDivider4.Size = new System.Drawing.Size(302, 23);
this.labeledDivider4.TabIndex = 34;
this.labeledDivider4.Text = "Contribute";
//
// linkContribute
//
this.linkContribute.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.linkContribute.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.linkContribute.AutoEllipsis = true;
this.linkContribute.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
this.linkContribute.Location = new System.Drawing.Point(0, 529);
this.linkContribute.Name = "linkContribute";
this.linkContribute.Size = new System.Drawing.Size(240, 84);
this.linkContribute.Size = new System.Drawing.Size(302, 84);
this.linkContribute.TabIndex = 35;
this.linkContribute.TabStop = true;
this.linkContribute.Text = "%CONTRIBUTE%";
this.linkContribute.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkContribute_clicked);
//
// pictureBox1
//
this.pictureBox1.Image = global::OnTopReplica.Properties.Resources.flat_logo_64;
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(64, 64);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pictureBox1.TabIndex = 36;
this.pictureBox1.TabStop = false;
//
// AboutPanelContents
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true;
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.linkContribute);
this.Controls.Add(this.labeledDivider4);
this.Controls.Add(this.linkLicense);
@ -236,9 +252,10 @@
this.Controls.Add(this.linkHomepage);
this.Controls.Add(this.linkAuthor);
this.Controls.Add(this.lblSlogan);
this.Margin = new System.Windows.Forms.Padding(6);
this.Margin = new System.Windows.Forms.Padding(0);
this.Name = "AboutPanelContents";
this.Size = new System.Drawing.Size(243, 613);
this.Size = new System.Drawing.Size(305, 613);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -260,6 +277,7 @@
private System.Windows.Forms.LinkLabel linkLicense;
private WindowsFormsAero.LabeledDivider labeledDivider4;
private System.Windows.Forms.LinkLabel linkContribute;
private System.Windows.Forms.PictureBox pictureBox1;
}
}

View file

@ -8,6 +8,7 @@ using OnTopReplica.Update;
using System.Diagnostics;
using WindowsFormsAero.TaskDialog;
using System.IO;
using WindowsFormsAero;
namespace OnTopReplica.SidePanels {
public partial class AboutPanelContents : UserControl {
@ -18,6 +19,8 @@ namespace OnTopReplica.SidePanels {
InitializeComponent();
LocalizePanel();
this.FixDefaultFont();
}
private void LocalizePanel() {

View file

@ -112,9 +112,9 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -42,9 +42,9 @@
// btnClose
//
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnClose.Location = new System.Drawing.Point(189, 211);
this.btnClose.Location = new System.Drawing.Point(220, 243);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(75, 23);
this.btnClose.Size = new System.Drawing.Size(87, 27);
this.btnClose.TabIndex = 0;
this.btnClose.Text = global::OnTopReplica.Strings.MenuClose;
this.btnClose.UseVisualStyleBackColor = true;
@ -52,129 +52,131 @@
//
// panelMain
//
this.panelMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panelMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panelMain.AutoScroll = true;
this.panelMain.Controls.Add(this.groupHotkeys);
this.panelMain.Controls.Add(this.groupLanguage);
this.panelMain.Location = new System.Drawing.Point(6, 6);
this.panelMain.Location = new System.Drawing.Point(7, 7);
this.panelMain.Name = "panelMain";
this.panelMain.Size = new System.Drawing.Size(258, 199);
this.panelMain.Size = new System.Drawing.Size(301, 230);
this.panelMain.TabIndex = 1;
//
// groupHotkeys
//
this.groupHotkeys.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupHotkeys.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupHotkeys.Controls.Add(this.label1);
this.groupHotkeys.Controls.Add(this.lblHotKeyShowHide);
this.groupHotkeys.Controls.Add(this.txtHotKeyShowHide);
this.groupHotkeys.Controls.Add(this.lblHotKeyClone);
this.groupHotkeys.Controls.Add(this.txtHotKeyClone);
this.groupHotkeys.Location = new System.Drawing.Point(3, 77);
this.groupHotkeys.Location = new System.Drawing.Point(3, 89);
this.groupHotkeys.Name = "groupHotkeys";
this.groupHotkeys.Size = new System.Drawing.Size(252, 113);
this.groupHotkeys.Size = new System.Drawing.Size(294, 130);
this.groupHotkeys.TabIndex = 1;
this.groupHotkeys.TabStop = false;
this.groupHotkeys.Text = "Hot keys:";
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.Location = new System.Drawing.Point(6, 68);
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.Location = new System.Drawing.Point(7, 78);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(156, 43);
this.label1.Size = new System.Drawing.Size(182, 50);
this.label1.TabIndex = 4;
this.label1.Text = "These system-wide shortcuts can also be used when OnTopReplica is not in focus.";
//
// lblHotKeyShowHide
//
this.lblHotKeyShowHide.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblHotKeyShowHide.Location = new System.Drawing.Point(168, 22);
this.lblHotKeyShowHide.BackColor = System.Drawing.Color.Transparent;
this.lblHotKeyShowHide.Location = new System.Drawing.Point(196, 25);
this.lblHotKeyShowHide.Name = "lblHotKeyShowHide";
this.lblHotKeyShowHide.Size = new System.Drawing.Size(78, 17);
this.lblHotKeyShowHide.Size = new System.Drawing.Size(91, 20);
this.lblHotKeyShowHide.TabIndex = 3;
this.lblHotKeyShowHide.Text = "Show/Hide";
//
// txtHotKeyShowHide
//
this.txtHotKeyShowHide.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtHotKeyShowHide.Location = new System.Drawing.Point(6, 19);
this.txtHotKeyShowHide.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtHotKeyShowHide.Location = new System.Drawing.Point(7, 22);
this.txtHotKeyShowHide.Name = "txtHotKeyShowHide";
this.txtHotKeyShowHide.ReadOnly = true;
this.txtHotKeyShowHide.Size = new System.Drawing.Size(156, 20);
this.txtHotKeyShowHide.Size = new System.Drawing.Size(181, 23);
this.txtHotKeyShowHide.TabIndex = 2;
//
// lblHotKeyClone
//
this.lblHotKeyClone.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblHotKeyClone.Location = new System.Drawing.Point(168, 48);
this.lblHotKeyClone.BackColor = System.Drawing.Color.Transparent;
this.lblHotKeyClone.Location = new System.Drawing.Point(196, 55);
this.lblHotKeyClone.Name = "lblHotKeyClone";
this.lblHotKeyClone.Size = new System.Drawing.Size(78, 29);
this.lblHotKeyClone.Size = new System.Drawing.Size(91, 33);
this.lblHotKeyClone.TabIndex = 1;
this.lblHotKeyClone.Text = "Clone current window";
//
// txtHotKeyClone
//
this.txtHotKeyClone.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtHotKeyClone.Location = new System.Drawing.Point(6, 45);
this.txtHotKeyClone.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtHotKeyClone.Location = new System.Drawing.Point(7, 52);
this.txtHotKeyClone.Name = "txtHotKeyClone";
this.txtHotKeyClone.ReadOnly = true;
this.txtHotKeyClone.Size = new System.Drawing.Size(156, 20);
this.txtHotKeyClone.Size = new System.Drawing.Size(181, 23);
this.txtHotKeyClone.TabIndex = 0;
//
// groupLanguage
//
this.groupLanguage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupLanguage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupLanguage.Controls.Add(this.comboLanguage);
this.groupLanguage.Controls.Add(this.lblLanguage);
this.groupLanguage.Location = new System.Drawing.Point(3, 3);
this.groupLanguage.Name = "groupLanguage";
this.groupLanguage.Size = new System.Drawing.Size(252, 68);
this.groupLanguage.Size = new System.Drawing.Size(294, 78);
this.groupLanguage.TabIndex = 0;
this.groupLanguage.TabStop = false;
this.groupLanguage.Text = "Language:";
//
// comboLanguage
//
this.comboLanguage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.comboLanguage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.comboLanguage.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.comboLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboLanguage.FormattingEnabled = true;
this.comboLanguage.IconList = null;
this.comboLanguage.Location = new System.Drawing.Point(9, 19);
this.comboLanguage.Location = new System.Drawing.Point(10, 22);
this.comboLanguage.Name = "comboLanguage";
this.comboLanguage.Size = new System.Drawing.Size(237, 21);
this.comboLanguage.Size = new System.Drawing.Size(276, 24);
this.comboLanguage.TabIndex = 2;
this.comboLanguage.SelectedIndexChanged += new System.EventHandler(this.LanguageBox_IndexChange);
//
// lblLanguage
//
this.lblLanguage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblLanguage.Location = new System.Drawing.Point(6, 43);
this.lblLanguage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblLanguage.Location = new System.Drawing.Point(7, 50);
this.lblLanguage.Name = "lblLanguage";
this.lblLanguage.Size = new System.Drawing.Size(240, 22);
this.lblLanguage.Size = new System.Drawing.Size(280, 25);
this.lblLanguage.TabIndex = 1;
this.lblLanguage.Text = "Requires a restart.";
//
// OptionsPanel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true;
this.Controls.Add(this.panelMain);
this.Controls.Add(this.btnClose);
this.MinimumSize = new System.Drawing.Size(270, 240);
this.MinimumSize = new System.Drawing.Size(315, 277);
this.Name = "OptionsPanel";
this.Padding = new System.Windows.Forms.Padding(6);
this.Size = new System.Drawing.Size(270, 240);
this.Padding = new System.Windows.Forms.Padding(7, 7, 7, 7);
this.Size = new System.Drawing.Size(315, 277);
this.panelMain.ResumeLayout(false);
this.groupHotkeys.ResumeLayout(false);
this.groupHotkeys.PerformLayout();

View file

@ -112,9 +112,9 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -68,21 +68,21 @@
this.groupRegions.Controls.Add(this.buttonSave);
this.groupRegions.Controls.Add(this.comboRegions);
this.groupRegions.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupRegions.Location = new System.Drawing.Point(6, 6);
this.groupRegions.Location = new System.Drawing.Point(7, 7);
this.groupRegions.Name = "groupRegions";
this.groupRegions.Size = new System.Drawing.Size(218, 180);
this.groupRegions.Size = new System.Drawing.Size(254, 208);
this.groupRegions.TabIndex = 0;
this.groupRegions.TabStop = false;
this.groupRegions.Text = "Regions:";
//
// checkRelative
//
this.checkRelative.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.checkRelative.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.checkRelative.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.checkRelative.Location = new System.Drawing.Point(6, 119);
this.checkRelative.Location = new System.Drawing.Point(7, 137);
this.checkRelative.Name = "checkRelative";
this.checkRelative.Size = new System.Drawing.Size(206, 18);
this.checkRelative.Size = new System.Drawing.Size(240, 21);
this.checkRelative.TabIndex = 12;
this.checkRelative.Text = "Relative to border";
this.checkRelative.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@ -91,13 +91,13 @@
//
// textRegionName
//
this.textRegionName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textRegionName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textRegionName.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.textRegionName.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.textRegionName.Location = new System.Drawing.Point(6, 44);
this.textRegionName.Location = new System.Drawing.Point(7, 51);
this.textRegionName.Name = "textRegionName";
this.textRegionName.Size = new System.Drawing.Size(208, 20);
this.textRegionName.Size = new System.Drawing.Size(242, 23);
this.textRegionName.TabIndex = 11;
this.textRegionName.Visible = false;
this.textRegionName.ConfirmInput += new System.EventHandler(this.Save_confirm);
@ -107,7 +107,7 @@
//
this.numH.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.numH.Enabled = false;
this.numH.Location = new System.Drawing.Point(169, 93);
this.numH.Location = new System.Drawing.Point(197, 107);
this.numH.Maximum = new decimal(new int[] {
100000,
0,
@ -119,7 +119,7 @@
0,
-2147483648});
this.numH.Name = "numH";
this.numH.Size = new System.Drawing.Size(43, 20);
this.numH.Size = new System.Drawing.Size(50, 23);
this.numH.TabIndex = 7;
this.numH.ValueChanged += new System.EventHandler(this.RegionValueSpinner_value_change);
//
@ -127,7 +127,7 @@
//
this.numW.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.numW.Enabled = false;
this.numW.Location = new System.Drawing.Point(169, 67);
this.numW.Location = new System.Drawing.Point(197, 77);
this.numW.Maximum = new decimal(new int[] {
100000,
0,
@ -139,14 +139,14 @@
0,
-2147483648});
this.numW.Name = "numW";
this.numW.Size = new System.Drawing.Size(43, 20);
this.numW.Size = new System.Drawing.Size(50, 23);
this.numW.TabIndex = 6;
this.numW.ValueChanged += new System.EventHandler(this.RegionValueSpinner_value_change);
//
// numY
//
this.numY.Enabled = false;
this.numY.Location = new System.Drawing.Point(55, 93);
this.numY.Location = new System.Drawing.Point(64, 107);
this.numY.Maximum = new decimal(new int[] {
100000,
0,
@ -158,14 +158,14 @@
0,
-2147483648});
this.numY.Name = "numY";
this.numY.Size = new System.Drawing.Size(43, 20);
this.numY.Size = new System.Drawing.Size(50, 23);
this.numY.TabIndex = 5;
this.numY.ValueChanged += new System.EventHandler(this.RegionValueSpinner_value_change);
//
// numX
//
this.numX.Enabled = false;
this.numX.Location = new System.Drawing.Point(55, 67);
this.numX.Location = new System.Drawing.Point(64, 77);
this.numX.Maximum = new decimal(new int[] {
100000,
0,
@ -177,7 +177,7 @@
0,
-2147483648});
this.numX.Name = "numX";
this.numX.Size = new System.Drawing.Size(43, 20);
this.numX.Size = new System.Drawing.Size(50, 23);
this.numX.TabIndex = 4;
this.numX.ValueChanged += new System.EventHandler(this.RegionValueSpinner_value_change);
//
@ -186,9 +186,9 @@
this.buttonDone.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonDone.Image = global::OnTopReplica.Properties.Resources.xiao_ok;
this.buttonDone.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.buttonDone.Location = new System.Drawing.Point(142, 151);
this.buttonDone.Location = new System.Drawing.Point(166, 174);
this.buttonDone.Name = "buttonDone";
this.buttonDone.Size = new System.Drawing.Size(70, 23);
this.buttonDone.Size = new System.Drawing.Size(82, 27);
this.buttonDone.TabIndex = 9;
this.buttonDone.Text = global::OnTopReplica.Strings.RegionsDoneButton;
this.buttonDone.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
@ -198,9 +198,9 @@
// buttonReset
//
this.buttonReset.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonReset.Location = new System.Drawing.Point(66, 151);
this.buttonReset.Location = new System.Drawing.Point(77, 174);
this.buttonReset.Name = "buttonReset";
this.buttonReset.Size = new System.Drawing.Size(70, 23);
this.buttonReset.Size = new System.Drawing.Size(82, 27);
this.buttonReset.TabIndex = 8;
this.buttonReset.Text = global::OnTopReplica.Strings.RegionsResetButton;
this.buttonReset.UseVisualStyleBackColor = true;
@ -210,9 +210,9 @@
//
this.labelHeight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.labelHeight.ForeColor = System.Drawing.SystemColors.ControlDark;
this.labelHeight.Location = new System.Drawing.Point(104, 95);
this.labelHeight.Location = new System.Drawing.Point(121, 110);
this.labelHeight.Name = "labelHeight";
this.labelHeight.Size = new System.Drawing.Size(60, 18);
this.labelHeight.Size = new System.Drawing.Size(70, 21);
this.labelHeight.TabIndex = 9;
this.labelHeight.Text = "Height";
this.labelHeight.TextAlign = System.Drawing.ContentAlignment.TopRight;
@ -221,9 +221,9 @@
//
this.labelWidth.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.labelWidth.ForeColor = System.Drawing.SystemColors.ControlDark;
this.labelWidth.Location = new System.Drawing.Point(107, 69);
this.labelWidth.Location = new System.Drawing.Point(125, 80);
this.labelWidth.Name = "labelWidth";
this.labelWidth.Size = new System.Drawing.Size(57, 18);
this.labelWidth.Size = new System.Drawing.Size(66, 21);
this.labelWidth.TabIndex = 8;
this.labelWidth.Text = "Width";
this.labelWidth.TextAlign = System.Drawing.ContentAlignment.TopRight;
@ -231,9 +231,9 @@
// labelY
//
this.labelY.ForeColor = System.Drawing.SystemColors.ControlDark;
this.labelY.Location = new System.Drawing.Point(6, 96);
this.labelY.Location = new System.Drawing.Point(7, 111);
this.labelY.Name = "labelY";
this.labelY.Size = new System.Drawing.Size(43, 17);
this.labelY.Size = new System.Drawing.Size(50, 20);
this.labelY.TabIndex = 5;
this.labelY.Text = "Y";
this.labelY.TextAlign = System.Drawing.ContentAlignment.TopRight;
@ -241,9 +241,9 @@
// labelX
//
this.labelX.ForeColor = System.Drawing.SystemColors.ControlDark;
this.labelX.Location = new System.Drawing.Point(6, 70);
this.labelX.Location = new System.Drawing.Point(7, 81);
this.labelX.Name = "labelX";
this.labelX.Size = new System.Drawing.Size(43, 17);
this.labelX.Size = new System.Drawing.Size(50, 20);
this.labelX.TabIndex = 4;
this.labelX.Text = "X";
this.labelX.TextAlign = System.Drawing.ContentAlignment.TopRight;
@ -251,10 +251,9 @@
// labelCurrentRegion
//
this.labelCurrentRegion.AutoSize = true;
this.labelCurrentRegion.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelCurrentRegion.Location = new System.Drawing.Point(6, 47);
this.labelCurrentRegion.Location = new System.Drawing.Point(7, 54);
this.labelCurrentRegion.Name = "labelCurrentRegion";
this.labelCurrentRegion.Size = new System.Drawing.Size(76, 13);
this.labelCurrentRegion.Size = new System.Drawing.Size(87, 15);
this.labelCurrentRegion.TabIndex = 3;
this.labelCurrentRegion.Text = "Current region:";
//
@ -263,9 +262,9 @@
this.buttonDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonDelete.Enabled = false;
this.buttonDelete.Image = global::OnTopReplica.Properties.Resources.xiao_delete;
this.buttonDelete.Location = new System.Drawing.Point(191, 18);
this.buttonDelete.Location = new System.Drawing.Point(223, 21);
this.buttonDelete.Name = "buttonDelete";
this.buttonDelete.Size = new System.Drawing.Size(23, 23);
this.buttonDelete.Size = new System.Drawing.Size(27, 25);
this.buttonDelete.TabIndex = 3;
this.buttonDelete.UseVisualStyleBackColor = true;
this.buttonDelete.Click += new System.EventHandler(this.Delete_click);
@ -275,36 +274,36 @@
this.buttonSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSave.Enabled = false;
this.buttonSave.Image = global::OnTopReplica.Properties.Resources.xiao_add;
this.buttonSave.Location = new System.Drawing.Point(168, 18);
this.buttonSave.Location = new System.Drawing.Point(196, 21);
this.buttonSave.Name = "buttonSave";
this.buttonSave.Size = new System.Drawing.Size(23, 23);
this.buttonSave.Size = new System.Drawing.Size(27, 25);
this.buttonSave.TabIndex = 1;
this.buttonSave.UseVisualStyleBackColor = false;
this.buttonSave.Click += new System.EventHandler(this.Save_click);
//
// comboRegions
//
this.comboRegions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.comboRegions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.comboRegions.CueBannerText = global::OnTopReplica.Strings.RegionsStoredRegions;
this.comboRegions.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboRegions.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.comboRegions.FormattingEnabled = true;
this.comboRegions.Location = new System.Drawing.Point(6, 19);
this.comboRegions.Location = new System.Drawing.Point(7, 22);
this.comboRegions.Name = "comboRegions";
this.comboRegions.Size = new System.Drawing.Size(160, 21);
this.comboRegions.Size = new System.Drawing.Size(186, 23);
this.comboRegions.TabIndex = 0;
this.comboRegions.SelectedIndexChanged += new System.EventHandler(this.RegionCombo_index_change);
//
// RegionPanel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.groupRegions);
this.MinimumSize = new System.Drawing.Size(230, 185);
this.MinimumSize = new System.Drawing.Size(268, 213);
this.Name = "RegionPanel";
this.Padding = new System.Windows.Forms.Padding(6);
this.Size = new System.Drawing.Size(230, 192);
this.Padding = new System.Windows.Forms.Padding(7);
this.Size = new System.Drawing.Size(268, 222);
this.groupRegions.ResumeLayout(false);
this.groupRegions.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numH)).EndInit();

View file

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
@ -56,5 +57,19 @@ namespace OnTopReplica {
return bb.Contains(screenCoordinates);
}
public static void FixDefaultFont(this Control ctrl) {
ctrl.Font = SystemFonts.MessageBoxFont;
if (ctrl.Controls == null || ctrl.Controls.Count == 0)
return;
foreach (Control subCtrl in ctrl.Controls) {
subCtrl.Font = SystemFonts.MessageBoxFont;
if (subCtrl is GroupBox) {
subCtrl.FixDefaultFont();
}
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB