Skip to content

Commit 6ada163

Browse files
committed
icon text size increased for screens with normal dpi (no zoom)
1 parent fedbcfc commit 6ada163

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OpenHardwareMonitor/UI/SensorNotifyIcon.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ public SensorNotifyIcon(SystemTray sensorSystemTray, ISensor sensor, PersistentS
9595
var height = Math.Max(16, (int)Math.Round(16 * dpiY / 96));
9696

9797
// adjust the font size to the icon size
98-
_font = new Font("Arial", width == 16 ? 9.0F : 8.0F * dpiX / 96);
99-
_smallFont = new Font("Arial", width == 16 ? 7.0F : 6.0F * dpiX / 96);
98+
_font = new Font("Arial", width == 16 ? 10.0F : 8.0F * dpiX / 96);
99+
_smallFont = new Font("Arial", width == 16 ? 8.0F : 6.0F * dpiX / 96);
100100

101101
_bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb);
102102
_graphics = Graphics.FromImage(_bitmap);

0 commit comments

Comments
 (0)