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 23, 2023
1 parent 94dd36a commit 771d132
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 21 deletions.
22 changes: 20 additions & 2 deletions src/Portal/Sucrose.Portal/Views/Controls/ThemeCreate.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@
</StackPanel>
</Grid>

<TextBlock Text="Kapak" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<TextBlock Text="{DynamicResource Portal.ThemeCreate.ThemeThumbnail}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<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}" />
<TextBlock Text="{DynamicResource Portal.ThemeCreate.ThemePreview}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<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.ThemeCreate.ThemeTitle}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
Expand All @@ -234,6 +234,24 @@
Appearance="Secondary"
BorderBrush="Transparent"
Icon="{ui:SymbolIcon ArrowLeft24}" />

<TextBlock Text="Kapak" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<ui:Button x:Name="UrlThumbnail" 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="UrlPreview" Cursor="Hand" Content="{DynamicResource Portal.ThemeCreate.ThemePreview.Hint}" Margin="0 3 0 0" HorizontalAlignment="Stretch" Click="GifPreview_Click" />

<TextBlock Text="{DynamicResource Portal.ThemeCreate.ThemeTitle}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<ui:TextBox x:Name="UrlTitle" PlaceholderText="{DynamicResource Portal.ThemeCreate.ThemeTitle.Hint}" Margin="0 3 0 0" MaxLength="50" 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="UrlDescription" 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.ThemeCreate.ThemeAuthor}" Margin="0 12 0 0" TextWrapping="WrapWithOverflow" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<ui:TextBox x:Name="UrlAuthor" PlaceholderText="{DynamicResource Portal.ThemeCreate.ThemeAuthor.Hint}" Margin="0 3 0 0" MaxLength="50" 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="UrlContact" PlaceholderText="{DynamicResource Portal.ThemeCreate.ThemeContact.Hint}" Margin="0 3 0 0" MaxLength="250" AcceptsReturn="False" AcceptsTab="False" />
</StackPanel>

<StackPanel x:Name="WebCard" HorizontalAlignment="Stretch" VerticalAlignment="Center" Orientation="Vertical" Visibility="Collapsed">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private void GifArea_Drop(object sender, DragEventArgs e)
{
string Extension = Path.GetExtension(Record).ToLowerInvariant();

if (Extension is ".gif" or ".GIF")
if (Extension is ".gif")
{
AnimationBehavior.SetSourceUri(GifImagine, new(Record));
GifDelete.Visibility = Visibility.Visible;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,21 @@
<system:String x:Key="Portal.ThemeCreate.Application">Application-Thema</system:String>
<system:String x:Key="Portal.ThemeCreate.Application.Description">Erstellen Sie Ihr eigenes Thema im Application-Format.</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail">Titelseite</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview">Vorschau</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.ThemeThumbnail.Hint">Ein Cover-Bild auswählen</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Eine Vorschau-Datei auswählen</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>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Hint">Ein Cover-Bild auswählen</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Eine Vorschau-Datei auswählen</system:String>

<system:String x:Key="Portal.ThemeCreate.DragDrop.Delete">Rückgängig</system:String>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,21 @@
<system:String x:Key="Portal.ThemeCreate.Application">Application Theme</system:String>
<system:String x:Key="Portal.ThemeCreate.Application.Description">Create your own theme in Application format.</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail">Thumbnail</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview">Preview</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.ThemeThumbnail.Hint">Select a cover image</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Select a preview file</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>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Hint">Select a cover image</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Select a preview file</system:String>

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,21 @@
<system:String x:Key="Portal.ThemeCreate.Application">Tema de Application</system:String>
<system:String x:Key="Portal.ThemeCreate.Application.Description">Crea tu propio tema en formato de Application.</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail">Portada</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview">Vista Previa</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.ThemeThumbnail.Hint">Selecciona una imagen de portada</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Selecciona un archivo de vista previa</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>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Hint">Selecciona una imagen de portada</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Selecciona un archivo de vista previa</system:String>

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,21 @@
<system:String x:Key="Portal.ThemeCreate.Application">Thème Application</system:String>
<system:String x:Key="Portal.ThemeCreate.Application.Description">Créez votre propre thème au format Application.</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail">Couverture</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview">Aperçu</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.ThemeThumbnail.Hint">Sélectionner une image de couverture</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Sélectionner un fichier de prévisualisation</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>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Hint">Sélectionner une image de couverture</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Sélectionner un fichier de prévisualisation</system:String>

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,21 @@
<system:String x:Key="Portal.ThemeCreate.Application">Motyw Application</system:String>
<system:String x:Key="Portal.ThemeCreate.Application.Description">Utwórz własny motyw w formacie Application.</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail">Miniatura</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview">Podgląd</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.ThemeThumbnail.Hint">Wybierz obraz okładki</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Wybierz plik podglądu</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>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Hint">Wybierz obraz okładki</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Wybierz plik podglądu</system:String>

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,22 @@
<system:String x:Key="Portal.ThemeCreate.Application">Application Tema</system:String>
<system:String x:Key="Portal.ThemeCreate.Application.Description">Application türündeki kendi temanızı oluşturun.</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail">Kapak</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview">Önizleme</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.ThemeThumbnail.Hint">Bir kapak resmi seçin</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Bir önizleme dosyası seçin</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.ThemeThumbnail.Hint">Bir kapak resmi seçin</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.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>
Expand Down

0 comments on commit 771d132

Please sign in to comment.