diff --git a/App.xaml b/App.xaml new file mode 100644 index 0000000..f8a189c --- /dev/null +++ b/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/App.xaml.cs b/App.xaml.cs new file mode 100644 index 0000000..728c650 --- /dev/null +++ b/App.xaml.cs @@ -0,0 +1,122 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.ApplicationModel; +using Windows.ApplicationModel.Activation; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +namespace Translate +{ + /// + /// Zapewnia zachowanie specyficzne dla aplikacji, aby uzupełnić domyślną klasę aplikacji. + /// + sealed partial class App : Application + { + /// + /// Inicjuje pojedynczy obiekt aplikacji. Jest to pierwszy wiersz napisanego kodu + /// wykonywanego i jest logicznym odpowiednikiem metod main() lub WinMain(). + /// + public App() + { + this.InitializeComponent(); + this.Suspending += OnSuspending; + } + + /// + /// Wywoływane, gdy aplikacja jest uruchamiana normalnie przez użytkownika końcowego. Inne punkty wejścia + /// będą używane, kiedy aplikacja zostanie uruchomiona w celu otworzenia określonego pliku. + /// + /// Szczegóły dotyczące żądania uruchomienia i procesu. + protected override void OnLaunched(LaunchActivatedEventArgs e) + { + Frame rootFrame = Window.Current.Content as Frame; + + // Nie powtarzaj inicjowania aplikacji, gdy w oknie znajduje się już zawartość, + // upewnij się tylko, że okno jest aktywne + if (rootFrame == null) + { + // Utwórz ramkę, która będzie pełnić funkcję kontekstu nawigacji, i przejdź do pierwszej strony + rootFrame = new Frame(); + + rootFrame.NavigationFailed += OnNavigationFailed; + + if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) + { + //TODO: Załaduj stan z wstrzymanej wcześniej aplikacji + } + + // Umieść ramkę w bieżącym oknie + Window.Current.Content = rootFrame; + } + + if (e.PrelaunchActivated == false) + { + if (rootFrame.Content == null) + { + // Kiedy stos nawigacji nie jest przywrócony, przejdź do pierwszej strony, + // konfigurując nową stronę przez przekazanie wymaganych informacji jako + // parametr + rootFrame.Navigate(typeof(MainPage), e.Arguments); + } + + //----< Transparent Title >---- + + //using Windows.UI.ViewManagement; + + //window as default-size + + Windows.UI.ViewManagement.ApplicationViewTitleBar uwpTitleBar = Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TitleBar; + + uwpTitleBar.ButtonBackgroundColor = Windows.UI.Colors.Transparent; + + uwpTitleBar.BackgroundColor = Windows.UI.Colors.Transparent; + + + + //using Windows.ApplicationModel.Core + + Windows.ApplicationModel.Core.CoreApplicationViewTitleBar coreTitleBar = Windows.ApplicationModel.Core.CoreApplication.GetCurrentView().TitleBar; + + coreTitleBar.ExtendViewIntoTitleBar = true; + + //-------- + // Upewnij się, ze bieżące okno jest aktywne + Window.Current.Activate(); + } + } + + /// + /// Wywoływane, gdy nawigacja do konkretnej strony nie powiedzie się + /// + /// Ramka, do której nawigacja nie powiodła się + /// Szczegóły dotyczące niepowodzenia nawigacji + void OnNavigationFailed(object sender, NavigationFailedEventArgs e) + { + throw new Exception("Failed to load Page " + e.SourcePageType.FullName); + } + + /// + /// Wywoływane, gdy wykonanie aplikacji jest wstrzymywane. Stan aplikacji jest zapisywany + /// bez wiedzy o tym, czy aplikacja zostanie zakończona, czy wznowiona z niezmienioną zawartością + /// pamięci. + /// + /// Źródło żądania wstrzymania. + /// Szczegóły żądania wstrzymania. + private void OnSuspending(object sender, SuspendingEventArgs e) + { + var deferral = e.SuspendingOperation.GetDeferral(); + //TODO: Zapisz stan aplikacji i zatrzymaj wszelkie aktywności w tle + deferral.Complete(); + } + } +} diff --git a/Assets/LargeTile.scale-100.png b/Assets/LargeTile.scale-100.png new file mode 100644 index 0000000..2ae28c3 Binary files /dev/null and b/Assets/LargeTile.scale-100.png differ diff --git a/Assets/LargeTile.scale-125.png b/Assets/LargeTile.scale-125.png new file mode 100644 index 0000000..684e869 Binary files /dev/null and b/Assets/LargeTile.scale-125.png differ diff --git a/Assets/LargeTile.scale-150.png b/Assets/LargeTile.scale-150.png new file mode 100644 index 0000000..ac35312 Binary files /dev/null and b/Assets/LargeTile.scale-150.png differ diff --git a/Assets/LargeTile.scale-200.png b/Assets/LargeTile.scale-200.png new file mode 100644 index 0000000..c05db4f Binary files /dev/null and b/Assets/LargeTile.scale-200.png differ diff --git a/Assets/LargeTile.scale-400.png b/Assets/LargeTile.scale-400.png new file mode 100644 index 0000000..3652467 Binary files /dev/null and b/Assets/LargeTile.scale-400.png differ diff --git a/Assets/LockScreenLogo.scale-200.png b/Assets/LockScreenLogo.scale-200.png new file mode 100644 index 0000000..735f57a Binary files /dev/null and b/Assets/LockScreenLogo.scale-200.png differ diff --git a/Assets/SmallTile.scale-100.png b/Assets/SmallTile.scale-100.png new file mode 100644 index 0000000..35fb139 Binary files /dev/null and b/Assets/SmallTile.scale-100.png differ diff --git a/Assets/SmallTile.scale-125.png b/Assets/SmallTile.scale-125.png new file mode 100644 index 0000000..fcec4ad Binary files /dev/null and b/Assets/SmallTile.scale-125.png differ diff --git a/Assets/SmallTile.scale-150.png b/Assets/SmallTile.scale-150.png new file mode 100644 index 0000000..cba9e94 Binary files /dev/null and b/Assets/SmallTile.scale-150.png differ diff --git a/Assets/SmallTile.scale-200.png b/Assets/SmallTile.scale-200.png new file mode 100644 index 0000000..da9ae01 Binary files /dev/null and b/Assets/SmallTile.scale-200.png differ diff --git a/Assets/SmallTile.scale-400.png b/Assets/SmallTile.scale-400.png new file mode 100644 index 0000000..5448043 Binary files /dev/null and b/Assets/SmallTile.scale-400.png differ diff --git a/Assets/SplashScreen.scale-100.png b/Assets/SplashScreen.scale-100.png new file mode 100644 index 0000000..1abc155 Binary files /dev/null and b/Assets/SplashScreen.scale-100.png differ diff --git a/Assets/SplashScreen.scale-125.png b/Assets/SplashScreen.scale-125.png new file mode 100644 index 0000000..d65b575 Binary files /dev/null and b/Assets/SplashScreen.scale-125.png differ diff --git a/Assets/SplashScreen.scale-150.png b/Assets/SplashScreen.scale-150.png new file mode 100644 index 0000000..e04089b Binary files /dev/null and b/Assets/SplashScreen.scale-150.png differ diff --git a/Assets/SplashScreen.scale-200.png b/Assets/SplashScreen.scale-200.png new file mode 100644 index 0000000..82f74f6 Binary files /dev/null and b/Assets/SplashScreen.scale-200.png differ diff --git a/Assets/SplashScreen.scale-400.png b/Assets/SplashScreen.scale-400.png new file mode 100644 index 0000000..932c4d1 Binary files /dev/null and b/Assets/SplashScreen.scale-400.png differ diff --git a/Assets/Square150x150Logo.scale-100.png b/Assets/Square150x150Logo.scale-100.png new file mode 100644 index 0000000..de35194 Binary files /dev/null and b/Assets/Square150x150Logo.scale-100.png differ diff --git a/Assets/Square150x150Logo.scale-125.png b/Assets/Square150x150Logo.scale-125.png new file mode 100644 index 0000000..58f143f Binary files /dev/null and b/Assets/Square150x150Logo.scale-125.png differ diff --git a/Assets/Square150x150Logo.scale-150.png b/Assets/Square150x150Logo.scale-150.png new file mode 100644 index 0000000..7482510 Binary files /dev/null and b/Assets/Square150x150Logo.scale-150.png differ diff --git a/Assets/Square150x150Logo.scale-200.png b/Assets/Square150x150Logo.scale-200.png new file mode 100644 index 0000000..84b1a86 Binary files /dev/null and b/Assets/Square150x150Logo.scale-200.png differ diff --git a/Assets/Square150x150Logo.scale-400.png b/Assets/Square150x150Logo.scale-400.png new file mode 100644 index 0000000..733433f Binary files /dev/null and b/Assets/Square150x150Logo.scale-400.png differ diff --git a/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png b/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png new file mode 100644 index 0000000..831e1e5 Binary files /dev/null and b/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png differ diff --git a/Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png b/Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png new file mode 100644 index 0000000..78de2d8 Binary files /dev/null and b/Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png differ diff --git a/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png b/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png new file mode 100644 index 0000000..3558627 Binary files /dev/null and b/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png differ diff --git a/Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png b/Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png new file mode 100644 index 0000000..49b47b1 Binary files /dev/null and b/Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png differ diff --git a/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png b/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png new file mode 100644 index 0000000..bd78bb6 Binary files /dev/null and b/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png differ diff --git a/Assets/Square44x44Logo.altform-unplated_targetsize-16.png b/Assets/Square44x44Logo.altform-unplated_targetsize-16.png new file mode 100644 index 0000000..831e1e5 Binary files /dev/null and b/Assets/Square44x44Logo.altform-unplated_targetsize-16.png differ diff --git a/Assets/Square44x44Logo.altform-unplated_targetsize-256.png b/Assets/Square44x44Logo.altform-unplated_targetsize-256.png new file mode 100644 index 0000000..3558627 Binary files /dev/null and b/Assets/Square44x44Logo.altform-unplated_targetsize-256.png differ diff --git a/Assets/Square44x44Logo.altform-unplated_targetsize-32.png b/Assets/Square44x44Logo.altform-unplated_targetsize-32.png new file mode 100644 index 0000000..49b47b1 Binary files /dev/null and b/Assets/Square44x44Logo.altform-unplated_targetsize-32.png differ diff --git a/Assets/Square44x44Logo.altform-unplated_targetsize-48.png b/Assets/Square44x44Logo.altform-unplated_targetsize-48.png new file mode 100644 index 0000000..bd78bb6 Binary files /dev/null and b/Assets/Square44x44Logo.altform-unplated_targetsize-48.png differ diff --git a/Assets/Square44x44Logo.scale-100.png b/Assets/Square44x44Logo.scale-100.png new file mode 100644 index 0000000..febeb37 Binary files /dev/null and b/Assets/Square44x44Logo.scale-100.png differ diff --git a/Assets/Square44x44Logo.scale-125.png b/Assets/Square44x44Logo.scale-125.png new file mode 100644 index 0000000..742fb5d Binary files /dev/null and b/Assets/Square44x44Logo.scale-125.png differ diff --git a/Assets/Square44x44Logo.scale-150.png b/Assets/Square44x44Logo.scale-150.png new file mode 100644 index 0000000..fdf5abe Binary files /dev/null and b/Assets/Square44x44Logo.scale-150.png differ diff --git a/Assets/Square44x44Logo.scale-200.png b/Assets/Square44x44Logo.scale-200.png new file mode 100644 index 0000000..e83d62b Binary files /dev/null and b/Assets/Square44x44Logo.scale-200.png differ diff --git a/Assets/Square44x44Logo.scale-400.png b/Assets/Square44x44Logo.scale-400.png new file mode 100644 index 0000000..07c7de9 Binary files /dev/null and b/Assets/Square44x44Logo.scale-400.png differ diff --git a/Assets/Square44x44Logo.targetsize-16.png b/Assets/Square44x44Logo.targetsize-16.png new file mode 100644 index 0000000..fb1cd73 Binary files /dev/null and b/Assets/Square44x44Logo.targetsize-16.png differ diff --git a/Assets/Square44x44Logo.targetsize-24.png b/Assets/Square44x44Logo.targetsize-24.png new file mode 100644 index 0000000..c49cc46 Binary files /dev/null and b/Assets/Square44x44Logo.targetsize-24.png differ diff --git a/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/Assets/Square44x44Logo.targetsize-24_altform-unplated.png new file mode 100644 index 0000000..78de2d8 Binary files /dev/null and b/Assets/Square44x44Logo.targetsize-24_altform-unplated.png differ diff --git a/Assets/Square44x44Logo.targetsize-256.png b/Assets/Square44x44Logo.targetsize-256.png new file mode 100644 index 0000000..2269d16 Binary files /dev/null and b/Assets/Square44x44Logo.targetsize-256.png differ diff --git a/Assets/Square44x44Logo.targetsize-32.png b/Assets/Square44x44Logo.targetsize-32.png new file mode 100644 index 0000000..24f730a Binary files /dev/null and b/Assets/Square44x44Logo.targetsize-32.png differ diff --git a/Assets/Square44x44Logo.targetsize-48.png b/Assets/Square44x44Logo.targetsize-48.png new file mode 100644 index 0000000..34310c2 Binary files /dev/null and b/Assets/Square44x44Logo.targetsize-48.png differ diff --git a/Assets/StoreLogo.backup.png b/Assets/StoreLogo.backup.png new file mode 100644 index 0000000..7385b56 Binary files /dev/null and b/Assets/StoreLogo.backup.png differ diff --git a/Assets/StoreLogo.scale-100.png b/Assets/StoreLogo.scale-100.png new file mode 100644 index 0000000..552345e Binary files /dev/null and b/Assets/StoreLogo.scale-100.png differ diff --git a/Assets/StoreLogo.scale-125.png b/Assets/StoreLogo.scale-125.png new file mode 100644 index 0000000..47ef083 Binary files /dev/null and b/Assets/StoreLogo.scale-125.png differ diff --git a/Assets/StoreLogo.scale-150.png b/Assets/StoreLogo.scale-150.png new file mode 100644 index 0000000..0e857a4 Binary files /dev/null and b/Assets/StoreLogo.scale-150.png differ diff --git a/Assets/StoreLogo.scale-200.png b/Assets/StoreLogo.scale-200.png new file mode 100644 index 0000000..06c42a6 Binary files /dev/null and b/Assets/StoreLogo.scale-200.png differ diff --git a/Assets/StoreLogo.scale-400.png b/Assets/StoreLogo.scale-400.png new file mode 100644 index 0000000..6be9a91 Binary files /dev/null and b/Assets/StoreLogo.scale-400.png differ diff --git a/Assets/Wide310x150Logo.scale-100.png b/Assets/Wide310x150Logo.scale-100.png new file mode 100644 index 0000000..92890b7 Binary files /dev/null and b/Assets/Wide310x150Logo.scale-100.png differ diff --git a/Assets/Wide310x150Logo.scale-125.png b/Assets/Wide310x150Logo.scale-125.png new file mode 100644 index 0000000..808c140 Binary files /dev/null and b/Assets/Wide310x150Logo.scale-125.png differ diff --git a/Assets/Wide310x150Logo.scale-150.png b/Assets/Wide310x150Logo.scale-150.png new file mode 100644 index 0000000..141525d Binary files /dev/null and b/Assets/Wide310x150Logo.scale-150.png differ diff --git a/Assets/Wide310x150Logo.scale-200.png b/Assets/Wide310x150Logo.scale-200.png new file mode 100644 index 0000000..1abc155 Binary files /dev/null and b/Assets/Wide310x150Logo.scale-200.png differ diff --git a/Assets/Wide310x150Logo.scale-400.png b/Assets/Wide310x150Logo.scale-400.png new file mode 100644 index 0000000..82f74f6 Binary files /dev/null and b/Assets/Wide310x150Logo.scale-400.png differ diff --git a/MainPage.xaml b/MainPage.xaml new file mode 100644 index 0000000..fa3ca07 --- /dev/null +++ b/MainPage.xaml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + diff --git a/MainPage.xaml.cs b/MainPage.xaml.cs new file mode 100644 index 0000000..cb335e9 --- /dev/null +++ b/MainPage.xaml.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +//Szablon elementu Pusta strona jest udokumentowany na stronie https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x415 + +namespace Translate +{ + /// + /// Pusta strona, która może być używana samodzielnie lub do której można nawigować wewnątrz ramki. + /// + public sealed partial class MainPage : Page + { + public MainPage() + { + this.InitializeComponent(); + Window.Current.SetTitleBar(TitleBar); + } + + private void SettingsButton_Click(object sender, RoutedEventArgs e) + { + + } + } +} diff --git a/Package.appxmanifest b/Package.appxmanifest new file mode 100644 index 0000000..9b52ce0 --- /dev/null +++ b/Package.appxmanifest @@ -0,0 +1,49 @@ + + + + + + + + + + Translate + Bruno + Assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e1f35f0 --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Ogólne informacje o zestawie są kontrolowane poprzez następujący +// zestaw atrybutów. Zmień wartości tych atrybutów, aby zmodyfikować informacje +// powiązane z zestawem. +[assembly: AssemblyTitle("Translate")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Translate")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Informacje o wersji zestawu zawierają następujące cztery wartości: +// +// Wersja główna +// Wersja pomocnicza +// Numer kompilacji +// Poprawka +// +// Możesz określić wszystkie wartości lub użyć domyślnych numerów kompilacji i poprawki +// przy użyciu symbolu „*”, tak jak pokazano poniżej: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: ComVisible(false)] \ No newline at end of file diff --git a/Properties/Default.rd.xml b/Properties/Default.rd.xml new file mode 100644 index 0000000..c36f9e7 --- /dev/null +++ b/Properties/Default.rd.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/Translate.csproj b/Translate.csproj new file mode 100644 index 0000000..3c9f78d --- /dev/null +++ b/Translate.csproj @@ -0,0 +1,215 @@ + + + + + Debug + x86 + {06BE15E6-290E-45AF-A085-05A367D11522} + AppContainerExe + Properties + Translate + Translate + pl-PL + UAP + 10.0.22000.0 + 10.0.17763.0 + 14 + 512 + {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + true + false + + + true + bin\x86\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x86 + false + prompt + true + + + bin\x86\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x86 + false + prompt + true + true + + + true + bin\ARM\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM + false + prompt + true + + + bin\ARM\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM + false + prompt + true + true + + + true + bin\ARM64\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM64 + false + prompt + true + true + + + bin\ARM64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM64 + false + prompt + true + true + + + true + bin\x64\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x64 + false + prompt + true + + + bin\x64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x64 + false + prompt + true + true + + + PackageReference + + + + App.xaml + + + MainPage.xaml + + + + + + Designer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + + + 6.2.14 + + + 2.8.3 + + + + 14.0 + + + + \ No newline at end of file diff --git a/Translate.csproj.user b/Translate.csproj.user new file mode 100644 index 0000000..2943e55 --- /dev/null +++ b/Translate.csproj.user @@ -0,0 +1,13 @@ + + + + C:\Users\Bruno\Downloads\logo.png + C:\Users\Bruno\Downloads\logo.png + C:\Users\Bruno\Downloads\logo.png + C:\Users\Bruno\Downloads\logo.png + C:\Users\Bruno\Downloads\logo.png + C:\Users\Bruno\Downloads\logo.png + C:\Users\Bruno\Downloads\logo.png + C:\Users\Bruno\Downloads\logo.png + + \ No newline at end of file