From 2a718b77399b18064f74409a6aad932bdddaee29 Mon Sep 17 00:00:00 2001 From: Daniel Monettelli Date: Tue, 9 Jan 2024 00:48:58 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20[Code]=20Updated=20ChatGPT=20in?= =?UTF-8?q?=20.NET=208?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/FUNDING.yml | 3 + .github/dependabot.yml | 11 + .github/workflows/mobile.yml | 42 +- ChatGPT/App.xaml | 1 + ChatGPT/App.xaml.cs | 17 +- ChatGPT/AppShell.xaml | 3 + ChatGPT/AppShell.xaml.cs | 15 +- ChatGPT/ChatGPT.csproj | 134 +++--- ChatGPT/ChatGPT.sln | 18 +- ChatGPT/Constants/APIConstants.cs | 14 +- ChatGPT/MauiProgram.cs | 32 +- ChatGPT/Platforms/Android/MainActivity.cs | 9 +- ChatGPT/Platforms/Android/MainApplication.cs | 19 +- ChatGPT/Platforms/MacCatalyst/AppDelegate.cs | 11 +- .../Platforms/MacCatalyst/Entitlements.plist | 14 + ChatGPT/Platforms/MacCatalyst/Info.plist | 10 +- ChatGPT/Platforms/MacCatalyst/Program.cs | 21 +- ChatGPT/Platforms/Tizen/Main.cs | 21 +- ChatGPT/Platforms/Windows/App.xaml.cs | 33 +- .../Platforms/Windows/Package.appxmanifest | 2 +- ChatGPT/Platforms/iOS/AppDelegate.cs | 11 +- ChatGPT/Platforms/iOS/Program.cs | 21 +- ChatGPT/Resources/AppIcon/appicon.svg | 5 +- ChatGPT/Resources/AppIcon/appiconfg.svg | 9 +- ChatGPT/Resources/Splash/splash.svg | 18 +- ChatGPT/Resources/Styles/Colors.xaml | 64 +++ ChatGPT/Resources/Styles/Styles.xaml | 426 ++++++++++++++++++ ChatGPT/Views/ConversationView.xaml | 7 +- .../Templates/BotMessageItemTemplate.xaml | 4 +- README.md | 4 +- 30 files changed, 775 insertions(+), 224 deletions(-) create mode 100644 .github/FUNDING.yml create mode 100644 .github/dependabot.yml create mode 100644 ChatGPT/Platforms/MacCatalyst/Entitlements.plist create mode 100644 ChatGPT/Resources/Styles/Styles.xaml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..6283f62 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +github: [danielmonettelli] \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1919f5c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "nuget" + directory: "/ChatGPT/" + schedule: + interval: "daily" \ No newline at end of file diff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.yml index 6a4367f..4358851 100644 --- a/.github/workflows/mobile.yml +++ b/.github/workflows/mobile.yml @@ -29,10 +29,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup .NET v7.0 - uses: actions/setup-dotnet@v3 + - name: Setup .NET v8.0 + uses: actions/setup-dotnet@v4.0.0 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" - name: Install .NET MAUI Workload run: | @@ -44,18 +44,18 @@ jobs: - name: Build Android App run: | - dotnet build ./ChatGPT -f net7.0-android + dotnet build ./ChatGPT -f net8.0-android Build_iOS: - runs-on: macos-12 + runs-on: macos-13 steps: - uses: actions/checkout@v3 - - name: Setup .NET v7.0 - uses: actions/setup-dotnet@v3 + - name: Setup .NET v8.0 + uses: actions/setup-dotnet@v4.0.0 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" - name: Install .NET MAUI Workload run: | @@ -66,24 +66,24 @@ jobs: dotnet restore ./ChatGPT - name: Install Xcode - uses: maxim-lobanov/setup-xcode@v1.5.1 + uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: latest + xcode-version: latest-stable - name: Build iOS App run: | - dotnet build ./ChatGPT -f net7.0-ios + dotnet build ./ChatGPT -f net8.0-ios Build_MacCatalyst: - runs-on: macos-12 + runs-on: macos-13 steps: - uses: actions/checkout@v3 - - name: Setup .NET v7.0 - uses: actions/setup-dotnet@v3 + - name: Setup .NET v8.0 + uses: actions/setup-dotnet@v4.0.0 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" - name: Install .NET MAUI Workload run: | @@ -94,13 +94,13 @@ jobs: dotnet restore ./ChatGPT - name: Install Xcode - uses: maxim-lobanov/setup-xcode@v1.5.1 + uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: latest + xcode-version: latest-stable - name: Build macOS App run: | - dotnet build ./ChatGPT -f net7.0-maccatalyst + dotnet build ./ChatGPT -f net8.0-maccatalyst Build_Windows: runs-on: windows-latest @@ -113,10 +113,10 @@ jobs: distribution: 'microsoft' java-version: '11' - - name: Setup .NET v7.0 - uses: actions/setup-dotnet@v3 + - name: Setup .NET v8.0 + uses: actions/setup-dotnet@v4.0.0 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" - name: Install .NET MAUI Workload run: | diff --git a/ChatGPT/App.xaml b/ChatGPT/App.xaml index 5c5b0a8..1fec85a 100644 --- a/ChatGPT/App.xaml +++ b/ChatGPT/App.xaml @@ -9,6 +9,7 @@ + diff --git a/ChatGPT/App.xaml.cs b/ChatGPT/App.xaml.cs index 363576d..82f35f9 100644 --- a/ChatGPT/App.xaml.cs +++ b/ChatGPT/App.xaml.cs @@ -1,11 +1,12 @@ -namespace ChatGPT; - -public partial class App : Application +namespace ChatGPT { - public App() - { - InitializeComponent(); + public partial class App : Application + { + public App() + { + InitializeComponent(); - MainPage = new AppShell(); - } + MainPage = new AppShell(); + } + } } diff --git a/ChatGPT/AppShell.xaml b/ChatGPT/AppShell.xaml index 13e1768..e330b09 100644 --- a/ChatGPT/AppShell.xaml +++ b/ChatGPT/AppShell.xaml @@ -3,11 +3,14 @@ x:Class="ChatGPT.AppShell" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" + xmlns:local="clr-namespace:ChatGPT" xmlns:views="clr-namespace:ChatGPT.Views" + Title="ChatGPT" Shell.FlyoutBehavior="Disabled"> + diff --git a/ChatGPT/AppShell.xaml.cs b/ChatGPT/AppShell.xaml.cs index 8b1b8a0..5662200 100644 --- a/ChatGPT/AppShell.xaml.cs +++ b/ChatGPT/AppShell.xaml.cs @@ -1,9 +1,10 @@ -namespace ChatGPT; - -public partial class AppShell : Shell +namespace ChatGPT { - public AppShell() - { - InitializeComponent(); - } + public partial class AppShell : Shell + { + public AppShell() + { + InitializeComponent(); + } + } } diff --git a/ChatGPT/ChatGPT.csproj b/ChatGPT/ChatGPT.csproj index b614480..d19b516 100644 --- a/ChatGPT/ChatGPT.csproj +++ b/ChatGPT/ChatGPT.csproj @@ -1,22 +1,30 @@  - net7.0-android;net7.0-ios;net7.0-maccatalyst - $(TargetFrameworks);net7.0-windows10.0.19041.0 + net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 - + + + e + + Exe ChatGPT true true enable + enable ChatGPT - com.companyname.chatgpt - 6757cb1e-1461-4665-abf6-24e10b9fc104 + com.danielmonettelli.chatgpt 1.0 @@ -30,65 +38,61 @@ 6.5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ConversationView.xaml - - - - - - MSBuild:Compile - - - MSBuild:Compile - - - MSBuild:Compile - - - MSBuild:Compile - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MSBuild:Compile + + + MSBuild:Compile + + + MSBuild:Compile + + + MSBuild:Compile + + diff --git a/ChatGPT/ChatGPT.sln b/ChatGPT/ChatGPT.sln index 4894324..b3cf089 100644 --- a/ChatGPT/ChatGPT.sln +++ b/ChatGPT/ChatGPT.sln @@ -1,9 +1,9 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 -VisualStudioVersion = 17.0.31611.283 +VisualStudioVersion = 17.8.34330.188 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ChatGPT", "ChatGPT.csproj", "{A8A52DCB-72EA-4A12-AADA-F7BBC61EE537}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChatGPT", "ChatGPT.csproj", "{CEA4AB77-84CB-4662-A5B8-7D71182A5296}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -11,17 +11,17 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {A8A52DCB-72EA-4A12-AADA-F7BBC61EE537}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A8A52DCB-72EA-4A12-AADA-F7BBC61EE537}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A8A52DCB-72EA-4A12-AADA-F7BBC61EE537}.Debug|Any CPU.Deploy.0 = Debug|Any CPU - {A8A52DCB-72EA-4A12-AADA-F7BBC61EE537}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A8A52DCB-72EA-4A12-AADA-F7BBC61EE537}.Release|Any CPU.Build.0 = Release|Any CPU - {A8A52DCB-72EA-4A12-AADA-F7BBC61EE537}.Release|Any CPU.Deploy.0 = Release|Any CPU + {CEA4AB77-84CB-4662-A5B8-7D71182A5296}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CEA4AB77-84CB-4662-A5B8-7D71182A5296}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CEA4AB77-84CB-4662-A5B8-7D71182A5296}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {CEA4AB77-84CB-4662-A5B8-7D71182A5296}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CEA4AB77-84CB-4662-A5B8-7D71182A5296}.Release|Any CPU.Build.0 = Release|Any CPU + {CEA4AB77-84CB-4662-A5B8-7D71182A5296}.Release|Any CPU.Deploy.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572} + SolutionGuid = {B0B0D1C3-E4DF-4A6F-B3E3-67C9107DF77F} EndGlobalSection EndGlobal diff --git a/ChatGPT/Constants/APIConstants.cs b/ChatGPT/Constants/APIConstants.cs index aeee1e2..45b5835 100644 --- a/ChatGPT/Constants/APIConstants.cs +++ b/ChatGPT/Constants/APIConstants.cs @@ -1,11 +1,11 @@ namespace ChatGPT.Constants { - public static class APIConstants - { - public const string OpenAIUrl = "https://api.openai.com/"; - public const string OpenAIToken = "OPENAI_API_KEY_HERE"; + public static class APIConstants + { + public const string OpenAIUrl = "https://api.openai.com/"; + public const string OpenAIToken = "OPENAI_API_KEY_HERE"; - public const string OpenAIEndpoint_Completions = "v1/completions"; - public const string OpenAIEndpoint_Generations = "v1/images/generations"; - } + public const string OpenAIEndpoint_Completions = "v1/completions"; + public const string OpenAIEndpoint_Generations = "v1/images/generations"; + } } diff --git a/ChatGPT/MauiProgram.cs b/ChatGPT/MauiProgram.cs index 9c72d6f..348090b 100644 --- a/ChatGPT/MauiProgram.cs +++ b/ChatGPT/MauiProgram.cs @@ -5,27 +5,29 @@ using Microsoft.Extensions.Logging; using SkiaSharp.Views.Maui.Controls.Hosting; -namespace ChatGPT; -public static class MauiProgram +namespace ChatGPT { - public static MauiApp CreateMauiApp() + public static class MauiProgram { - var builder = MauiApp.CreateBuilder(); - builder.UseMauiApp() - .UseSkiaSharp() - .ConfigureFonts(fonts => + public static MauiApp CreateMauiApp() { - fonts.AddFont("Mona-Sans-Bold.ttf", "MonaSansBold"); - fonts.AddFont("Mona-Sans-Medium.ttf", "MonaSansMedium"); - }).UseMauiCommunityToolkit(); + var builder = MauiApp.CreateBuilder(); + builder.UseMauiApp() + .UseSkiaSharp() + .ConfigureFonts(fonts => + { + fonts.AddFont("Mona-Sans-Bold.ttf", "MonaSansBold"); + fonts.AddFont("Mona-Sans-Medium.ttf", "MonaSansMedium"); + }).UseMauiCommunityToolkit(); - builder.Services.AddSingleton(); - builder.Services.AddTransient(); - builder.Services.AddSingleton(); + builder.Services.AddSingleton(); + builder.Services.AddTransient(); + builder.Services.AddSingleton(); #if DEBUG - builder.Logging.AddDebug(); + builder.Logging.AddDebug(); #endif - return builder.Build(); + return builder.Build(); + } } } \ No newline at end of file diff --git a/ChatGPT/Platforms/Android/MainActivity.cs b/ChatGPT/Platforms/Android/MainActivity.cs index 94e0d0b..8fcdaac 100644 --- a/ChatGPT/Platforms/Android/MainActivity.cs +++ b/ChatGPT/Platforms/Android/MainActivity.cs @@ -2,9 +2,10 @@ using Android.Content.PM; using Android.OS; -namespace ChatGPT; - -[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] -public class MainActivity : MauiAppCompatActivity +namespace ChatGPT { + [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] + public class MainActivity : MauiAppCompatActivity + { + } } diff --git a/ChatGPT/Platforms/Android/MainApplication.cs b/ChatGPT/Platforms/Android/MainApplication.cs index af1a2d9..eb6c375 100644 --- a/ChatGPT/Platforms/Android/MainApplication.cs +++ b/ChatGPT/Platforms/Android/MainApplication.cs @@ -1,15 +1,16 @@ using Android.App; using Android.Runtime; -namespace ChatGPT; - -[Application] -public class MainApplication : MauiApplication +namespace ChatGPT { - public MainApplication(IntPtr handle, JniHandleOwnership ownership) - : base(handle, ownership) - { - } + [Application] + public class MainApplication : MauiApplication + { + public MainApplication(IntPtr handle, JniHandleOwnership ownership) + : base(handle, ownership) + { + } - protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } } diff --git a/ChatGPT/Platforms/MacCatalyst/AppDelegate.cs b/ChatGPT/Platforms/MacCatalyst/AppDelegate.cs index 0adcad5..6b4e13a 100644 --- a/ChatGPT/Platforms/MacCatalyst/AppDelegate.cs +++ b/ChatGPT/Platforms/MacCatalyst/AppDelegate.cs @@ -1,9 +1,10 @@ using Foundation; -namespace ChatGPT; - -[Register("AppDelegate")] -public class AppDelegate : MauiUIApplicationDelegate +namespace ChatGPT { - protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + [Register("AppDelegate")] + public class AppDelegate : MauiUIApplicationDelegate + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } } diff --git a/ChatGPT/Platforms/MacCatalyst/Entitlements.plist b/ChatGPT/Platforms/MacCatalyst/Entitlements.plist new file mode 100644 index 0000000..de4adc9 --- /dev/null +++ b/ChatGPT/Platforms/MacCatalyst/Entitlements.plist @@ -0,0 +1,14 @@ + + + + + + + com.apple.security.app-sandbox + + + com.apple.security.network.client + + + + diff --git a/ChatGPT/Platforms/MacCatalyst/Info.plist b/ChatGPT/Platforms/MacCatalyst/Info.plist index c96dd0a..7268977 100644 --- a/ChatGPT/Platforms/MacCatalyst/Info.plist +++ b/ChatGPT/Platforms/MacCatalyst/Info.plist @@ -2,9 +2,17 @@ + + + + + + + + + UIDeviceFamily - 1 2 UIRequiredDeviceCapabilities diff --git a/ChatGPT/Platforms/MacCatalyst/Program.cs b/ChatGPT/Platforms/MacCatalyst/Program.cs index 53d3132..140bf8d 100644 --- a/ChatGPT/Platforms/MacCatalyst/Program.cs +++ b/ChatGPT/Platforms/MacCatalyst/Program.cs @@ -1,15 +1,16 @@ using ObjCRuntime; using UIKit; -namespace ChatGPT; - -public class Program +namespace ChatGPT { - // This is the main entry point of the application. - static void Main(string[] args) - { - // if you want to use a different Application Delegate class from "AppDelegate" - // you can specify it here. - UIApplication.Main(args, null, typeof(AppDelegate)); - } + public class Program + { + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, typeof(AppDelegate)); + } + } } diff --git a/ChatGPT/Platforms/Tizen/Main.cs b/ChatGPT/Platforms/Tizen/Main.cs index 4d53985..0627431 100644 --- a/ChatGPT/Platforms/Tizen/Main.cs +++ b/ChatGPT/Platforms/Tizen/Main.cs @@ -1,16 +1,17 @@ -using System; using Microsoft.Maui; using Microsoft.Maui.Hosting; +using System; -namespace ChatGPT; - -class Program : MauiApplication +namespace ChatGPT { - protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + internal class Program : MauiApplication + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); - static void Main(string[] args) - { - var app = new Program(); - app.Run(args); - } + static void Main(string[] args) + { + var app = new Program(); + app.Run(args); + } + } } diff --git a/ChatGPT/Platforms/Windows/App.xaml.cs b/ChatGPT/Platforms/Windows/App.xaml.cs index 8519476..a02f97a 100644 --- a/ChatGPT/Platforms/Windows/App.xaml.cs +++ b/ChatGPT/Platforms/Windows/App.xaml.cs @@ -3,22 +3,23 @@ // To learn more about WinUI, the WinUI project structure, // and more about our project templates, see: http://aka.ms/winui-project-info. -namespace ChatGPT.WinUI; - -/// -/// Provides application-specific behavior to supplement the default Application class. -/// -public partial class App : MauiWinUIApplication +namespace ChatGPT.WinUI { - /// - /// Initializes the singleton application object. This is the first line of authored code - /// executed, and as such is the logical equivalent of main() or WinMain(). - /// - public App() - { - this.InitializeComponent(); - } + /// + /// Provides application-specific behavior to supplement the default Application class. + /// + public partial class App : MauiWinUIApplication + { + /// + /// Initializes the singleton application object. This is the first line of authored code + /// executed, and as such is the logical equivalent of main() or WinMain(). + /// + public App() + { + this.InitializeComponent(); + } - protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); -} + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} diff --git a/ChatGPT/Platforms/Windows/Package.appxmanifest b/ChatGPT/Platforms/Windows/Package.appxmanifest index 8c59aa5..ed0eff3 100644 --- a/ChatGPT/Platforms/Windows/Package.appxmanifest +++ b/ChatGPT/Platforms/Windows/Package.appxmanifest @@ -8,7 +8,7 @@ - + $placeholder$ diff --git a/ChatGPT/Platforms/iOS/AppDelegate.cs b/ChatGPT/Platforms/iOS/AppDelegate.cs index 0adcad5..6b4e13a 100644 --- a/ChatGPT/Platforms/iOS/AppDelegate.cs +++ b/ChatGPT/Platforms/iOS/AppDelegate.cs @@ -1,9 +1,10 @@ using Foundation; -namespace ChatGPT; - -[Register("AppDelegate")] -public class AppDelegate : MauiUIApplicationDelegate +namespace ChatGPT { - protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + [Register("AppDelegate")] + public class AppDelegate : MauiUIApplicationDelegate + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } } diff --git a/ChatGPT/Platforms/iOS/Program.cs b/ChatGPT/Platforms/iOS/Program.cs index 53d3132..140bf8d 100644 --- a/ChatGPT/Platforms/iOS/Program.cs +++ b/ChatGPT/Platforms/iOS/Program.cs @@ -1,15 +1,16 @@ using ObjCRuntime; using UIKit; -namespace ChatGPT; - -public class Program +namespace ChatGPT { - // This is the main entry point of the application. - static void Main(string[] args) - { - // if you want to use a different Application Delegate class from "AppDelegate" - // you can specify it here. - UIApplication.Main(args, null, typeof(AppDelegate)); - } + public class Program + { + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, typeof(AppDelegate)); + } + } } diff --git a/ChatGPT/Resources/AppIcon/appicon.svg b/ChatGPT/Resources/AppIcon/appicon.svg index 15d83ee..f609087 100644 --- a/ChatGPT/Resources/AppIcon/appicon.svg +++ b/ChatGPT/Resources/AppIcon/appicon.svg @@ -1,4 +1 @@ - - - - \ No newline at end of file + \ No newline at end of file diff --git a/ChatGPT/Resources/AppIcon/appiconfg.svg b/ChatGPT/Resources/AppIcon/appiconfg.svg index aba0d4b..1f72620 100644 --- a/ChatGPT/Resources/AppIcon/appiconfg.svg +++ b/ChatGPT/Resources/AppIcon/appiconfg.svg @@ -1,8 +1 @@ - - - - - - - - + \ No newline at end of file diff --git a/ChatGPT/Resources/Splash/splash.svg b/ChatGPT/Resources/Splash/splash.svg index 533637d..0e2e7ed 100644 --- a/ChatGPT/Resources/Splash/splash.svg +++ b/ChatGPT/Resources/Splash/splash.svg @@ -1,8 +1,16 @@ - - - + + + + + - - + + + + + + + + diff --git a/ChatGPT/Resources/Styles/Colors.xaml b/ChatGPT/Resources/Styles/Colors.xaml index ec90088..d795b34 100644 --- a/ChatGPT/Resources/Styles/Colors.xaml +++ b/ChatGPT/Resources/Styles/Colors.xaml @@ -38,4 +38,68 @@ White + + + #512BD4 + + #242424 + #DFD8F7 + #9880e5 + #2B0B98 + + White + Black + #D600AA + #190649 + #1f1f1f + + #E1E1E1 + #C8C8C8 + #ACACAC + #919191 + #6E6E6E + #404040 + #212121 + #141414 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ChatGPT/Resources/Styles/Styles.xaml b/ChatGPT/Resources/Styles/Styles.xaml new file mode 100644 index 0000000..e0d36bb --- /dev/null +++ b/ChatGPT/Resources/Styles/Styles.xaml @@ -0,0 +1,426 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ChatGPT/Views/ConversationView.xaml b/ChatGPT/Views/ConversationView.xaml index 04a6b54..2aa0122 100644 --- a/ChatGPT/Views/ConversationView.xaml +++ b/ChatGPT/Views/ConversationView.xaml @@ -67,6 +67,7 @@ HeightRequest="35" Opacity="{Binding OpacityModeMessage}" StrokeShape="RoundRectangle 8,8,8,8" + StrokeThickness="0" WidthRequest="35"> @@ -86,6 +87,7 @@ HeightRequest="35" Opacity="{Binding OpacityModeImage}" StrokeShape="RoundRectangle 8,8,8,8" + StrokeThickness="0" WidthRequest="35"> @@ -155,7 +157,8 @@ BackgroundColor="{AppThemeBinding Light={StaticResource QuinaryLight}, Dark={StaticResource QuinaryDark}}" HeightRequest="48" - StrokeShape="RoundRectangle 36,36,36,36"> + StrokeShape="RoundRectangle 36,36,36,36" + StrokeThickness="0"> @@ -185,6 +188,7 @@ StrokeShape="{OnPlatform WinUI='RoundRectangle 10,10,10,10', MacCatalyst='RoundRectangle 10,10,10,10', Default='RoundRectangle 24,24,24,24'}" + StrokeThickness="0" WidthRequest="48"> @@ -204,6 +208,7 @@ StrokeShape="{OnPlatform WinUI='RoundRectangle 10,10,10,10', MacCatalyst='RoundRectangle 10,10,10,10', Default='RoundRectangle 24,24,24,24'}" + StrokeThickness="0" WidthRequest="48"> + Default='RoundRectangle 16,16,16,0'}" + StrokeThickness="0"> ](#features) | +| | [](#features) | | -------------------------- | :----------------: | | Experience smooth animation when switching between light and dark themes | ✔️ | | Enjoy a harmonious interface on any screen size | In process of completion | @@ -77,7 +77,7 @@ namespace ChatGPT.Constants ## Design tool -| [](https://penpot.app) | +| [](https://penpot.app) | | -------------------------- | ## Tutorials