aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/WinformsDesktop.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-24 21:16:45 -0500
committerMichael <[email protected]>2017-02-24 21:16:45 -0500
commitbdd8e61600ce849d36e1b4932a01540f2575b738 (patch)
tree472b9473c6561d5f0929bc0ffd4c772a10f3cb06 /ShiftOS.WinForms/WinformsDesktop.cs
parent1e355ca5d1482fbc26866056c054fe5e14b15946 (diff)
downloadshiftos_thereturn-bdd8e61600ce849d36e1b4932a01540f2575b738.tar.gz
shiftos_thereturn-bdd8e61600ce849d36e1b4932a01540f2575b738.tar.bz2
shiftos_thereturn-bdd8e61600ce849d36e1b4932a01540f2575b738.zip
Notification frontend. Sorta.
Diffstat (limited to 'ShiftOS.WinForms/WinformsDesktop.cs')
-rw-r--r--ShiftOS.WinForms/WinformsDesktop.cs10
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")]