diff --git a/Project_Periodensystem.View/Components/ElementTile.axaml b/Project_Periodensystem.View/Components/ElementTile.axaml index 50f2e2c..05b1fde 100644 --- a/Project_Periodensystem.View/Components/ElementTile.axaml +++ b/Project_Periodensystem.View/Components/ElementTile.axaml @@ -2,23 +2,12 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:conv="clr-namespace:Project_Periodensystem.View.Converters" x:Class="Project_Periodensystem.View.Components.ElementTile" - Width="80" Height="80" - RenderTransformOrigin="0.5,0.5"> + Width="80" Height="80"> - - - + - - - - - - diff --git a/Project_Periodensystem.View/Components/ElementTile.axaml.cs b/Project_Periodensystem.View/Components/ElementTile.axaml.cs index c7326ca..edc99cc 100644 --- a/Project_Periodensystem.View/Components/ElementTile.axaml.cs +++ b/Project_Periodensystem.View/Components/ElementTile.axaml.cs @@ -1,26 +1,14 @@ using Avalonia; using Avalonia.Controls; -using Avalonia.Input; using Avalonia.Markup.Xaml; -using Avalonia.Styling; namespace Project_Periodensystem.View.Components { public partial class ElementTile : UserControl { - public static readonly StyledProperty IsFlippedProperty = - AvaloniaProperty.Register(nameof(IsFlipped)); - - public bool IsFlipped - { - get => GetValue(IsFlippedProperty); - set => SetValue(IsFlippedProperty, value); - } - public ElementTile() { InitializeComponent(); - this.PointerPressed += (_, __) => IsFlipped = !IsFlipped; } private void InitializeComponent() diff --git a/Project_Periodensystem.View/Converters/BoolToScaleXConverter.cs b/Project_Periodensystem.View/Converters/BoolToScaleXConverter.cs deleted file mode 100644 index 6bbf753..0000000 --- a/Project_Periodensystem.View/Converters/BoolToScaleXConverter.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Avalonia.Data.Converters; -using System; -using System.Globalization; - -namespace Project_Periodensystem.View.Converters -{ - public class BoolToScaleXConverter : IValueConverter - { - public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) - => (value is bool b && b) ? -1 : 1; - public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) - => throw new NotSupportedException(); - } -} diff --git a/Project_Periodensystem.View/LandingPage.axaml b/Project_Periodensystem.View/LandingPage.axaml index b6a8633..fe02edd 100644 --- a/Project_Periodensystem.View/LandingPage.axaml +++ b/Project_Periodensystem.View/LandingPage.axaml @@ -14,8 +14,16 @@ VerticalAlignment="Center" Width="200" Height="50" - Background="DarkRed" + Background="Black" Foreground="White"> + + + + diff --git a/project_structure.txt b/project_structure.txt new file mode 100644 index 0000000..07cdb23 Binary files /dev/null and b/project_structure.txt differ