Skip to content

Commit 6216003

Browse files
committed
add preview_tray
1 parent d51d6a3 commit 6216003

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

OpenHardwareMonitor/UI/SensorNotifyIcon.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public SensorNotifyIcon(SystemTray sensorSystemTray, ISensor sensor, PersistentS
5454
iconKindItem.DropDownItems.Add(new ToolStripMenuItem("Value", null, (_, _) => { SetIconKind(IconKind.Regular); }) { Checked = _iconKind == IconKind.Regular });
5555
iconKindItem.DropDownItems.Add(new ToolStripMenuItem("Percent", null, (_, _) => { SetIconKind(IconKind.Percent); }) { Checked = _iconKind == IconKind.Percent });
5656
iconKindItem.DropDownItems.Add(new ToolStripMenuItem("Pie", null, (_, _) => { SetIconKind(IconKind.Pie); }) { Checked = _iconKind == IconKind.Pie });
57-
void SetIconKind(IconKind iconKind)
57+
void SetIconKind(IconKind kind)
5858
{
59-
_iconKind = iconKind;
59+
_iconKind = kind;
6060
for (int i = 0; i < iconKindItem.DropDownItems.Count; i++)
6161
{
6262
if (iconKindItem.DropDownItems[i] is not ToolStripMenuItem menuItem) continue;

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,16 @@ You can see information about devices such as:
3838

3939
Note: Some sensors are only available when running the application as administrator.
4040

41-
### UI example with `Light`/`Dark` themes
41+
### What does it look like?
42+
43+
Here's a preview of the app's UI with `Light`/`Dark` themes running on Windows 10:
4244

4345
[<img src="https://github.com/HardwareMonitor/openhardwaremonitor/raw/master/themes.png" alt="Themes" width="300"/>](https://github.com/HardwareMonitor/openhardwaremonitor/raw/master/themes.png)
4446

47+
Here's a preview of the tray icons and gadget (in Windows 10):
48+
49+
[<img src="https://github.com/HardwareMonitor/openhardwaremonitor/raw/master/preview_tray.png" alt="Themes" width="300"/>](https://github.com/HardwareMonitor/openhardwaremonitor/raw/master/preview_tray.png)
50+
4551
## Download
4652

4753
The published version can be obtained from [releases](https://github.com/HardwareMonitor/openhardwaremonitor/releases).

preview_tray.png

23.7 KB
Loading

0 commit comments

Comments
 (0)