changed appearence, made ready for release
This commit is contained in:
parent
9e5ffdd0cd
commit
896f7e68fc
@ -30,12 +30,12 @@ public class CountdownTimer
|
||||
Core.Initialize();
|
||||
libVlc = new LibVLC();
|
||||
|
||||
// Sound-Datei: Assets/ringtone001.wav muss ins Output kopiert werden
|
||||
|
||||
soundPath = Path.Combine(AppContext.BaseDirectory, "Assets", "ringtone001.wav");
|
||||
if (!File.Exists(soundPath))
|
||||
Console.WriteLine($"Warnung: Sound nicht gefunden: {soundPath}");
|
||||
|
||||
// MediaPlayer einmal anlegen; Media beim Abspielen setzen/erneuern
|
||||
|
||||
mp = new MediaPlayer(libVlc);
|
||||
}
|
||||
|
||||
@ -94,7 +94,6 @@ public class CountdownTimer
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
// Media pro Abspielvorgang frisch erzeugen, damit von Anfang an gespielt wird
|
||||
using var media = new Media(libVlc, soundPath, FromType.FromPath);
|
||||
mp.Media = media;
|
||||
mp.Play();
|
||||
|
||||
@ -9,8 +9,9 @@
|
||||
Icon="/Assets/avalonia-logo.ico"
|
||||
Title="SCRUM_Timer"
|
||||
Background="#DCA44B"
|
||||
Height="230"
|
||||
Width="320">
|
||||
SizeToContent="WidthAndHeight"
|
||||
Padding="20"
|
||||
CanResize="False">
|
||||
|
||||
|
||||
<Design.DataContext>
|
||||
@ -22,14 +23,16 @@
|
||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Spacing="40">
|
||||
<TextBlock x:Name="TimeText" FontSize="40" FontFamily="Alumni" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
<DockPanel HorizontalSpacing="10">
|
||||
<DockPanel HorizontalSpacing="10" HorizontalAlignment="Center">
|
||||
<TextBlock>Select Time: </TextBlock>
|
||||
<TimePicker x:Name="TimePick" ClockIdentifier="24HourClock" UseSeconds="True" SelectedTime="00:05:00" SelectedTimeChanged="TimePickHandlerTimeChanged"/>
|
||||
<TimePicker x:Name="TimePick" ClockIdentifier="24HourClock" UseSeconds="True" SelectedTime="00:05:00"
|
||||
SelectedTimeChanged="TimePickHandlerTimeChanged"
|
||||
Height="25" />
|
||||
</DockPanel>
|
||||
<DockPanel HorizontalSpacing="40">
|
||||
<Button Content="Start/Stop" Click="ButtonHandlerStartStop"/>
|
||||
<Button Content="Reset" Click="ButtonHandlerReset"/>
|
||||
<Button Content="+ 05:00" Click="ButtonHandlerAddTime" />
|
||||
<Button Content="Start/Stop" Click="ButtonHandlerStartStop" Width="90" HorizontalContentAlignment="Center" />
|
||||
<Button Content="Reset" Click="ButtonHandlerReset" Width="90" HorizontalContentAlignment="Center" />
|
||||
<Button Content="+ 05:00" Click="ButtonHandlerAddTime" Width="90" HorizontalContentAlignment="Center" />
|
||||
</DockPanel>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
@ -75,6 +75,12 @@
|
||||
"target": "Package",
|
||||
"version": "[*, )"
|
||||
},
|
||||
"Microsoft.NET.ILLink.Tasks": {
|
||||
"suppressParent": "All",
|
||||
"target": "Package",
|
||||
"version": "[9.0.10, )",
|
||||
"autoReferenced": true
|
||||
},
|
||||
"VideoLAN.LibVLC.Windows": {
|
||||
"target": "Package",
|
||||
"version": "[3.0.21, )"
|
||||
@ -100,6 +106,10 @@
|
||||
"name": "Microsoft.AspNetCore.App.Runtime.win-x64",
|
||||
"version": "[9.0.10, 9.0.10]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Crossgen2.linux-x64",
|
||||
"version": "[9.0.10, 9.0.10]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Host.linux-x64",
|
||||
"version": "[9.0.10, 9.0.10]"
|
||||
|
||||
@ -7,17 +7,19 @@
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/simon/.nuget/packages/</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/simon/.nuget/packages/</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.14.0</NuGetToolVersion>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.4</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="/home/simon/.nuget/packages/" />
|
||||
</ItemGroup>
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)skiasharp.nativeassets.webassembly/2.88.9/buildTransitive/netstandard1.0/SkiaSharp.NativeAssets.WebAssembly.props" Condition="Exists('$(NuGetPackageRoot)skiasharp.nativeassets.webassembly/2.88.9/buildTransitive/netstandard1.0/SkiaSharp.NativeAssets.WebAssembly.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.net.illink.tasks/9.0.10/build/Microsoft.NET.ILLink.Tasks.props" Condition="Exists('$(NuGetPackageRoot)microsoft.net.illink.tasks/9.0.10/build/Microsoft.NET.ILLink.Tasks.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)harfbuzzsharp.nativeassets.webassembly/8.3.1.1/buildTransitive/netstandard1.0/HarfBuzzSharp.NativeAssets.WebAssembly.props" Condition="Exists('$(NuGetPackageRoot)harfbuzzsharp.nativeassets.webassembly/8.3.1.1/buildTransitive/netstandard1.0/HarfBuzzSharp.NativeAssets.WebAssembly.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)avalonia/11.3.6/buildTransitive/Avalonia.props" Condition="Exists('$(NuGetPackageRoot)avalonia/11.3.6/buildTransitive/Avalonia.props')" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<PkgMicrosoft_NET_ILLink_Tasks Condition=" '$(PkgMicrosoft_NET_ILLink_Tasks)' == '' ">/home/simon/.nuget/packages/microsoft.net.illink.tasks/9.0.10</PkgMicrosoft_NET_ILLink_Tasks>
|
||||
<PkgAvalonia_BuildServices Condition=" '$(PkgAvalonia_BuildServices)' == '' ">/home/simon/.nuget/packages/avalonia.buildservices/0.0.31</PkgAvalonia_BuildServices>
|
||||
<PkgAvalonia Condition=" '$(PkgAvalonia)' == '' ">/home/simon/.nuget/packages/avalonia/11.3.6</PkgAvalonia>
|
||||
</PropertyGroup>
|
||||
|
||||
@ -491,6 +491,12 @@
|
||||
"lib/net5.0/MicroCom.Runtime.dll": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.NET.ILLink.Tasks/9.0.10": {
|
||||
"type": "package",
|
||||
"build": {
|
||||
"build/Microsoft.NET.ILLink.Tasks.props": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/1.1.1": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
@ -1861,6 +1867,12 @@
|
||||
"lib/net5.0/MicroCom.Runtime.dll": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.NET.ILLink.Tasks/9.0.10": {
|
||||
"type": "package",
|
||||
"build": {
|
||||
"build/Microsoft.NET.ILLink.Tasks.props": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/1.1.1": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
@ -3369,6 +3381,12 @@
|
||||
"lib/net5.0/MicroCom.Runtime.dll": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.NET.ILLink.Tasks/9.0.10": {
|
||||
"type": "package",
|
||||
"build": {
|
||||
"build/Microsoft.NET.ILLink.Tasks.props": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/1.1.1": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
@ -5146,6 +5164,40 @@
|
||||
"microcom.runtime.nuspec"
|
||||
]
|
||||
},
|
||||
"Microsoft.NET.ILLink.Tasks/9.0.10": {
|
||||
"sha512": "NdAbLBp8Air1T69jGNLsPma2YGCYlnrVCIAgCoDE+mOS5D2T7CTb3QyXIYOTSneNVe5z8oDQyM+2At4AQDJWAQ==",
|
||||
"type": "package",
|
||||
"path": "microsoft.net.illink.tasks/9.0.10",
|
||||
"hasTools": true,
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
"Icon.png",
|
||||
"LICENSE.TXT",
|
||||
"Sdk/Sdk.props",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"analyzers/dotnet/cs/ILLink.CodeFixProvider.dll",
|
||||
"analyzers/dotnet/cs/ILLink.RoslynAnalyzer.dll",
|
||||
"build/Microsoft.NET.ILLink.Analyzers.props",
|
||||
"build/Microsoft.NET.ILLink.Tasks.props",
|
||||
"build/Microsoft.NET.ILLink.targets",
|
||||
"microsoft.net.illink.tasks.9.0.10.nupkg.sha512",
|
||||
"microsoft.net.illink.tasks.nuspec",
|
||||
"tools/net9.0/ILLink.Tasks.deps.json",
|
||||
"tools/net9.0/ILLink.Tasks.dll",
|
||||
"tools/net9.0/Mono.Cecil.Mdb.dll",
|
||||
"tools/net9.0/Mono.Cecil.Pdb.dll",
|
||||
"tools/net9.0/Mono.Cecil.Rocks.dll",
|
||||
"tools/net9.0/Mono.Cecil.dll",
|
||||
"tools/net9.0/Sdk/Sdk.props",
|
||||
"tools/net9.0/build/Microsoft.NET.ILLink.Analyzers.props",
|
||||
"tools/net9.0/build/Microsoft.NET.ILLink.Tasks.props",
|
||||
"tools/net9.0/build/Microsoft.NET.ILLink.targets",
|
||||
"tools/net9.0/illink.deps.json",
|
||||
"tools/net9.0/illink.dll",
|
||||
"tools/net9.0/illink.runtimeconfig.json",
|
||||
"useSharedDesignerContext.txt"
|
||||
]
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/1.1.1": {
|
||||
"sha512": "TMBuzAHpTenGbGgk0SMTwyEkyijY/Eae4ZGsFNYJvAr/LDn1ku3Etp3FPxChmDp5HHF3kzJuoaa08N0xjqAJfQ==",
|
||||
"type": "package",
|
||||
@ -9294,6 +9346,7 @@
|
||||
"Avalonia.Themes.Fluent >= 11.3.6",
|
||||
"CommunityToolkit.Mvvm >= 8.2.1",
|
||||
"LibVLCSharp >= *",
|
||||
"Microsoft.NET.ILLink.Tasks >= 9.0.10",
|
||||
"VideoLAN.LibVLC.Windows >= 3.0.21"
|
||||
]
|
||||
},
|
||||
@ -9371,6 +9424,12 @@
|
||||
"target": "Package",
|
||||
"version": "[*, )"
|
||||
},
|
||||
"Microsoft.NET.ILLink.Tasks": {
|
||||
"suppressParent": "All",
|
||||
"target": "Package",
|
||||
"version": "[9.0.10, )",
|
||||
"autoReferenced": true
|
||||
},
|
||||
"VideoLAN.LibVLC.Windows": {
|
||||
"target": "Package",
|
||||
"version": "[3.0.21, )"
|
||||
@ -9396,6 +9455,10 @@
|
||||
"name": "Microsoft.AspNetCore.App.Runtime.win-x64",
|
||||
"version": "[9.0.10, 9.0.10]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Crossgen2.linux-x64",
|
||||
"version": "[9.0.10, 9.0.10]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Host.linux-x64",
|
||||
"version": "[9.0.10, 9.0.10]"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "RWJ3SIOSHfQ=",
|
||||
"dgSpecHash": "MyUiU7poCWc=",
|
||||
"success": true,
|
||||
"projectFilePath": "/home/simon/Programming/Schule/IM_K2 Agile Vorgehensweisen/SCRUM-Timer/SCRUM-Timer/SCRUM-Timer/SCRUM-Timer.csproj",
|
||||
"expectedPackageFiles": [
|
||||
@ -27,6 +27,7 @@
|
||||
"/home/simon/.nuget/packages/harfbuzzsharp.nativeassets.win32/8.3.1.1/harfbuzzsharp.nativeassets.win32.8.3.1.1.nupkg.sha512",
|
||||
"/home/simon/.nuget/packages/libvlcsharp/3.9.4/libvlcsharp.3.9.4.nupkg.sha512",
|
||||
"/home/simon/.nuget/packages/microcom.runtime/0.11.0/microcom.runtime.0.11.0.nupkg.sha512",
|
||||
"/home/simon/.nuget/packages/microsoft.net.illink.tasks/9.0.10/microsoft.net.illink.tasks.9.0.10.nupkg.sha512",
|
||||
"/home/simon/.nuget/packages/microsoft.netcore.platforms/1.1.1/microsoft.netcore.platforms.1.1.1.nupkg.sha512",
|
||||
"/home/simon/.nuget/packages/microsoft.netcore.targets/1.1.3/microsoft.netcore.targets.1.1.3.nupkg.sha512",
|
||||
"/home/simon/.nuget/packages/microsoft.win32.primitives/4.3.0/microsoft.win32.primitives.4.3.0.nupkg.sha512",
|
||||
@ -119,6 +120,7 @@
|
||||
"/home/simon/.nuget/packages/microsoft.netcore.app.runtime.linux-x64/9.0.10/microsoft.netcore.app.runtime.linux-x64.9.0.10.nupkg.sha512",
|
||||
"/home/simon/.nuget/packages/microsoft.aspnetcore.app.runtime.win-x64/9.0.10/microsoft.aspnetcore.app.runtime.win-x64.9.0.10.nupkg.sha512",
|
||||
"/home/simon/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/9.0.10/microsoft.aspnetcore.app.runtime.linux-x64.9.0.10.nupkg.sha512",
|
||||
"/home/simon/.nuget/packages/microsoft.netcore.app.crossgen2.linux-x64/9.0.10/microsoft.netcore.app.crossgen2.linux-x64.9.0.10.nupkg.sha512",
|
||||
"/home/simon/.nuget/packages/microsoft.netcore.app.host.win-x64/9.0.10/microsoft.netcore.app.host.win-x64.9.0.10.nupkg.sha512",
|
||||
"/home/simon/.nuget/packages/microsoft.netcore.app.host.linux-x64/9.0.10/microsoft.netcore.app.host.linux-x64.9.0.10.nupkg.sha512"
|
||||
],
|
||||
|
||||
@ -1 +1 @@
|
||||
17620170467879632
|
||||
17620756258619622
|
||||
Loading…
x
Reference in New Issue
Block a user