From a9754b7df28795b6bb2c5cfe04c1b38b19fb0d05 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 10 Mar 2017 12:29:28 -0500 Subject: Lock certain apps away when system offline. --- ShiftOS.WinForms/Applications/GraphicPicker.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'ShiftOS.WinForms/Applications/GraphicPicker.cs') diff --git a/ShiftOS.WinForms/Applications/GraphicPicker.cs b/ShiftOS.WinForms/Applications/GraphicPicker.cs index 2dfe7ec..b3dd8bf 100644 --- a/ShiftOS.WinForms/Applications/GraphicPicker.cs +++ b/ShiftOS.WinForms/Applications/GraphicPicker.cs @@ -37,6 +37,7 @@ using ShiftOS.WinForms.Tools; namespace ShiftOS.WinForms.Applications { + [MultiplayerOnly] [DefaultTitle("Choose graphic")] [DefaultIcon("icongraphicpicker")] public partial class GraphicPicker : UserControl, IShiftOSWindow { -- cgit v1.2.3 From e63e1d65f7445988d9889a7b5a54b380ddb514e8 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 22 Apr 2017 12:44:26 -0400 Subject: Enable GIF loading --- ShiftOS.WinForms/Applications/GraphicPicker.cs | 2 +- ShiftOS.WinForms/WinformsDesktop.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'ShiftOS.WinForms/Applications/GraphicPicker.cs') diff --git a/ShiftOS.WinForms/Applications/GraphicPicker.cs b/ShiftOS.WinForms/Applications/GraphicPicker.cs index b3dd8bf..4f3f2bb 100644 --- a/ShiftOS.WinForms/Applications/GraphicPicker.cs +++ b/ShiftOS.WinForms/Applications/GraphicPicker.cs @@ -83,7 +83,7 @@ namespace ShiftOS.WinForms.Applications public void btnidlebrowse_Click(object s, EventArgs a) { - AppearanceManager.SetupDialog(new FileDialog(new[] { ".png", ".jpg", ".bmp", ".pic" }, FileOpenerStyle.Open, new Action((file) => + AppearanceManager.SetupDialog(new FileDialog(new[] { ".png", ".gif", ".jpg", ".bmp", ".pic" }, FileOpenerStyle.Open, new Action((file) => { ImageAsBinary = Utils.ReadAllBytes(file); System.IO.File.WriteAllBytes("temp_bin.bmp", ImageAsBinary); diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index d15c04d..61c371e 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -456,7 +456,6 @@ namespace ShiftOS.WinForms UserControl w = (UserControl)Activator.CreateInstance(widget.Value, null); w.Location = WidgetManager.LoadLocation(w.GetType()); - w.Top -= desktoppanel.Height; pnlwidgetlayer.Controls.Add(w); MakeWidgetMovable(w); Widgets.Add(w as IDesktopWidget); -- cgit v1.2.3 From c718fbb5654c77ae521f42fb9e42efb1a79992a9 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 22 Apr 2017 13:49:48 -0400 Subject: remove graphic picker debug code --- ShiftOS.WinForms/Applications/GraphicPicker.cs | 1 - 1 file changed, 1 deletion(-) (limited to 'ShiftOS.WinForms/Applications/GraphicPicker.cs') diff --git a/ShiftOS.WinForms/Applications/GraphicPicker.cs b/ShiftOS.WinForms/Applications/GraphicPicker.cs index 4f3f2bb..85f95bd 100644 --- a/ShiftOS.WinForms/Applications/GraphicPicker.cs +++ b/ShiftOS.WinForms/Applications/GraphicPicker.cs @@ -88,7 +88,6 @@ namespace ShiftOS.WinForms.Applications ImageAsBinary = Utils.ReadAllBytes(file); System.IO.File.WriteAllBytes("temp_bin.bmp", ImageAsBinary); Image = SkinEngine.ImageFromBinary(ImageAsBinary); - Image.Save("temp.bmp", System.Drawing.Imaging.ImageFormat.Bmp); Setup(); }))); } -- cgit v1.2.3