Fixed some font issues.

This commit is contained in:
Michael Möller
2010-05-15 12:50:28 +00:00
parent 5e4b9607e7
commit 604884777f
4 changed files with 13 additions and 18 deletions
-2
View File
@@ -98,7 +98,6 @@ namespace OpenHardwareMonitor.GUI {
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Bold);
this.label1.Location = new System.Drawing.Point(85, 13); this.label1.Location = new System.Drawing.Point(85, 13);
this.label1.Margin = new System.Windows.Forms.Padding(12, 0, 12, 0); this.label1.Margin = new System.Windows.Forms.Padding(12, 0, 12, 0);
this.label1.Name = "label1"; this.label1.Name = "label1";
@@ -184,7 +183,6 @@ namespace OpenHardwareMonitor.GUI {
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1); this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.okButton); this.Controls.Add(this.okButton);
this.Font = new System.Drawing.Font("Segoe UI", 9F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
-4
View File
@@ -123,7 +123,6 @@ namespace OpenHardwareMonitor.GUI {
this.treeView.DefaultToolTipProvider = null; this.treeView.DefaultToolTipProvider = null;
this.treeView.Dock = System.Windows.Forms.DockStyle.Fill; this.treeView.Dock = System.Windows.Forms.DockStyle.Fill;
this.treeView.DragDropMarkColor = System.Drawing.Color.Black; this.treeView.DragDropMarkColor = System.Drawing.Color.Black;
this.treeView.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.treeView.FullRowSelect = true; this.treeView.FullRowSelect = true;
this.treeView.GridLineStyle = Aga.Controls.Tree.GridLineStyle.Horizontal; this.treeView.GridLineStyle = Aga.Controls.Tree.GridLineStyle.Horizontal;
this.treeView.LineColor = System.Drawing.SystemColors.ControlDark; this.treeView.LineColor = System.Drawing.SystemColors.ControlDark;
@@ -441,7 +440,6 @@ namespace OpenHardwareMonitor.GUI {
// //
this.plotPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.plotPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.plotPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.plotPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.plotPanel.Font = new System.Drawing.Font("Segoe UI", 9F);
this.plotPanel.Location = new System.Drawing.Point(0, 0); this.plotPanel.Location = new System.Drawing.Point(0, 0);
this.plotPanel.Name = "plotPanel"; this.plotPanel.Name = "plotPanel";
this.plotPanel.Size = new System.Drawing.Size(478, 198); this.plotPanel.Size = new System.Drawing.Size(478, 198);
@@ -458,7 +456,6 @@ namespace OpenHardwareMonitor.GUI {
// //
// hideShowToolStripMenuItem // hideShowToolStripMenuItem
// //
this.hideShowToolStripMenuItem.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold);
this.hideShowToolStripMenuItem.Name = "hideShowToolStripMenuItem"; this.hideShowToolStripMenuItem.Name = "hideShowToolStripMenuItem";
this.hideShowToolStripMenuItem.Size = new System.Drawing.Size(136, 22); this.hideShowToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
this.hideShowToolStripMenuItem.Text = "Hide/Show"; this.hideShowToolStripMenuItem.Text = "Hide/Show";
@@ -501,7 +498,6 @@ namespace OpenHardwareMonitor.GUI {
this.ClientSize = new System.Drawing.Size(478, 792); this.ClientSize = new System.Drawing.Size(478, 792);
this.Controls.Add(this.splitContainer); this.Controls.Add(this.splitContainer);
this.Controls.Add(this.menuStrip); this.Controls.Add(this.menuStrip);
this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menuStrip; this.MainMenuStrip = this.menuStrip;
this.Name = "MainForm"; this.Name = "MainForm";
-1
View File
@@ -67,7 +67,6 @@ namespace OpenHardwareMonitor.GUI {
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.Font = new System.Drawing.Font("Segoe UI", 9F);
this.Name = "PlotPanel"; this.Name = "PlotPanel";
this.Size = new System.Drawing.Size(170, 168); this.Size = new System.Drawing.Size(170, 168);
this.ResumeLayout(false); this.ResumeLayout(false);
+6 -4
View File
@@ -75,7 +75,7 @@ namespace OpenHardwareMonitor.GUI {
"traycolor").ToString(), defaultColor); "traycolor").ToString(), defaultColor);
this.pen = new Pen(Color.FromArgb(96, Color.Black)); this.pen = new Pen(Color.FromArgb(96, Color.Black));
this.font = new Font(SystemFonts.MessageBoxFont.FontFamily, 9); this.font = SystemFonts.MessageBoxFont;
ContextMenuStrip contextMenuStrip = new ContextMenuStrip(); ContextMenuStrip contextMenuStrip = new ContextMenuStrip();
ToolStripMenuItem removeItem = new ToolStripMenuItem("Remove"); ToolStripMenuItem removeItem = new ToolStripMenuItem("Remove");
@@ -98,8 +98,11 @@ namespace OpenHardwareMonitor.GUI {
this.bitmap = new Bitmap(16, 16, PixelFormat.Format32bppArgb); this.bitmap = new Bitmap(16, 16, PixelFormat.Format32bppArgb);
this.graphics = Graphics.FromImage(this.bitmap); this.graphics = Graphics.FromImage(this.bitmap);
this.graphics.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
this.graphics.SmoothingMode = SmoothingMode.HighQuality; if (Environment.OSVersion.Version.Major > 5) {
this.graphics.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
this.graphics.SmoothingMode = SmoothingMode.HighQuality;
}
} }
public ISensor Sensor { public ISensor Sensor {
@@ -137,7 +140,6 @@ namespace OpenHardwareMonitor.GUI {
if (darkBrush != null) if (darkBrush != null)
darkBrush.Dispose(); darkBrush.Dispose();
pen.Dispose(); pen.Dispose();
font.Dispose();
graphics.Dispose(); graphics.Dispose();
bitmap.Dispose(); bitmap.Dispose();
} }