From fd15b62adfb2c8e1ec7d07d2c2d79b2baab07ddc Mon Sep 17 00:00:00 2001 From: Oleksii Holub Date: Fri, 7 Dec 2018 18:14:27 +0200 Subject: [PATCH] Improve UI layout and usage instructions --- DiscordChatExporter.Cli/Program.cs | 31 +- DiscordChatExporter.Gui/Views/RootView.xaml | 308 ++++++++++---------- 2 files changed, 173 insertions(+), 166 deletions(-) diff --git a/DiscordChatExporter.Cli/Program.cs b/DiscordChatExporter.Cli/Program.cs index cab543a..923ad05 100644 --- a/DiscordChatExporter.Cli/Program.cs +++ b/DiscordChatExporter.Cli/Program.cs @@ -11,28 +11,25 @@ namespace DiscordChatExporter.Cli private static void PrintTokenHelp() { Console.WriteLine("# To get user token:"); - Console.WriteLine(" 1. Open Discord app"); - Console.WriteLine(" 2. Log in if you haven't"); - Console.WriteLine(" 3. Press Ctrl+Shift+I to show developer tools"); - Console.WriteLine(" 4. Press Ctrl+R to trigger reload"); - Console.WriteLine(" 5. Navigate to the Application tab"); - Console.WriteLine(" 6. Select \"Local Storage\" > \"https://discordapp.com\" on the left"); - Console.WriteLine(" 7. Find \"token\" under key and copy the value"); + Console.WriteLine(" 1. Open Discord"); + Console.WriteLine(" 2. Press Ctrl+Shift+I to show developer tools"); + Console.WriteLine(" 3. Press Ctrl+R to reload"); + Console.WriteLine(" 4. Navigate to the Application tab"); + Console.WriteLine(" 5. Select \"Local Storage\" > \"https://discordapp.com\" on the left"); + Console.WriteLine(" 6. Find \"token\" under key and copy the value"); Console.WriteLine(); Console.WriteLine("# To get bot token:"); Console.WriteLine(" 1. Go to Discord developer portal"); - Console.WriteLine(" 2. Log in if you haven't"); - Console.WriteLine(" 3. Open your application's settings"); - Console.WriteLine(" 4. Navigate to the Bot section on the left"); - Console.WriteLine(" 5. Under Token click Copy"); + Console.WriteLine(" 2. Open your application's settings"); + Console.WriteLine(" 3. Navigate to the Bot section on the left"); + Console.WriteLine(" 4. Under Token click Copy"); Console.WriteLine(); Console.WriteLine("# To get guild or channel ID:"); - Console.WriteLine(" 1. Open Discord app"); - Console.WriteLine(" 2. Log in if you haven't"); - Console.WriteLine(" 3. Open Settings"); - Console.WriteLine(" 4. Go to Appearance section"); - Console.WriteLine(" 5. Enable Developer Mode"); - Console.WriteLine(" 6. Right click on the desired guild or channel and click Copy ID"); + Console.WriteLine(" 1. Open Discord"); + Console.WriteLine(" 2. Open Settings"); + Console.WriteLine(" 3. Go to Appearance section"); + Console.WriteLine(" 4. Enable Developer Mode"); + Console.WriteLine(" 5. Right click on the desired guild or channel and click Copy ID"); } public static void Main(string[] args) diff --git a/DiscordChatExporter.Gui/Views/RootView.xaml b/DiscordChatExporter.Gui/Views/RootView.xaml index 10fab6c..e2fe777 100644 --- a/DiscordChatExporter.Gui/Views/RootView.xaml +++ b/DiscordChatExporter.Gui/Views/RootView.xaml @@ -25,112 +25,185 @@ WindowStartupLocation="CenterScreen" mc:Ignorable="d"> - + + + + + + + + - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - + - - + + + + + +