Skip to content

Commit

Permalink
Preparing Theme Create Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Oct 22, 2023
1 parent 7d43ed9 commit 6779b12
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Portal/Sucrose.Portal/Sucrose.Portal.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<PackageReference Include="Skylark.Wing" Version="3.1.1.5" />
<PackageReference Include="XamlFlair.WPF" Version="1.2.13" />
<PackageReference Include="XamlAnimatedGif" Version="2.2.0" />
<PackageReference Include="WPF-UI" Version="3.0.0-preview.7" />
<PackageReference Include="WPF-UI" Version="3.0.0-preview.8" />
<PackageReference Include="Skylark.Standard" Version="3.1.2" />
<PackageReference Include="Skylark.Clipboard" Version="3.1.1.4" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.1" />
Expand Down
28 changes: 14 additions & 14 deletions src/Portal/Sucrose.Portal/Views/Controls/ThemeCreate.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,38 +193,38 @@
TextAlignment="Center"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="Gif dosyanızı buraya sürükleyin ve bırakın"
Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
Text="{DynamicResource Portal.ThemeCreate.DragDrop.Gif}" />

<ui:Button
Cursor="Hand"
Content="Geri Al"
x:Name="GifDelete"
Margin="48 48 48 48"
Appearance="Danger"
Visibility="Collapsed"
Click="GifDelete_Click"
Icon="{ui:SymbolIcon Delete24}" />
Icon="{ui:SymbolIcon Delete24}"
Content="{DynamicResource Portal.ThemeCreate.DragDrop.Delete}" />
</StackPanel>
</Grid>

<TextBlock Text="Kapak" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<ui:Button x:Name="GifThumbnail" Cursor="Hand" Content="Bir kapak resmi seçin" Margin="0 3 0 0" HorizontalAlignment="Stretch" Click="GifThumbnail_Click" />
<ui:Button x:Name="GifThumbnail" Cursor="Hand" Content="{DynamicResource Portal.ThemeCreate.ThemeThumbnail.Hint}" Margin="0 3 0 0" HorizontalAlignment="Stretch" Click="GifThumbnail_Click" />

<TextBlock Text="Önizleme" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<ui:Button x:Name="GifPreview" Cursor="Hand" Content="Bir önizleme dosyası seçin" Margin="0 3 0 0" HorizontalAlignment="Stretch" Click="GifPreview_Click" />
<ui:Button x:Name="GifPreview" Cursor="Hand" Content="{DynamicResource Portal.ThemeCreate.ThemePreview.Hint}" Margin="0 3 0 0" HorizontalAlignment="Stretch" Click="GifPreview_Click" />

<TextBlock Text="{DynamicResource Portal.ThemeEdit.ThemeTitle}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<ui:TextBox x:Name="GifTitle" PlaceholderText="{DynamicResource Portal.ThemeEdit.ThemeTitle.Hint}" Margin="0 3 0 0" MaxLength="50" AcceptsReturn="False" AcceptsTab="False" />
<TextBlock Text="{DynamicResource Portal.ThemeCreate.ThemeTitle}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<ui:TextBox x:Name="GifTitle" PlaceholderText="{DynamicResource Portal.ThemeCreate.ThemeTitle.Hint}" Margin="0 3 0 0" MaxLength="50" AcceptsReturn="False" AcceptsTab="False" />

<TextBlock Text="{DynamicResource Portal.ThemeEdit.ThemeDescription}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<ui:TextBox x:Name="GifDescription" PlaceholderText="{DynamicResource Portal.ThemeEdit.ThemeDescription.Hint}" Margin="0 3 0 0" MaxLength="500" MaxLines="10" TextWrapping="WrapWithOverflow" MinLines="5" AcceptsReturn="False" AcceptsTab="False" />
<TextBlock Text="{DynamicResource Portal.ThemeCreate.ThemeDescription}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<ui:TextBox x:Name="GifDescription" PlaceholderText="{DynamicResource Portal.ThemeCreate.ThemeDescription.Hint}" Margin="0 3 0 0" MaxLength="500" MaxLines="10" TextWrapping="WrapWithOverflow" MinLines="5" AcceptsReturn="False" AcceptsTab="False" />

