mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-30 06:25:22 -04:00
Refactor UI
This commit is contained in:
parent
6d5ed9e9ca
commit
fa1e84b518
4 changed files with 16 additions and 64 deletions
|
@ -77,6 +77,19 @@
|
||||||
Color="{DynamicResource InverseTextColor}" />
|
Color="{DynamicResource InverseTextColor}" />
|
||||||
|
|
||||||
<!-- Styles -->
|
<!-- Styles -->
|
||||||
|
<Style x:Key="MaterialDesignRoot" TargetType="{x:Type Control}">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource MaterialDesignPaper}" />
|
||||||
|
<Setter Property="FontFamily" Value="{DynamicResource MaterialDesignFont}" />
|
||||||
|
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality" />
|
||||||
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||||
|
<Setter Property="TextElement.FontSize" Value="13" />
|
||||||
|
<Setter Property="TextElement.FontWeight" Value="Regular" />
|
||||||
|
<Setter Property="TextElement.Foreground" Value="{DynamicResource SecondaryTextBrush}" />
|
||||||
|
<Setter Property="TextOptions.TextFormattingMode" Value="Ideal" />
|
||||||
|
<Setter Property="TextOptions.TextRenderingMode" Value="Auto" />
|
||||||
|
<Setter Property="UseLayoutRounding" Value="True" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
<Style BasedOn="{StaticResource MaterialDesignLinearProgressBar}" TargetType="{x:Type ProgressBar}">
|
<Style BasedOn="{StaticResource MaterialDesignLinearProgressBar}" TargetType="{x:Type ProgressBar}">
|
||||||
<Setter Property="BorderThickness" Value="0" />
|
<Setter Property="BorderThickness" Value="0" />
|
||||||
<Setter Property="Foreground" Value="{DynamicResource SecondaryAccentBrush}" />
|
<Setter Property="Foreground" Value="{DynamicResource SecondaryAccentBrush}" />
|
||||||
|
|
|
@ -10,13 +10,7 @@
|
||||||
xmlns:s="https://github.com/canton7/Stylet"
|
xmlns:s="https://github.com/canton7/Stylet"
|
||||||
Width="380"
|
Width="380"
|
||||||
d:DataContext="{d:DesignInstance Type=dialogs:ExportSetupViewModel}"
|
d:DataContext="{d:DesignInstance Type=dialogs:ExportSetupViewModel}"
|
||||||
RenderOptions.BitmapScalingMode="HighQuality"
|
Style="{DynamicResource MaterialDesignRoot}"
|
||||||
SnapsToDevicePixels="True"
|
|
||||||
TextElement.FontSize="13"
|
|
||||||
TextElement.FontWeight="Regular"
|
|
||||||
TextElement.Foreground="{DynamicResource SecondaryTextBrush}"
|
|
||||||
TextOptions.TextFormattingMode="Ideal"
|
|
||||||
TextOptions.TextRenderingMode="Auto"
|
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<!-- Guild/channel info -->
|
<!-- Guild/channel info -->
|
||||||
|
|
|
@ -9,13 +9,7 @@
|
||||||
xmlns:s="https://github.com/canton7/Stylet"
|
xmlns:s="https://github.com/canton7/Stylet"
|
||||||
Width="300"
|
Width="300"
|
||||||
d:DataContext="{d:DesignInstance Type=dialogs:SettingsViewModel}"
|
d:DataContext="{d:DesignInstance Type=dialogs:SettingsViewModel}"
|
||||||
RenderOptions.BitmapScalingMode="HighQuality"
|
Style="{DynamicResource MaterialDesignRoot}"
|
||||||
SnapsToDevicePixels="True"
|
|
||||||
TextElement.FontSize="13"
|
|
||||||
TextElement.FontWeight="Regular"
|
|
||||||
TextElement.Foreground="{DynamicResource SecondaryTextBrush}"
|
|
||||||
TextOptions.TextFormattingMode="Ideal"
|
|
||||||
TextOptions.TextRenderingMode="Auto"
|
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
|
|
@ -11,18 +11,9 @@
|
||||||
Height="550"
|
Height="550"
|
||||||
MinWidth="325"
|
MinWidth="325"
|
||||||
d:DataContext="{d:DesignInstance Type=viewModels:RootViewModel}"
|
d:DataContext="{d:DesignInstance Type=viewModels:RootViewModel}"
|
||||||
Background="{DynamicResource MaterialDesignPaper}"
|
|
||||||
FocusManager.FocusedElement="{Binding ElementName=TokenValueTextBox}"
|
FocusManager.FocusedElement="{Binding ElementName=TokenValueTextBox}"
|
||||||
FontFamily="{DynamicResource MaterialDesignFont}"
|
|
||||||
Icon="/DiscordChatExporter;component/favicon.ico"
|
Icon="/DiscordChatExporter;component/favicon.ico"
|
||||||
RenderOptions.BitmapScalingMode="HighQuality"
|
Style="{DynamicResource MaterialDesignRoot}"
|
||||||
SnapsToDevicePixels="True"
|
|
||||||
TextElement.FontSize="13"
|
|
||||||
TextElement.FontWeight="Regular"
|
|
||||||
TextElement.Foreground="{DynamicResource SecondaryTextBrush}"
|
|
||||||
TextOptions.TextFormattingMode="Ideal"
|
|
||||||
TextOptions.TextRenderingMode="Auto"
|
|
||||||
UseLayoutRounding="True"
|
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<materialDesign:DialogHost SnackbarMessageQueue="{Binding Notifications}">
|
<materialDesign:DialogHost SnackbarMessageQueue="{Binding Notifications}">
|
||||||
|
@ -212,26 +203,6 @@
|
||||||
ItemsSource="{Binding AvailableGuilds}"
|
ItemsSource="{Binding AvailableGuilds}"
|
||||||
ScrollViewer.VerticalScrollBarVisibility="Hidden"
|
ScrollViewer.VerticalScrollBarVisibility="Hidden"
|
||||||
SelectedItem="{Binding SelectedGuild}">
|
SelectedItem="{Binding SelectedGuild}">
|
||||||
<ListBox.ItemContainerStyle>
|
|
||||||
<Style BasedOn="{StaticResource {x:Type ListBoxItem}}" TargetType="{x:Type ListBoxItem}">
|
|
||||||
<Style.Triggers>
|
|
||||||
<EventTrigger RoutedEvent="Loaded">
|
|
||||||
<EventTrigger.Actions>
|
|
||||||
<BeginStoryboard>
|
|
||||||
<Storyboard>
|
|
||||||
<DoubleAnimation
|
|
||||||
Storyboard.TargetProperty="Opacity"
|
|
||||||
From="0"
|
|
||||||
To="1"
|
|
||||||
Duration="0:0:0.4" />
|
|
||||||
</Storyboard>
|
|
||||||
</BeginStoryboard>
|
|
||||||
</EventTrigger.Actions>
|
|
||||||
</EventTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</ListBox.ItemContainerStyle>
|
|
||||||
|
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Grid
|
<Grid
|
||||||
|
@ -264,26 +235,6 @@
|
||||||
<!-- Channels -->
|
<!-- Channels -->
|
||||||
<Border Grid.Column="1">
|
<Border Grid.Column="1">
|
||||||
<ListBox HorizontalContentAlignment="Stretch" ItemsSource="{Binding AvailableChannels}">
|
<ListBox HorizontalContentAlignment="Stretch" ItemsSource="{Binding AvailableChannels}">
|
||||||
<ListBox.ItemContainerStyle>
|
|
||||||
<Style BasedOn="{StaticResource {x:Type ListBoxItem}}" TargetType="{x:Type ListBoxItem}">
|
|
||||||
<Style.Triggers>
|
|
||||||
<EventTrigger RoutedEvent="Loaded">
|
|
||||||
<EventTrigger.Actions>
|
|
||||||
<BeginStoryboard>
|
|
||||||
<Storyboard>
|
|
||||||
<DoubleAnimation
|
|
||||||
Storyboard.TargetProperty="Opacity"
|
|
||||||
From="0"
|
|
||||||
To="1"
|
|
||||||
Duration="0:0:0.4" />
|
|
||||||
</Storyboard>
|
|
||||||
</BeginStoryboard>
|
|
||||||
</EventTrigger.Actions>
|
|
||||||
</EventTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</ListBox.ItemContainerStyle>
|
|
||||||
|
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<StackPanel
|
<StackPanel
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue