Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Commit

Permalink
Make avatars larger
Browse files Browse the repository at this point in the history
  • Loading branch information
x2bool committed Feb 1, 2019
1 parent 3d039fc commit 9e0529d
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Tel.Egram.Services/Graphics/Avatars/AvatarSize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Tel.Egram.Services.Graphics.Avatars
{
public enum AvatarSize
{
Small = 22,
Small = 24,
Regular = 32
}
}
8 changes: 4 additions & 4 deletions src/Tel.Egram.Views/Messenger/Catalog/CatalogControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
</Style>

<Style Selector="Button Ellipse">
<Setter Property="Width" Value="20" />
<Setter Property="Height" Value="20" />
<Setter Property="Width" Value="24" />
<Setter Property="Height" Value="24" />
<Setter Property="Fill" Value="#435270" />
<Setter Property="Opacity" Value="0.8" />
</Style>
Expand Down Expand Up @@ -107,7 +107,7 @@
</Style>

<Style Selector="ListBoxItem Grid > Border">
<Setter Property="CornerRadius" Value="14,0,0,14" />
<Setter Property="CornerRadius" Value="15,0,0,15" />
<Setter Property="Padding" Value="3,0,8,0" />
</Style>

Expand Down Expand Up @@ -135,7 +135,7 @@
<Setter Property="Margin" Value="0,2" />
<Setter Property="Padding" Value="6,0" />
<Setter Property="Background" Value="#435270" />
<Setter Property="CornerRadius" Value="8" />
<Setter Property="CornerRadius" Value="10" />
</Style>

<Style Selector="ListBoxItem Panel.Indicator > Border > TextBlock">
Expand Down
6 changes: 3 additions & 3 deletions src/Tel.Egram.Views/Messenger/Catalog/EntryControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
Color="{Binding Color}"
TextColor="{Binding TextColor}"
Text="{Binding Label}"
Size="22"
Size="24"
Margin="3,0,0,0"/>

<Panel
Classes="Title"
Grid.Column="1"
Height="22"
Height="24"
VerticalAlignment="Center">

<TextBlock
Expand All @@ -35,7 +35,7 @@
<Panel
Classes="Indicator"
Grid.Column="2"
Height="22"
Height="24"
VerticalAlignment="Center">

<Border
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
</Style>

<Style Selector="Ellipse">
<Setter Property="Width" Value="22" />
<Setter Property="Height" Value="22" />
<Setter Property="Width" Value="24" />
<Setter Property="Height" Value="24" />
<Setter Property="Fill" Value="#5195e1" />
<Setter Property="Opacity" Value="0.9" />
</Style>
Expand Down
4 changes: 2 additions & 2 deletions src/Tel.Egram.Views/Messenger/Informer/InformerControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
</Style>

<Style Selector="Button Ellipse">
<Setter Property="Width" Value="20" />
<Setter Property="Height" Value="20" />
<Setter Property="Width" Value="22" />
<Setter Property="Height" Value="22" />
<Setter Property="Fill" Value="#cccccc" />
</Style>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@
</Style>

<Style Selector="TabStripItem.NavigationTab Ellipse">
<Setter Property="Width" Value="22" />
<Setter Property="Height" Value="22" />
<Setter Property="Width" Value="24" />
<Setter Property="Height" Value="24" />
<Setter Property="Fill" Value="#435270" />
<Setter Property="Opacity" Value="0.33" />
</Style>
Expand Down Expand Up @@ -179,8 +179,8 @@
</Style>

<Style Selector="Button.Settings Ellipse">
<Setter Property="Width" Value="22" />
<Setter Property="Height" Value="22" />
<Setter Property="Width" Value="24" />
<Setter Property="Height" Value="24" />
<Setter Property="Fill" Value="#435270" />
<Setter Property="Opacity" Value="0.33" />
</Style>
Expand Down
7 changes: 6 additions & 1 deletion src/Tel.Egram/Registry.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.IO;
using System.Reactive.Disposables;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
Expand Down Expand Up @@ -41,7 +42,11 @@ public static void AddTdLib(this IMutableDependencyResolver services)
{
services.RegisterLazySingleton(() =>
{
Client.Log.SetVerbosityLevel(1);
var storage = services.GetService<IStorage>();
Client.Log.SetFilePath(Path.Combine(storage.LogDirectory, "tdlib.log"));
Client.Log.SetMaxFileSize(1_000_000); // 1MB
Client.Log.SetVerbosityLevel(5);
return new Client();
});

Expand Down

0 comments on commit 9e0529d

Please sign in to comment.