Button besser

This commit is contained in:
Tikkinger 2025-06-18 08:50:02 +02:00
parent 8cc0eb62ee
commit 1d73b8607b
56 changed files with 38 additions and 41 deletions

View File

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Controller")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+52e84eef603a5d794883bebebdb43f1496ad8c8b")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11383fc75a9f1f764ac2f8fef2dd8f2da0c7e2b8")]
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Controller")]
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Controller")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
e7b322b31da6702bd8fe7d53b83645020505c1ad7318739a0b5cdd9dfc0dde15
b26810a9701a80bd8d247c92ecf69824a86d42eff82b9218864ad2356c15c28a

View File

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Model")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+52e84eef603a5d794883bebebdb43f1496ad8c8b")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11383fc75a9f1f764ac2f8fef2dd8f2da0c7e2b8")]
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Model")]
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Model")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
1396b3ce6da72bd679b29887d28ac5d332cff2eb0de90d2707d5bce268e6c80d
1f8bedf408b8f59454ecc9fe6bdd5c389ea72f6f52e0c888b1f255e3586460ec

View File

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Persistence")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+52e84eef603a5d794883bebebdb43f1496ad8c8b")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11383fc75a9f1f764ac2f8fef2dd8f2da0c7e2b8")]
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Persistence")]
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Persistence")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
e56b7dd48342043456665ffc9aa4f0072231f58ee5b6bcd43379b228c6c7a7c8
4b1690178df789d1c5fd4816cf36ec319f0ceb403af602830b6577406a3b49da

View File

@ -4,7 +4,8 @@
x:Class="AquaCare.View.PflegeWindow"
xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Pflege Werte eintragen"
Width="600" Height="500">
Width="600" Height="500"
Icon="Ressourcen/Bilder/ProgrammIcon.ico">
<Grid>
<!-- Hintergrundbild ins äußere Grid verschieben -->
<Grid.Background>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -4,12 +4,13 @@
<!-- Allgemeiner Button-Style -->
<Style Selector="Button">
<Setter Property="FontSize" Value="30"/>
<Setter Property="Background" Value="#808080"/>
<Setter Property="Foreground" Value="#BEBEBE"/>
<Setter Property="Background" Value="#80B8B8B8"/> <!-- 80 macht es 50% transparent -->
<Setter Property="Foreground" Value="#2B2B2B"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Margin" Value="5"/>
<Setter Property="CornerRadius" Value="10"/> <!-- Fügt abgerundete Ecken hinzu -->
</Style>
<!-- Image Button-Style -->

View File

@ -6,8 +6,6 @@
Icon="Ressourcen/Bilder/ProgrammIcon.ico">
<Grid>
<Grid.Background>
<ImageBrush Source="avares://AquaCare.View/Ressourcen/Bilder/TutorialsHintergrund.png" Stretch="UniformToFill"/>
</Grid.Background>
@ -18,13 +16,6 @@
<RowDefinition Height="Auto"/> <!-- Tutorial-Inhalt -->
</Grid.RowDefinitions>
<!-- Überschrift -->
<TextBlock Grid.Row="0"
Text="Was kannst du nicht ?"
FontSize="24"
HorizontalAlignment="Center"
Margin="0,5,0,0"/>
<!-- Buttons für Tutorials -->
<StackPanel Grid.Row="1"
Orientation="Horizontal"
@ -49,10 +40,11 @@
<!-- TextBlock für Bildindex -->
<TextBlock x:Name="imageIndexTextBlock"
Text="Bild 1 von 3"
FontSize="18"
Text="Bitte wählen Sie ein Tutorial aus"
FontSize="24"
FontWeight="Bold"
HorizontalAlignment="Center"
Margin="0,5,0,5"/>
Margin="0,10,0,10"/>
<!-- Navigation unter dem Bild -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="2" Margin="0,5,0,0">
@ -60,7 +52,6 @@
<Button Content="Weiter" Click="NextImageClick" />
</StackPanel>
</StackPanel>
</StackPanel>
</Grid>
</Window>

