From 82b8705a0cdbe4aef72a60d5bf9a1c5292e5679b Mon Sep 17 00:00:00 2001 From: watsonb8 Date: Sat, 30 Nov 2019 15:46:09 -0500 Subject: [PATCH] Using css after update (Fix your ish Microsoft) --- Aurora.gtk/Aurora.gtk.csproj | 6 +- Aurora.gtk/Program.cs | 5 +- Aurora/Aurora.csproj | 23 +++++--- .../NavigationMenu/NavigationMenu.css | 24 ++++++++ .../NavigationMenu/NavigationMenu.xaml | 56 ++++--------------- .../Services/PlayerService/PlayerService.cs | 15 +++-- 6 files changed, 60 insertions(+), 69 deletions(-) create mode 100644 Aurora/Design/Components/NavigationMenu/NavigationMenu.css diff --git a/Aurora.gtk/Aurora.gtk.csproj b/Aurora.gtk/Aurora.gtk.csproj index 756b750..fb54e8e 100644 --- a/Aurora.gtk/Aurora.gtk.csproj +++ b/Aurora.gtk/Aurora.gtk.csproj @@ -2,7 +2,6 @@ - Debug iPhoneSimulator @@ -145,9 +144,6 @@ Always - - Always - Always @@ -481,6 +477,7 @@ PreserveNewest + @@ -489,7 +486,6 @@ - diff --git a/Aurora.gtk/Program.cs b/Aurora.gtk/Program.cs index 129fae7..7dd898c 100644 --- a/Aurora.gtk/Program.cs +++ b/Aurora.gtk/Program.cs @@ -1,6 +1,5 @@ using System; using LibVLCSharp.Forms.Shared; -using Xamarin.Forms; using Xamarin.Forms.Platform.GTK; using Xamarin.Forms.Platform.GTK.Helpers; @@ -16,7 +15,9 @@ namespace Aurora.gtk // For some reason, Xamarin does not pick the LibVLCSharp.Form.Platforms.Gtk assembly as a renderer assembly. // Add it manually. - global::Xamarin.Forms.Forms.Init(new[] { typeof(LibVLCSharp.Forms.Platforms.GTK.VideoViewRenderer).Assembly }); + + //Also css doesn't work without adding the Xaml assembly + global::Xamarin.Forms.Forms.Init(new[] { typeof(LibVLCSharp.Forms.Platforms.GTK.VideoViewRenderer).Assembly, typeof(Xamarin.Forms.Xaml.ArrayExtension).Assembly }); if (PlatformHelper.GetGTKPlatform() == GTKPlatform.Windows) diff --git a/Aurora/Aurora.csproj b/Aurora/Aurora.csproj index 9d512ee..80d6431 100644 --- a/Aurora/Aurora.csproj +++ b/Aurora/Aurora.csproj @@ -8,17 +8,19 @@ true - - + + - - - - - + + + + runtime; build; native; contentfiles; analyzers; buildtransitive +all + + - + @@ -52,4 +54,9 @@ + + + PreserveNewest + + \ No newline at end of file diff --git a/Aurora/Design/Components/NavigationMenu/NavigationMenu.css b/Aurora/Design/Components/NavigationMenu/NavigationMenu.css new file mode 100644 index 0000000..8a0c249 --- /dev/null +++ b/Aurora/Design/Components/NavigationMenu/NavigationMenu.css @@ -0,0 +1,24 @@ +#Layout { + background-color: #232323; +} + +ListView { + background-color: #232323; + margin-left: 20; + margin-top: 20; +} + +#GroupTemplate Label { + color: white; + font-size: 14; + font-family: Courier New, Courier, monospace; + font-weight: 100; + margin-top: 500; +} + +#ItemTemplate label { + color: white; + font-size: 18; + font-family: Courier New, Courier, monospace; + font-weight: 400; +} diff --git a/Aurora/Design/Components/NavigationMenu/NavigationMenu.xaml b/Aurora/Design/Components/NavigationMenu/NavigationMenu.xaml index 3a42064..b78f553 100644 --- a/Aurora/Design/Components/NavigationMenu/NavigationMenu.xaml +++ b/Aurora/Design/Components/NavigationMenu/NavigationMenu.xaml @@ -3,67 +3,31 @@ xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Aurora.Design.Components.NavigationMenu.NavigationMenu"> + + + - + - - - - - - - - - - - - - - - - + - - - + + diff --git a/Aurora/Services/PlayerService/PlayerService.cs b/Aurora/Services/PlayerService/PlayerService.cs index ddab44a..139dc97 100644 --- a/Aurora/Services/PlayerService/PlayerService.cs +++ b/Aurora/Services/PlayerService/PlayerService.cs @@ -148,14 +148,13 @@ namespace Aurora.Services.PlayerService { _mediaPlayer.Position = newPosition; Console.WriteLine(string.Format("**Audio synced**")); - Console.WriteLine(string.Format("Remote Server Time {0}", new DateTime(sync.ServerTimeTicks).ToLongTimeString())); - Console.WriteLine(string.Format("Remote Track Time: {0}", sync.TrackPosition)); - Console.WriteLine(string.Format("Local Server Time: {0}", time.DateTime.ToLongTimeString())); - Console.WriteLine(string.Format("Local Track Time: {0}", _mediaPlayer.Position)); - Console.WriteLine(string.Format("Offset: {0}", offset)); - Console.WriteLine(string.Format("Old Position: {0}", oldPosition)); - Console.WriteLine(string.Format("New Position: {0}", newPosition)); - + // Console.WriteLine(string.Format("Remote Server Time {0}", new DateTime(sync.ServerTimeTicks).ToLongTimeString())); + // Console.WriteLine(string.Format("Remote Track Time: {0}", sync.TrackPosition)); + // Console.WriteLine(string.Format("Local Server Time: {0}", time.DateTime.ToLongTimeString())); + // Console.WriteLine(string.Format("Local Track Time: {0}", _mediaPlayer.Position)); + // Console.WriteLine(string.Format("Offset: {0}", offset)); + // Console.WriteLine(string.Format("Old Position: {0}", oldPosition)); + // Console.WriteLine(string.Format("New Position: {0}", newPosition)); } } }