Skip to content

Commit

Permalink
slime
Browse files Browse the repository at this point in the history
  • Loading branch information
Neuroburst committed Mar 10, 2024
1 parent 6c9c19e commit b1addcd
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 25 deletions.
Binary file modified .vs/PowerTray/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file modified .vs/PowerTray/v17/.suo
Binary file not shown.
19 changes: 7 additions & 12 deletions .vs/PowerTray/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"RelativeMoniker": "D:0:0:{3F672D10-D263-4E68-BC90-C657EDD6A2F0}|PowerTray.csproj|solutionrelative:settings.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
},
{
"AbsoluteMoniker": "D:0:0:{3F672D10-D263-4E68-BC90-C657EDD6A2F0}|PowerTray.csproj|c:\\users\\agpan\\programming\\powertray\\app.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
"AbsoluteMoniker": "D:0:0:{3F672D10-D263-4E68-BC90-C657EDD6A2F0}|PowerTray.csproj|C:\\Users\\agpan\\Programming\\PowerTray\\app.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
"RelativeMoniker": "D:0:0:{3F672D10-D263-4E68-BC90-C657EDD6A2F0}|PowerTray.csproj|solutionrelative:app.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
},
{
Expand Down Expand Up @@ -44,7 +44,7 @@
"RelativeDocumentMoniker": "App.xaml.cs",
"ToolTip": "C:\\Users\\agpan\\Programming\\PowerTray\\App.xaml.cs",
"RelativeToolTip": "App.xaml.cs",
"ViewState": "AQIAAKgBAAAAAAAAAAAswMMBAABUAAAA",
"ViewState": "AQIAAIkBAAAAAAAAAAAiwMMBAABUAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-03-06T21:26:01.766Z",
"IsPinned": true,
Expand All @@ -61,8 +61,7 @@
"ViewState": "AQIAAAAAAAAAAAAAAAAAAF0AAAAJAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-03-09T16:24:55.579Z",
"IsPinned": true,
"EditorCaption": ""
"IsPinned": true
},
{
"$type": "Document",
Expand All @@ -73,8 +72,7 @@
"ToolTip": "C:\\Users\\agpan\\Programming\\PowerTray\\BatInfo.xaml",
"RelativeToolTip": "BatInfo.xaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-03-09T22:14:14.474Z",
"EditorCaption": ""
"WhenOpened": "2024-03-09T22:14:14.474Z"
},
{
"$type": "Document",
Expand All @@ -86,8 +84,7 @@
"RelativeToolTip": "Settings.xaml.cs",
"ViewState": "AQIAAAAAAAAAAAAAAAAAABEAAAAUAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-03-09T22:13:57.907Z",
"EditorCaption": ""
"WhenOpened": "2024-03-09T22:13:57.907Z"
},
{
"$type": "Document",
Expand All @@ -98,8 +95,7 @@
"ToolTip": "C:\\Users\\agpan\\Programming\\PowerTray\\Settings.xaml",
"RelativeToolTip": "Settings.xaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-03-09T22:13:59.961Z",
"EditorCaption": ""
"WhenOpened": "2024-03-09T22:13:59.961Z"
},
{
"$type": "Document",
Expand All @@ -110,8 +106,7 @@
"ToolTip": "C:\\Users\\agpan\\Programming\\PowerTray\\App.xaml",
"RelativeToolTip": "App.xaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-03-10T17:07:48.513Z",
"EditorCaption": ""
"WhenOpened": "2024-03-10T17:07:48.513Z"
}
]
}
Expand Down
Binary file modified .vs/ProjectEvaluation/powertray.metadata.v7.bin
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/powertray.projects.v7.bin
Binary file not shown.
28 changes: 20 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
# PowerTray
Welcome! PowerTray is a battery monitor that displays your battery percentage/time left.
Welcome! PowerTray is a simple battery monitor that sits in your system tray!
The tooltip also displays useful information.
You can get even more information by Right clicking the tray button>Battery Info.
You can also right click on the icon>Click "Battery Info" to see even more information!

## Features
- Displays customizable information in the system tray
- Displays battery capacity, charge, and status
- Allows you to see more advanced information, like voltage, design capacity, and battery health
- Calculates discharge and charge rate manually for a more accurate reading than the system
- Uses minimal resources and stays out of your way
- Tray, tooltip, and battery information updates frequently
- Customizable tray display

## Creation
This is an open-source project created with Visual Studio.
It was made using the .NET framework.
It was made using the .NET framework and WPF.

Supports for Windows 10 & 11

Made for Windows 10 & 11, but 8 and 7 may not work as expected and are unsupported.
I used some components from LibreHardware Monitor to detect more battery information.

## Installation

1. Download the latest release
2. To get to your startup folder, press Windows+R, type "shell:startup", then press enter
3. Put PowerTray.exe in that folder
4. It will now run every time your computer starts up!
1. Make sure you have .NET 8.0 installed!
2. Download the latest release
3. To get to your startup folder, press Windows+R, type "shell:startup", then press enter
4. Put PowerTray.exe in that folder
5. It will now run every time your computer starts up!
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void InitializeComponent() {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/PowerTray;component/batinfo.xaml", System.UriKind.Relative);
System.Uri resourceLocater = new System.Uri("/PowerTray;V1.0.0.0;component/batinfo.xaml", System.UriKind.Relative);

#line 1 "..\..\..\..\BatInfo.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[assembly: System.Reflection.AssemblyCompanyAttribute("PowerTray")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+3cdda8606a2f85c22a1b913d13889c8fa58ebd88")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6c9c19ebc7e637431f6330389fbde33e86c8be85")]
[assembly: System.Reflection.AssemblyProductAttribute("PowerTray")]
[assembly: System.Reflection.AssemblyTitleAttribute("PowerTray")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bbb5762db388ce448f695a08a468fab114c86e8c5100b70701e024d5aa5eac76
2f762fec741266d588d4daf11d03460a3060decdca01722e3521bcbd0adcaba0
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

FC:\Users\agpan\Programming\PowerTray\App.xaml;;

FC:\Users\agpan\Programming\PowerTray\BatInfo.xaml;;
FC:\Users\agpan\Programming\PowerTray\Settings.xaml;;

Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void InitializeComponent() {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/PowerTray;component/settings.xaml", System.UriKind.Relative);
System.Uri resourceLocater = new System.Uri("/PowerTray;V1.0.0.0;component/settings.xaml", System.UriKind.Relative);

#line 1 "..\..\..\..\Settings.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
Expand Down

0 comments on commit b1addcd

Please sign in to comment.