Fix some text alignment issues with the new version of Avalonia

master
Tyrrrz 2 weeks ago
parent 692d886442
commit 7b892c8e5b

@ -233,60 +233,85 @@
Foreground="{DynamicResource PrimaryHueMidBrush}" Foreground="{DynamicResource PrimaryHueMidBrush}"
Kind="Account" /> Kind="Account" />
</InlineUIContainer> </InlineUIContainer>
<Run Text="" /> <Run BaselineAlignment="Center" Text="" />
<Run <Run
BaselineAlignment="Center"
FontSize="16" FontSize="16"
FontWeight="SemiBold" FontWeight="SemiBold"
Text="To get the token for your personal account:" /> Text="To get the token for your personal account:" />
<LineBreak /> <LineBreak />
<Run Text="* Automating user accounts is technically against TOS —" /> <Run BaselineAlignment="Center" Text="* Automating user accounts is technically against TOS —" />
<Run FontWeight="SemiBold" Text="use at your own risk" /><Run Text="!" /> <Run
BaselineAlignment="Center"
FontWeight="SemiBold"
Text="use at your own risk" /><Run Text="!" />
<LineBreak /> <LineBreak />
<Run Text="1. Open Discord in your" /> <Run BaselineAlignment="Center" Text="1. Open Discord in your" />
<controls:HyperLink Command="{Binding OpenDiscordCommand}" Text="web browser" /> <controls:HyperLink Command="{Binding OpenDiscordCommand}" Text="web browser" />
<Run Text="and login" /> <Run BaselineAlignment="Center" Text="and login" />
<LineBreak /> <LineBreak />
<Run Text="2. Open any server or direct message channel" /> <Run BaselineAlignment="Center" Text="2. Open any server or direct message channel" />
<LineBreak /> <LineBreak />
<Run Text="3. Press" /> <Run BaselineAlignment="Center" Text="3. Press" />
<Run FontWeight="SemiBold" Text="Ctrl+Shift+I" /> <Run
<Run Text="to show developer tools" /> BaselineAlignment="Center"
FontWeight="SemiBold"
Text="Ctrl+Shift+I" />
<Run BaselineAlignment="Center" Text="to show developer tools" />
<LineBreak /> <LineBreak />
<Run Text="4. Navigate to the" /> <Run BaselineAlignment="Center" Text="4. Navigate to the" />
<Run FontWeight="SemiBold" Text="Network" /> <Run
<Run Text="tab" /> BaselineAlignment="Center"
FontWeight="SemiBold"
Text="Network" />
<Run BaselineAlignment="Center" Text="tab" />
<LineBreak /> <LineBreak />
<Run Text="5. Press" /> <Run BaselineAlignment="Center" Text="5. Press" />
<Run FontWeight="SemiBold" Text="Ctrl+R" /> <Run
<Run Text="to reload" /> BaselineAlignment="Center"
FontWeight="SemiBold"
Text="Ctrl+R" />
<Run BaselineAlignment="Center" Text="to reload" />
<LineBreak /> <LineBreak />
<Run Text="6. Switch between random channels to trigger network requests" /> <Run BaselineAlignment="Center" Text="6. Switch between random channels to trigger network requests" />
<LineBreak /> <LineBreak />
<Run Text="7. Search for a request that starts with" /> <Run BaselineAlignment="Center" Text="7. Search for a request that starts with" />
<Run FontWeight="SemiBold" Text="messages" /> <Run
BaselineAlignment="Center"
FontWeight="SemiBold"
Text="messages" />
<LineBreak /> <LineBreak />
<Run Text="8. Select the" /> <Run BaselineAlignment="Center" Text="8. Select the" />
<Run FontWeight="SemiBold" Text="Headers" /> <Run
<Run Text="tab on the right" /> BaselineAlignment="Center"
FontWeight="SemiBold"
Text="Headers" />
<Run BaselineAlignment="Center" Text="tab on the right" />
<LineBreak /> <LineBreak />
<Run Text="9. Scroll down to the" /> <Run BaselineAlignment="Center" Text="9. Scroll down to the" />
<Run FontWeight="SemiBold" Text="Request Headers" /> <Run
<Run Text="section" /> BaselineAlignment="Center"
FontWeight="SemiBold"
Text="Request Headers" />
<Run BaselineAlignment="Center" Text="section" />
<LineBreak /> <LineBreak />
<Run Text="10. Copy the value of the" /> <Run BaselineAlignment="Center" Text="10. Copy the value of the" />
<Run FontWeight="SemiBold" Text="authorization" /> <Run
<Run Text="header" /> BaselineAlignment="Center"
FontWeight="SemiBold"
Text="authorization" />
<Run BaselineAlignment="Center" Text="header" />
<LineBreak /> <LineBreak />
<LineBreak /> <LineBreak />
@ -299,38 +324,51 @@
Foreground="{DynamicResource PrimaryHueMidBrush}" Foreground="{DynamicResource PrimaryHueMidBrush}"
Kind="Robot" /> Kind="Robot" />
</InlineUIContainer> </InlineUIContainer>
<Run Text="" /> <Run BaselineAlignment="Center" Text="" />
<Run <Run
BaselineAlignment="Center"
FontSize="16" FontSize="16"
FontWeight="SemiBold" FontWeight="SemiBold"
Text="To get the token for your bot:" /> Text="To get the token for your bot:" />
<LineBreak /> <LineBreak />
<Run Text="1. Open Discord" /> <Run BaselineAlignment="Center" Text="1. Open Discord" />
<controls:HyperLink Command="{Binding OpenDiscordDeveloperPortalCommand}" Text="developer portal" /> <controls:HyperLink Command="{Binding OpenDiscordDeveloperPortalCommand}" Text="developer portal" />
<LineBreak /> <LineBreak />
<Run Text="2. Open your application's settings" /> <Run BaselineAlignment="Center" Text="2. Open your application's settings" />
<LineBreak /> <LineBreak />
<Run Text="3. Navigate to the" /> <Run BaselineAlignment="Center" Text="3. Navigate to the" />
<Run FontWeight="SemiBold" Text="Bot" /> <Run
<Run Text="section on the left" /> BaselineAlignment="Center"
FontWeight="SemiBold"
Text="Bot" />
<Run BaselineAlignment="Center" Text="section on the left" />
<LineBreak /> <LineBreak />
<Run Text="4. Under" /> <Run BaselineAlignment="Center" Text="4. Under" />
<Run FontWeight="SemiBold" Text="Token" /> <Run
<Run Text="click" /> BaselineAlignment="Center"
<Run FontWeight="SemiBold" Text="Copy" /> FontWeight="SemiBold"
Text="Token" />
<Run BaselineAlignment="Center" Text="click" />
<Run
BaselineAlignment="Center"
FontWeight="SemiBold"
Text="Copy" />
<LineBreak /> <LineBreak />
<Run Text="* Your bot needs to have the" /> <Run BaselineAlignment="Center" Text="* Your bot needs to have the" />
<Run FontWeight="SemiBold" Text="Message Content Intent" /> <Run
<Run Text="enabled to read messages" /> BaselineAlignment="Center"
FontWeight="SemiBold"
Text="Message Content Intent" />
<Run BaselineAlignment="Center" Text="enabled to read messages" />
<LineBreak /> <LineBreak />
<LineBreak /> <LineBreak />
<Run Text="If you have questions or issues, please refer to the" /> <Run BaselineAlignment="Center" Text="If you have questions or issues, please refer to the" />
<controls:HyperLink Command="{Binding ShowHelpCommand}" Text="documentation" /> <controls:HyperLink Command="{Binding ShowHelpCommand}" Text="documentation" />
</TextBlock> </TextBlock>
</ScrollViewer> </ScrollViewer>

Loading…
Cancel
Save