<TextBlock Text="{DynamicResource Portal.ThemeEdit.ThemeAuthor}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<ui:TextBox x:Name="GifAuthor" PlaceholderText="{DynamicResource Portal.ThemeEdit.ThemeAuthor.Hint}" Margin="0 3 0 0" MaxLength="50" AcceptsReturn="False" AcceptsTab="False" />
<TextBlock Text="{DynamicResource Portal.ThemeCreate.ThemeAuthor}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<ui:TextBox x:Name="GifAuthor" PlaceholderText="{DynamicResource Portal.ThemeCreate.ThemeAuthor.Hint}" Margin="0 3 0 0" MaxLength="50" AcceptsReturn="False" AcceptsTab="False" />

<TextBlock Text="{DynamicResource Portal.ThemeEdit.ThemeContact}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<ui:TextBox x:Name="GifContact" PlaceholderText="{DynamicResource Portal.ThemeEdit.ThemeContact.Hint}" Margin="0 3 0 0" MaxLength="250" AcceptsReturn="False" AcceptsTab="False" />
<TextBlock Text="{DynamicResource Portal.ThemeCreate.ThemeContact}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<ui:TextBox x:Name="GifContact" PlaceholderText="{DynamicResource Portal.ThemeCreate.ThemeContact.Hint}" Margin="0 3 0 0" MaxLength="250" AcceptsReturn="False" AcceptsTab="False" />
</StackPanel>

<StackPanel x:Name="UrlCard" HorizontalAlignment="Stretch" VerticalAlignment="Center" Orientation="Vertical" Visibility="Collapsed">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,16 @@
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle">Titel</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription">Beschreibung</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor">Autor</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact">Kontakt</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments">Argumente</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle.Hint">Bitte geben Sie einen gültigen Titel ein</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription.Hint">Bitte geben Sie eine gültige Beschreibung ein</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor.Hint">Bitte geben Sie einen gültigen Autorennamen ein</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact.Hint">Bitte geben Sie eine gültige Kontaktadresse ein</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments.Hint">Bitte geben Sie gültige Anwendungsargumente ein</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,16 @@
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle">Title</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription">Description</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor">Author</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact">Contact</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments">Arguments</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle.Hint">Please enter a valid title</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription.Hint">Please enter a valid description</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor.Hint">Please enter a valid author name</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact.Hint">Please enter a valid contact address</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments.Hint">Please enter valid application arguments</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,16 @@
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle">Título</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription">Descripción</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor">Autor</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact">Contacto</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments">Argumentos</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle.Hint">Por favor, introduzca un título válido</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription.Hint">Por favor, introduzca una descripción válida</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor.Hint">Por favor, introduzca un nombre de autor válido</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact.Hint">Por favor, introduzca una dirección de contacto válida</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments.Hint">Por favor, introduzca argumentos de aplicación válidos</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,16 @@
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle">Titre</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription">Description</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor">Auteur</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact">Contact</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments">Arguments</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle.Hint">Veuillez saisir un titre valide</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription.Hint">Veuillez saisir une description valide</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor.Hint">Veuillez saisir un nom d'auteur valide</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact.Hint">Veuillez saisir une adresse de contact valide</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments.Hint">Veuillez saisir des arguments d'application valides</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,16 @@
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle">Tytuł</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription">Opis</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor">Autor</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact">Kontakt</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments">Argumenty</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle.Hint">Proszę podać poprawny tytuł</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription.Hint">Proszę podać poprawny opis</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor.Hint">Proszę podać poprawne imię autora</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact.Hint">Proszę podać poprawny adres kontaktowy</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments.Hint">Proszę podać poprawne argumenty aplikacji</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,23 @@
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle">Başlık</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription">Açıklama</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor">Yazar</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact">İletişim</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments">Argümanlar</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle.Hint">Lütfen geçerli bir başlık yazın</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription.Hint">Lütfen geçerli bir açıklama yazın</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor.Hint">Lütfen geçerli bir yazar adı yazın</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact.Hint">Lütfen geçerli bir iletişim adresi yazın</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments.Hint">Lütfen geçerli bir uygulama argümanları yazın</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Bir kapak resmi seçin</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Hint">Bir önizleme dosyası seçin</system:String>

<system:String x:Key="Portal.ThemeCreate.DragDrop.Delete">Geri Al</system:String>

<system:String x:Key="Portal.ThemeCreate.DragDrop.Gif">Gif dosyanızı buraya sürükleyin ve bırakın</system:String>
</ResourceDictionary>

0 comments on commit 6779b12

Please sign in to comment.