From f2646952c13e1e55ede9382954513c18e4766abd Mon Sep 17 00:00:00 2001 From: OliverT87 Date: Sat, 21 Jun 2025 12:09:11 +0200 Subject: [PATCH] optisch einheitlicher gemacht (buttons) und booltoscale rausgeschmissen, da wir keine flip animation mehr haben) --- .../Components/ElementTile.axaml | 15 ++------------- .../Components/ElementTile.axaml.cs | 12 ------------ .../Converters/BoolToScaleXConverter.cs | 14 -------------- Project_Periodensystem.View/LandingPage.axaml | 10 +++++++++- project_structure.txt | Bin 0 -> 2658 bytes 5 files changed, 11 insertions(+), 40 deletions(-) delete mode 100644 Project_Periodensystem.View/Converters/BoolToScaleXConverter.cs create mode 100644 project_structure.txt 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 0000000000000000000000000000000000000000..07cdb239ee588fdb675a2d7ff0ab3e97af00a971 GIT binary patch literal 2658 zcmcJR&u-H|5XR?>#5?4UY5@l-^_Kn-7a}4W6>i8RX=LQsk)1$!C9b?5@SAZ~-fq^h zgQzTfH{O|Vzxgsd<3GR0vXgtsC6ijV%nMn`NEWh`it#c z?qrR{NIrs6U{T6<(4NaP@z-lZ$#@oA>Z4w|%LVtPypeORGkGbmZLa=TtR;r@6C1q} z_+>E77z=i)z)(xKKIKg*UwJ#n>a$F3j~e^ZxEC<{VX-dRKVg=G<0EVW1l6U2uj1`& zzl7NXx9{~qZe%RiGGR(>acu!0s@L2HU9}WBc!_P4@qG9#vtORyU@$=BVmlA64}fEn03* zsX&|en!g&uoM%ksVQTo9lYuoO+rF4W*UYxu|0`GG%%4)LJF3Hynx*Qv^W^Hum?%rm z{g!i^QgfEXnR5D5&Ulkur+Kt09r|skvHj?wRX1V^o+7ScTM*+t>@^!=alSK~1yv2tgoJMe%9hC4HPjJ|Wgy_RRR&n1ZEWIr?R! hYBn9$$MQQ^h~j?VS`1nZYh$MMw?xn#%wH literal 0 HcmV?d00001