mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 22:35:38 +00:00
PowerControl: Show current time
This commit is contained in:
parent
7daa4ac27f
commit
54aec613ed
2 changed files with 13 additions and 1 deletions
|
|
@ -1,10 +1,16 @@
|
|||
using System.Globalization;
|
||||
|
||||
namespace PowerControl
|
||||
{
|
||||
internal class MenuStack
|
||||
{
|
||||
public static Menu.MenuRoot Root = new Menu.MenuRoot()
|
||||
{
|
||||
Name = String.Format("\r\n\r\nPower Control v{0}\r\n", Application.ProductVersion.ToString()),
|
||||
Name = String.Format(
|
||||
"\r\n\r\nPower Control v{0} <C4>-<C> <TIME={1}>\r\n",
|
||||
Application.ProductVersion.ToString(),
|
||||
Is24hClock ? "%H:%M:%S" : "%I:%M:%S %p"
|
||||
),
|
||||
Items =
|
||||
{
|
||||
Options.Profiles.Instance,
|
||||
|
|
@ -33,5 +39,10 @@ namespace PowerControl
|
|||
Options.SteamController.Instance
|
||||
}
|
||||
};
|
||||
|
||||
private static bool Is24hClock
|
||||
{
|
||||
get => DateTimeFormatInfo.CurrentInfo.ShortTimePattern.Contains("HH");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue