-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some UI improvements #161
base: master
Are you sure you want to change the base?
Some UI improvements #161
Changes from all commits
c1c5354
6240b42
ff3ef84
e9e4fb8
2e9bc88
e5fad7e
424928c
0bc8d9a
6ad09ea
178fd06
5fde90d
8242da7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ | |
d:DesignWidth="400"> | ||
|
||
<Grid> | ||
<Image Source="ms-appx:///Assets/logo-idea-2.png" Width="256"/> | ||
<StackPanel Orientation="Vertical"> | ||
<Image Source="ms-appx:///Assets/logo-idea-2.png" Width="256"/> | ||
<TextBlock Text="Choose a contact to start chatting" Grid.Row="1" HorizontalAlignment="Center" Style="{StaticResource TitleTextBlockStyle}" Foreground="White" Margin="0,12,0,0"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Contact or group, maybe we should just say "conversation"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, sounds better |
||
</StackPanel> | ||
</Grid> | ||
</UserControl> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<Page | ||
x:Class="Signal_Windows.Views.AdvancedSettingsPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Signal_Windows.Views" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" | ||
DataContext="{Binding AdvancedSettingsPageInstance, Source={StaticResource Locator}}"> | ||
|
||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="1*"/> | ||
<RowDefinition Height="8*"/> | ||
</Grid.RowDefinitions> | ||
<TextBlock Text="Advanced" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource TitleTextBlockStyle}"/> | ||
<StackPanel Grid.Row="1" Margin="32,0,0,0"> | ||
<Button x:Name="ExportDebugLogButton" Content="Export debug log" Click="ExportDebugLogButton_Click"/> | ||
<Button x:Name="SyncButton" Content="Request contact and group sync" Margin="0,8,0,0" Click="SyncButton_Click"/> | ||
<Button x:Name="TestCrashButton" Content="Intentionally crash the app to test its debug log export" Click="TestCrashButton_Click"/> | ||
</StackPanel> | ||
</Grid> | ||
</Page> | ||
<Page | ||
x:Class="Signal_Windows.Views.AdvancedSettingsPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Signal_Windows.Views" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" | ||
DataContext="{Binding AdvancedSettingsPageInstance, Source={StaticResource Locator}}"> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="1*"/> | ||
<RowDefinition Height="8*"/> | ||
</Grid.RowDefinitions> | ||
<TextBlock Text="Advanced" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource TitleTextBlockStyle}"/> | ||
<StackPanel Grid.Row="1" Margin="32,0,0,0" HorizontalAlignment="Left"> | ||
<HyperlinkButton x:Name="ExportDebugLogButton" Content="Export debug log" Click="ExportDebugLogButton_Click" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left"/> | ||
<HyperlinkButton x:Name="SyncButton" Content="Request contact and group sync" Margin="0,8,0,0" Click="SyncButton_Click" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left"/> | ||
<HyperlinkButton x:Name="TestCrashButton" Content="Intentionally crash the app to test its debug log export" Click="TestCrashButton_Click" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why HyperlinkButtons? Do they behave/look different here? |
||
</StackPanel> | ||
</Grid> | ||
</Page> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
xmlns:local="using:Signal_Windows.Views" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:animations="using:Microsoft.Toolkit.Uwp.UI.Animations" | ||
mc:Ignorable="d" | ||
DataContext="{Binding GlobalSettingsPageInstance, Source={StaticResource Locator}}"> | ||
|
||
|
@@ -29,7 +30,7 @@ | |
</VisualStateGroup> | ||
</VisualStateManager.VisualStateGroups> | ||
<TextBlock Text="Settings" Style="{StaticResource HeaderTextBlockStyle}" HorizontalAlignment="Center" VerticalAlignment="Center"/> | ||
<VariableSizedWrapGrid x:Name="WrapGrid" HorizontalAlignment="Left" MaximumRowsOrColumns="1" VerticalAlignment="Top" Orientation="Horizontal" ItemWidth="250" ItemHeight="80" Grid.Row="1" Margin="32,0,32,0"> | ||
<VariableSizedWrapGrid x:Name="WrapGrid" HorizontalAlignment="Left" MaximumRowsOrColumns="1" VerticalAlignment="Top" Orientation="Horizontal" ItemWidth="250" ItemHeight="80" Grid.Row="1" Margin="32,0,32,0" animations:ReorderGridAnimation.Duration="300"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This animation seems to not work for me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also don't notice a difference on my W10 desktop. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, seems to not work... Sorry |
||
<Button x:Name="NotificationsButton" Background="{x:Null}" Width="250" HorizontalContentAlignment="Left" Click="NotificationsButton_Click"> | ||
<StackPanel Orientation="Horizontal"> | ||
<FontIcon Glyph="" FontSize="36"/> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,19 +32,22 @@ | |
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<Border Grid.Row="0" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"/> | ||
<Border Grid.Row="0" Background="Black" Opacity="0.25"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The blue color was exactly the same blue the official signal clients use at that position - do we want to diverge color-wise? I think we should keep the general look so that S-W feels like an official signal client There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you think it would look better without that black-transparent border? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't know tbh, let's just stick with Signal-Android/Desktops color schemes |
||
<Grid Grid.Row="0"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="Auto" /> | ||
<ColumnDefinition Width="Auto" /> | ||
</Grid.ColumnDefinitions> | ||
<TextBlock HorizontalAlignment="Center" Grid.Column="0" Text="Signal" FontSize="34" FontWeight="Light" Margin="0,16" Foreground="{ThemeResource ApplicationPageBackgroundThemeBrush}"/> | ||
<Button Grid.Column="1" x:Name="AddContactButton" Background="{x:Null}" Click="AddContactButton_Click"> | ||
<SymbolIcon Symbol="AddFriend" Foreground="{ThemeResource ApplicationPageBackgroundThemeBrush}" /> | ||
</Button> | ||
<Button Grid.Column="2" x:Name="GlobalSettingsButton" Background="{x:Null}" Click="GlobalSettingsButton_Click"> | ||
<SymbolIcon Symbol="Setting" Foreground="{ThemeResource ApplicationPageBackgroundThemeBrush}" /> | ||
</Button> | ||
<TextBlock Grid.Column="0" Text="Signal" FontSize="34" FontWeight="Light" Margin="6,16" Foreground="White" HorizontalAlignment="Center"/> | ||
<StackPanel Orientation="Horizontal" Grid.Column="1"> | ||
<Button x:Name="AddContactButton" Background="{x:Null}" Click="AddContactButton_Click"> | ||
<SymbolIcon Symbol="AddFriend" Foreground="White" /> | ||
</Button> | ||
<Button x:Name="GlobalSettingsButton" Background="{x:Null}" Click="GlobalSettingsButton_Click"> | ||
<SymbolIcon Symbol="Setting" Foreground="White" /> | ||
</Button> | ||
</StackPanel> | ||
</Grid> | ||
<AutoSuggestBox Grid.Row="1" Margin="16"/> | ||
<ListView Grid.Row="2" Name="ContactsList" ItemsSource="{x:Bind Vm.Conversations, Mode=TwoWay}" SelectionMode="Single" SelectionChanged="Vm.ConversationsList_SelectionChanged" SelectedItem="{x:Bind Vm.SelectedConversation, Mode=TwoWay}"> | ||
|
@@ -67,7 +70,7 @@ | |
</Grid> | ||
</SplitView.Pane> | ||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
<controls:Welcome Grid.Row="0" Visibility="{x:Bind Vm.WelcomeVisibility, Mode=OneWay}" /> | ||
<controls:Welcome Grid.Row="0" Visibility="{x:Bind Vm.WelcomeVisibility, Mode=OneWay}" VerticalAlignment="Center"/> | ||
<controls:Conversation Grid.Row="0" Visibility="{x:Bind Vm.ThreadVisibility, Mode=OneWay}" x:Name="ConversationControl" /> | ||
</Grid> | ||
</SplitView> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,12 +22,12 @@ | |
<RowDefinition Height="Auto"/> | ||
</Grid.RowDefinitions> | ||
<StackPanel> | ||
<TextBlock Text="Show" Style="{StaticResource BodyTextBlockStyle}" Margin="0,0,0,6"/> | ||
<TextBlock Text="Show..." Style="{StaticResource BodyTextBlockStyle}" Margin="0,0,0,6"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ellipsis isn't needed. I tried to match the text from the Signal app, which doesn't use an ellipsis here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, didn't know that |
||
<RadioButton Content="Name and message" Tag="{x:Bind Vm.NameAndMessageTag}" Margin="0,6" IsChecked="{x:Bind Vm.NameAndMessageChecked, Mode=TwoWay}" Checked="ShowNotificationText_Checked"/> | ||
<RadioButton Content="Name only" Tag="{x:Bind Vm.NameOnlyTag}" Margin="0,6" IsChecked="{x:Bind Vm.NameOnlyChecked, Mode=TwoWay}" Checked="ShowNotificationText_Checked"/> | ||
<RadioButton Content="No name or message" Tag="{x:Bind Vm.NoNameOrMessageTag}" Margin="0,6" IsChecked="{x:Bind Vm.NoNameOrMessageChecked, Mode=TwoWay}" Checked="ShowNotificationText_Checked"/> | ||
<RadioButton Content="No name or message" Tag="{x:Bind Vm.NoNameOrMessageTag}" Margin="0,6" IsChecked="{x:Bind Vm.NoNameOrMessageChecked, Mode=TwoWay}" Checked="ShowNotificationText_Checked"/><!--Does this mean that no notif will be shown?--> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, this means that if you get a message you'll still get a notification but the person who sent it or the message they sent won't be in the notification. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, thanks |
||
</StackPanel> | ||
<HyperlinkButton Grid.Row="1" Margin="0,16,0,0" NavigateUri="ms-settings:notifications" Content="More notification settings"/> | ||
<HyperlinkButton Grid.Row="1" Margin="0,12,0,0" NavigateUri="ms-settings:notifications" Content="More notification settings"/> | ||
</Grid> | ||
</ScrollViewer> | ||
<StackPanel Grid.Row="1"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous (default) padding was
10,3,6,5
. Do other chat apps on uwp also use such a big padding to north and south? If the input becomes multiline we might want to waste as little vertical space as possibleThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, changing padding was the first thing coming to my mind...