diff options
| author | lempamo <[email protected]> | 2017-02-25 08:21:55 -0500 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-02-25 08:21:55 -0500 |
| commit | cc4b3c6f091828f2b44ffa3688f551ed09557ec6 (patch) | |
| tree | 5edd08769817553e9b17a8a6caaad269d83eeb3e /ShiftOS.WinForms/WinformsDesktop.cs | |
| parent | 0b65949e74b225603e04971ccba8430bded90769 (diff) | |
| parent | 5573e82ca48bb891bbaf6c2f05215dba8e441ce8 (diff) | |
| download | shiftos_thereturn-cc4b3c6f091828f2b44ffa3688f551ed09557ec6.tar.gz shiftos_thereturn-cc4b3c6f091828f2b44ffa3688f551ed09557ec6.tar.bz2 shiftos_thereturn-cc4b3c6f091828f2b44ffa3688f551ed09557ec6.zip | |
Merge remote-tracking branch 'refs/remotes/shiftos-game/master'
Diffstat (limited to 'ShiftOS.WinForms/WinformsDesktop.cs')
| -rw-r--r-- | ShiftOS.WinForms/WinformsDesktop.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index 2bb2715..ded68ba 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -119,6 +119,9 @@ namespace ShiftOS.WinForms lbtime.Top = LoadedSkin.DesktopPanelClockFromRight.Y; } } + + btnnotifications.Left = lbtime.Left - btnnotifications.Width - 2; + btnnotifications.Top = (desktoppanel.Height - btnnotifications.Height) / 2; }; time.Start(); @@ -229,6 +232,8 @@ namespace ShiftOS.WinForms desktoppanel.Visible = Shiftorium.UpgradeInstalled("desktop"); lbtime.Visible = Shiftorium.UpgradeInstalled("desktop_clock_widget"); + btnnotifications.Visible = Shiftorium.UpgradeInstalled("panel_notifications"); + //skinning lbtime.ForeColor = LoadedSkin.DesktopPanelClockColor; @@ -529,6 +534,11 @@ namespace ShiftOS.WinForms { return this.Size; } + + private void btnnotifications_Click(object sender, EventArgs e) + { + AppearanceManager.SetupWindow(new Applications.Notifications()); + } } [ShiftOS.Engine.Scripting.Exposed("desktop")] |
