diff options
| author | Michael VanOverbeek <[email protected]> | 2016-07-25 12:57:52 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-07-25 12:57:52 -0400 |
| commit | 46c1c31302f111a1f3ec23a70e6f3986a9aa2a27 (patch) | |
| tree | f00af7ea3f6ad2641fb26fa1d310fd8b7179b39c /source/WindowsFormsApplication1/Apps/AppscapeUploader.cs | |
| parent | af48e774189596b8d7a058c564a7d6d75205ca03 (diff) | |
| parent | 6fa16209519896de09949a27425dff00ebf2970a (diff) | |
| download | shiftos-c--46c1c31302f111a1f3ec23a70e6f3986a9aa2a27.tar.gz shiftos-c--46c1c31302f111a1f3ec23a70e6f3986a9aa2a27.tar.bz2 shiftos-c--46c1c31302f111a1f3ec23a70e6f3986a9aa2a27.zip | |
Merge pull request #17 from MichaelTheShifter/shiftui_integration
Shiftui integration
Diffstat (limited to 'source/WindowsFormsApplication1/Apps/AppscapeUploader.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/Apps/AppscapeUploader.cs | 10 |
1 files changed, 5 insertions, 5 deletions
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". /// </summary> /// <param name="ctrl">The top of the hierarchy; the start of it all.</param> - 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 /// </summary> private void SetupUI() { - RecursiveControlSetup(pnlmain); + RecursiveWidgetSetup(pnlmain); switch (page) { case 0: |
