forked from BeyondDimension/SteamTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
100 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
System.Application.SteamTools.Client.Desktop.Avalonia/Application/UI/INotifyIcon.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using Avalonia.Controls; | ||
|
||
namespace System.Application.UI | ||
{ | ||
public interface INotifyIcon : INotifyIcon<ContextMenu> | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
System.Application.SteamTools.Client.Desktop.Mac/Application/UI/NotifyIcon.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//using AppKit; | ||
//using System; | ||
//using System.Collections.Generic; | ||
//using System.Linq; | ||
//using System.Text; | ||
//using System.Threading.Tasks; | ||
|
||
//namespace System.Application.UI | ||
//{ | ||
// /// <summary> | ||
// /// Represents a Notification Tray Icon (on a OSxMac StatusBarItem) | ||
// /// </summary> | ||
// public class NotifyIcon<TContextMenu> : INotifyIcon<TContextMenu> | ||
// { | ||
// NSStatusItem _item; | ||
// NSStatusItem statusBarItem | ||
// { | ||
// get => _item; set | ||
// { | ||
// _item = value; | ||
// UpdateMenu(); | ||
// } | ||
// } | ||
|
||
// public event EventHandler<EventArgs>? Click; | ||
// public event EventHandler<EventArgs>? DoubleClick; | ||
// public event EventHandler<EventArgs>? RightClick; | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
System.Application.SteamTools.Client.Desktop/UI/INotifyIcon.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
namespace System.Application.UI | ||
{ | ||
/// <summary> | ||
/// Represents a taskbar notification area icon (aka "tray icon") on Windows, | ||
/// and similar task panel notification icons on Linux and Mac. | ||
/// <para><see cref="https://github.com/sqrldev/SQRLDotNetClient/blob/master/SQRLDotNetClientUI/Models/INotifyIcon.cs"/></para> | ||
/// </summary> | ||
public interface INotifyIcon<TContextMenu> | ||
{ | ||
/// <summary> | ||
/// Gets or sets the icon for the notify icon. Either a file system path | ||
/// or a <c>resm:</c> manifest resource path can be specified. | ||
/// </summary> | ||
string IconPath { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the tooltip text for the notify icon. | ||
/// </summary> | ||
string ToolTipText { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the context- (right-click)-menu for the notify icon. | ||
/// </summary> | ||
TContextMenu ContextMenu { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets if the notify icon is visible in the | ||
/// taskbar notification area or not. | ||
/// </summary> | ||
bool Visible { get; set; } | ||
|
||
/// <summary> | ||
/// Removes the notify icon from the taskbar notification area. | ||
/// </summary> | ||
void Remove(); | ||
|
||
/// <summary> | ||
/// This event is raised when a user clicks on the notification icon. | ||
/// </summary> | ||
event EventHandler<EventArgs> Click; | ||
|
||
/// <summary> | ||
/// This event is raised when a user doubleclicks on the notification icon. | ||
/// </summary> | ||
event EventHandler<EventArgs> DoubleClick; | ||
|
||
/// <summary> | ||
/// This event is raised when a user right-clicks on the notification icon. | ||
/// </summary> | ||
event EventHandler<EventArgs> RightClick; | ||
} | ||
} |
60 changes: 0 additions & 60 deletions
60
System.Application.SteamTools.Tools.Packager/Application/UI/Views/Form1.resx
This file was deleted.
Oops, something went wrong.