From 6b804f03ebcdd1c5aa145f29ae71b62bd61f8cb9 Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Tue, 19 Jul 2016 21:53:26 -0400 Subject: Full ShiftUI conversion The only bugs are that windows don't show in the center of the screen, and Gecko webbrowsers are not serializing properly to be converted to ShiftUI widgets (you can use the ToWidget() extension method to convert a WinForms control to a ShiftUI widget) Also multiple desktop panels are removed due to some odd bug I can't diagnose. Will add them back in the future. Promise. I loved creating GNOME2 skins. --- source/WindowsFormsApplication1/Apps/AppscapeUploader.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/WindowsFormsApplication1/Apps/AppscapeUploader.cs') diff --git a/source/WindowsFormsApplication1/Apps/AppscapeUploader.cs b/source/WindowsFormsApplication1/Apps/AppscapeUploader.cs index 5cc8560..8b50450 100644 --- a/source/WindowsFormsApplication1/Apps/AppscapeUploader.cs +++ b/source/WindowsFormsApplication1/Apps/AppscapeUploader.cs @@ -10,7 +10,7 @@ using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; -using System.Windows.Forms; +using ShiftUI; namespace ShiftOS { @@ -121,16 +121,16 @@ namespace ShiftOS /// Makes the specified control and ALL of it's children, grand children, great grand children, and so on, appear "dark". /// /// The top of the hierarchy; the start of it all. - private void RecursiveControlSetup(Control ctrl) + private void RecursiveWidgetSetup(Widget ctrl) { ctrl.BackColor = API.CurrentSkin.titlebarcolour; ctrl.ForeColor = API.CurrentSkin.titletextcolour; try { var pnl = (Panel)ctrl; - foreach(Control c in pnl.Controls) + foreach(Widget c in pnl.Widgets) { - RecursiveControlSetup(c); + RecursiveWidgetSetup(c); } } catch { @@ -143,7 +143,7 @@ namespace ShiftOS /// private void SetupUI() { - RecursiveControlSetup(pnlmain); + RecursiveWidgetSetup(pnlmain); switch (page) { case 0: -- cgit v1.2.3