View File

@ -7,19 +7,20 @@ namespace AquaCare.View
{
public partial class TutorialsWindow : Window
{
private List<string> _images; // Liste der Bildpfade
private int _currentImageIndex; // Aktueller Index des angezeigten Bildes
private List<string> _images;
private int _currentImageIndex;
private TextBlock _imageIndexTextBlock;
public TutorialsWindow()
{
_images = new List<string>(); // Initialize the field to avoid null
InitializeComponent();
_images = new List<string>();
_imageIndexTextBlock = this.Find<TextBlock>("imageIndexTextBlock");
InitializeTutorial();
}
private void InitializeTutorial()
{
// Beispielbilder für das Tutorial
_images = new List<string>
{
"Ressourcen/BilderTutorials/Beispiele/1.jpg",
@ -27,43 +28,48 @@ namespace AquaCare.View
"Ressourcen/BilderTutorials/Beispiele/3.jpg"
};
_currentImageIndex = 0;
UpdateTutorialContent();
}
private void UpdateTutorialContent()
{
// Aktualisiert das angezeigte Bild und den Text
if (_images.Count > 0 && _currentImageIndex >= 0 && _currentImageIndex < _images.Count)
{
tutorialImage.Source = new Bitmap(_images[_currentImageIndex]);
_imageIndexTextBlock.Text = $"Bild {_currentImageIndex + 1} von {_images.Count}";
}
}
private void PreviousImageClick(object? sender, RoutedEventArgs e)
{
// Gehe zum vorherigen Bild, falls möglich
if (_currentImageIndex > 0)
{
_currentImageIndex--;
UpdateTutorialContent();
}
else
{
// Wenn wir beim ersten Bild sind, zum letzten springen
_currentImageIndex = _images.Count - 1;
}
UpdateTutorialContent();
}
private void NextImageClick(object? sender, RoutedEventArgs e)
{
// Gehe zum nächsten Bild, falls möglich
if (_currentImageIndex < _images.Count - 1)
{
_currentImageIndex++;
UpdateTutorialContent();
}
else
{
// Wenn wir beim letzten Bild sind, zurück zum ersten springen
_currentImageIndex = 0;
}
UpdateTutorialContent();
}
private void FischeFütternClick(object? sender, RoutedEventArgs e)
{
// Beispiel: Lade Bilder für das "Fische füttern"-Tutorial
_images = new List<string>
{
"Ressourcen/BilderTutorials/Beispiele/1.jpg",
@ -76,7 +82,6 @@ namespace AquaCare.View
private void WasserWechselnClick(object? sender, RoutedEventArgs e)
{
// Beispiel: Lade Bilder für das "Wasser wechseln"-Tutorial
_images = new List<string>
{
"Ressourcen/BilderTutorials/Beispiele/1.jpg",
@ -89,7 +94,6 @@ namespace AquaCare.View
private void FilterReinigenClick(object? sender, RoutedEventArgs e)
{
// Beispiel: Lade Bilder für das "Filter reinigen"-Tutorial
_images = new List<string>
{
"Ressourcen/BilderTutorials/Beispiele/1.jpg",

View File

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.View")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+52e84eef603a5d794883bebebdb43f1496ad8c8b")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11383fc75a9f1f764ac2f8fef2dd8f2da0c7e2b8")]
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.View")]
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.View")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
95878c16f7dc6422f2be2fa50d64672d2b2fa99f479599bc77f69e2e80fd2eb9
8a14db02d022de50302e5b23ec47b97276b170631ab2e0c8f66201348cd0502c

View File

@ -1 +1 @@
f72c1e88ea2604c503b4147ccae23e8e3465286483aeb07cf387ac376c1d6fb6
568de61c09a2d71f5b614d8e24749c223f330b05f9d54bd9ed27f337473a5bde