diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/campus_159_dark.png b/CampusAppWP8/CampusAppWP8/Assets/icons/campus_159_dark.png new file mode 100644 index 00000000..e019ac39 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/campus_159_dark.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/campus_159_light.png b/CampusAppWP8/CampusAppWP8/Assets/icons/campus_159_light.png new file mode 100644 index 00000000..cae8735c Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/campus_159_light.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/departments_159_dark.png b/CampusAppWP8/CampusAppWP8/Assets/icons/departments_159_dark.png new file mode 100644 index 00000000..2aeac69f Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/departments_159_dark.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/departments_159_light.png b/CampusAppWP8/CampusAppWP8/Assets/icons/departments_159_light.png new file mode 100644 index 00000000..381e22bc Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/departments_159_light.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/homework_159_dark.png b/CampusAppWP8/CampusAppWP8/Assets/icons/homework_159_dark.png new file mode 100644 index 00000000..d118e23d Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/homework_159_dark.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/homework_159_light.png b/CampusAppWP8/CampusAppWP8/Assets/icons/homework_159_light.png new file mode 100644 index 00000000..5ecf6523 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/homework_159_light.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/lectures_159_dark.png b/CampusAppWP8/CampusAppWP8/Assets/icons/lectures_159_dark.png new file mode 100644 index 00000000..05a56ba2 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/lectures_159_dark.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/lectures_159_light.png b/CampusAppWP8/CampusAppWP8/Assets/icons/lectures_159_light.png new file mode 100644 index 00000000..20763277 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/lectures_159_light.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/link_159_dark.png b/CampusAppWP8/CampusAppWP8/Assets/icons/link_159_dark.png new file mode 100644 index 00000000..0491962d Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/link_159_dark.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/link_159_light.png b/CampusAppWP8/CampusAppWP8/Assets/icons/link_159_light.png new file mode 100644 index 00000000..da0bca39 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/link_159_light.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/mensa_159_dark.png b/CampusAppWP8/CampusAppWP8/Assets/icons/mensa_159_dark.png new file mode 100644 index 00000000..f1df7318 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/mensa_159_dark.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/mensa_159_light.png b/CampusAppWP8/CampusAppWP8/Assets/icons/mensa_159_light.png new file mode 100644 index 00000000..ceefcd59 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/mensa_159_light.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/news_159_dark.png b/CampusAppWP8/CampusAppWP8/Assets/icons/news_159_dark.png new file mode 100644 index 00000000..42a50354 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/news_159_dark.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/news_159_light.png b/CampusAppWP8/CampusAppWP8/Assets/icons/news_159_light.png new file mode 100644 index 00000000..2a7c0fa8 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/news_159_light.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/openhours_159_dark.png b/CampusAppWP8/CampusAppWP8/Assets/icons/openhours_159_dark.png new file mode 100644 index 00000000..68e82d0d Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/openhours_159_dark.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/openhours_159_light.png b/CampusAppWP8/CampusAppWP8/Assets/icons/openhours_159_light.png new file mode 100644 index 00000000..8bc66811 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/openhours_159_light.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/schedule_159_dark.png b/CampusAppWP8/CampusAppWP8/Assets/icons/schedule_159_dark.png new file mode 100644 index 00000000..266cd74b Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/schedule_159_dark.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/schedule_159_light.png b/CampusAppWP8/CampusAppWP8/Assets/icons/schedule_159_light.png new file mode 100644 index 00000000..9807c694 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/schedule_159_light.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/student_council_159_dark.png b/CampusAppWP8/CampusAppWP8/Assets/icons/student_council_159_dark.png new file mode 100644 index 00000000..c168e650 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/student_council_159_dark.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/student_council_159_light.png b/CampusAppWP8/CampusAppWP8/Assets/icons/student_council_159_light.png new file mode 100644 index 00000000..7c0cfb2d Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/student_council_159_light.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/webmail_159_dark.png b/CampusAppWP8/CampusAppWP8/Assets/icons/webmail_159_dark.png new file mode 100644 index 00000000..295a60ee Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/webmail_159_dark.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/icons/webmail_159_light.png b/CampusAppWP8/CampusAppWP8/Assets/icons/webmail_159_light.png new file mode 100644 index 00000000..0f27f6fc Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/icons/webmail_159_light.png differ diff --git a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj index 6dd20d51..a82432b7 100644 --- a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj +++ b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj @@ -1,255 +1,277 @@ - - - - Debug - AnyCPU - 10.0.20506 - 2.0 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC} - {C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - Properties - CampusAppWP8 - CampusAppWP8 - WindowsPhone - v8.0 - $(TargetFrameworkVersion) - true - - - true - true - CampusAppWP8_$(Configuration)_$(Platform).xap - Properties\AppManifest.xml - CampusAppWP8.App - true - 11.0 - true - 5.0.40218.0 - - - true - full - false - Bin\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - - - pdbonly - true - Bin\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - true - full - false - Bin\x86\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\x86\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - true - full - false - Bin\ARM\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\ARM\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - - App.xaml - - - - - - - - - - CampusMapPage.xaml - - - DepartmentPage.xaml - - - LecturePage.xaml - - - - - - MensaPage.xaml - - - NewsPage.xaml - - - - RSSNewsTemplate.xaml - - - StartPage.xaml - - - WebmailPage.xaml - - - - True - True - AppResources.resx - - - True - True - Constants.resx - - - - - - - - - - - - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - MSBuild:Compile - Designer - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - MSBuild:Compile - Designer - - - - - - - - - Designer - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - - - - - - PublicResXFileCodeGenerator - AppResources.Designer.cs - - - ResXFileCodeGenerator - Constants.Designer.cs - - - - - - ..\packages\WPtoolkit.4.2012.10.30\lib\wp8\Microsoft.Phone.Controls.Toolkit.dll - - - - - - - + + + + Debug + AnyCPU + 10.0.20506 + 2.0 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC} + {C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + CampusAppWP8 + CampusAppWP8 + WindowsPhone + v8.0 + $(TargetFrameworkVersion) + true + + + true + true + CampusAppWP8_$(Configuration)_$(Platform).xap + Properties\AppManifest.xml + CampusAppWP8.App + true + 11.0 + true + 5.0.40218.0 + + + true + full + false + Bin\Debug + DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + + + pdbonly + true + Bin\Release + TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + true + full + false + Bin\x86\Debug + DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + pdbonly + true + Bin\x86\Release + TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + true + full + false + Bin\ARM\Debug + DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + pdbonly + true + Bin\ARM\Release + TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + + App.xaml + + + + + + + + + + CampusMapPage.xaml + + + DepartmentPage.xaml + + + LecturePage.xaml + + + + + + MensaPage.xaml + + + NewsPage.xaml + + + + RSSNewsTemplate.xaml + + + StartPage.xaml + + + WebmailPage.xaml + + + + True + True + AppResources.resx + + + True + True + Constants.resx + + + + + + + + + + + + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + + + + + + + Designer + + + + + + PreserveNewest + + + + + + + + + + + + + + + + + + + + + + + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + + + + + + + + PublicResXFileCodeGenerator + AppResources.Designer.cs + + + ResXFileCodeGenerator + Constants.Designer.cs + + + + + + ..\packages\WPtoolkit.4.2012.10.30\lib\wp8\Microsoft.Phone.Controls.Toolkit.dll + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml b/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml index 04b6f0e8..e2c4fe4f 100644 --- a/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml +++ b/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml @@ -1,44 +1,44 @@ - - - - - Assets\ApplicationIcon.png - - - - - - - - - - - - - - - - Assets\Tiles\FlipCycleTileSmall.png - 0 - Assets\Tiles\FlipCycleTileMedium.png - CampusAppWP8 - - - - - - - - - - - - - - - - - - - + + + + + Assets\ApplicationIcon.png + + + + + + + + + + + + + + + + Assets\Tiles\FlipCycleTileSmall.png + 0 + Assets\Tiles\FlipCycleTileMedium.png + CampusAppWP8 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml b/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml index 42b78fc9..25912698 100644 --- a/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml +++ b/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml @@ -1,136 +1,148 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml.cs b/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml.cs index fb12527f..3a788d23 100644 --- a/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml.cs @@ -1,53 +1,85 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using Windows.UI.Input; - -namespace CampusAppWP8.Pages -{ - public partial class StartPage : PhoneApplicationPage - { - public StartPage() - { - InitializeComponent(); - } - - private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e) - { - // Switch the placement of the buttons based on an orientation change. - if (this.Orientation == PageOrientation.LandscapeLeft || this.Orientation == PageOrientation.LandscapeRight) - { - OpenHoursAppButton.SetValue(Grid.RowProperty, 0); - OpenHoursAppButton.SetValue(Grid.ColumnProperty, 3); - - OSAAppButton.SetValue(Grid.RowProperty, 1); - OSAAppButton.SetValue(Grid.ColumnProperty, 3); - - LinkAppButton.SetValue(Grid.RowProperty, 2); - LinkAppButton.SetValue(Grid.ColumnProperty, 3); - ContentPanel.Margin = new Thickness(12, -24, 0, 0); - - } - // If not in portrait, move buttonList content to visible row and column. - else - { - OpenHoursAppButton.SetValue(Grid.RowProperty, 3); - OpenHoursAppButton.SetValue(Grid.ColumnProperty, 0); - - OSAAppButton.SetValue(Grid.RowProperty, 3); - OSAAppButton.SetValue(Grid.ColumnProperty, 1); - - LinkAppButton.SetValue(Grid.RowProperty, 3); - LinkAppButton.SetValue(Grid.ColumnProperty, 2); - ContentPanel.Margin = new Thickness(12, 0, 0, 0); - - } - } - } +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Navigation; +using Microsoft.Phone.Controls; +using Microsoft.Phone.Shell; +using Windows.UI.Input; + +namespace CampusAppWP8.Pages +{ + public partial class StartPage : PhoneApplicationPage + { + public StartPage() + { + InitializeComponent(); + + if ((Visibility)Application.Current.Resources["PhoneDarkThemeVisibility"] == Visibility.Visible) + this.SetIconThemeToDark(); + } + + private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e) + { + // Switch the placement of the buttons based on an orientation change. + if (this.Orientation == PageOrientation.LandscapeLeft || this.Orientation == PageOrientation.LandscapeRight) + { + OpenHoursAppButton.SetValue(Grid.RowProperty, 0); + OpenHoursAppButton.SetValue(Grid.ColumnProperty, 3); + + OSAAppButton.SetValue(Grid.RowProperty, 1); + OSAAppButton.SetValue(Grid.ColumnProperty, 3); + + LinkAppButton.SetValue(Grid.RowProperty, 2); + LinkAppButton.SetValue(Grid.ColumnProperty, 3); + ContentPanel.Margin = new Thickness(12, -24, 0, 0); + + } + // If not in portrait, move buttonList content to visible row and column. + else + { + OpenHoursAppButton.SetValue(Grid.RowProperty, 3); + OpenHoursAppButton.SetValue(Grid.ColumnProperty, 0); + + OSAAppButton.SetValue(Grid.RowProperty, 3); + OSAAppButton.SetValue(Grid.ColumnProperty, 1); + + LinkAppButton.SetValue(Grid.RowProperty, 3); + LinkAppButton.SetValue(Grid.ColumnProperty, 2); + ContentPanel.Margin = new Thickness(12, 0, 0, 0); + + } + } + + private void SetIconThemeToDark() + { + this.ImgLightCampus.Visibility = Visibility.Collapsed; + this.ImgLightDepartments.Visibility = Visibility.Collapsed; + this.ImgLightEvents.Visibility = Visibility.Collapsed; + this.ImgLightHomework.Visibility = Visibility.Collapsed; + this.ImgLightLectures.Visibility = Visibility.Collapsed; + this.ImgLightLink.Visibility = Visibility.Collapsed; + this.ImgLightMensa.Visibility = Visibility.Collapsed; + this.ImgLightNews.Visibility = Visibility.Collapsed; + this.ImgLightOpenhours.Visibility = Visibility.Collapsed; + this.ImgLightStudentcouncil.Visibility = Visibility.Collapsed; + this.ImgLightTimetable.Visibility = Visibility.Collapsed; + this.ImgLightWebmail.Visibility = Visibility.Collapsed; + + this.ImgDarkCampus.Visibility = Visibility.Visible; + this.ImgDarkDepartments.Visibility = Visibility.Visible; + this.ImgDarkEvents.Visibility = Visibility.Visible; + this.ImgDarkHomework.Visibility = Visibility.Visible; + this.ImgDarkLectures.Visibility = Visibility.Visible; + this.ImgDarkLink.Visibility = Visibility.Visible; + this.ImgDarkMensa.Visibility = Visibility.Visible; + this.ImgDarkNews.Visibility = Visibility.Visible; + this.ImgDarkOpenhours.Visibility = Visibility.Visible; + this.ImgDarkStudentcouncil.Visibility = Visibility.Visible; + this.ImgDarkTimetable.Visibility = Visibility.Visible; + this.ImgDarkWebmail.Visibility = Visibility.Visible; + } + } } \ No newline at end of file