From 2fb3f0e478769dea606f258bc0610dc6e4a1b56f Mon Sep 17 00:00:00 2001 From: liis17 Date: Wed, 12 Jun 2024 12:48:38 +0300 Subject: [PATCH 1/2] due to recent events, a calculator has been added to musecx --- MusicX/Controls/PlayerControl.xaml | 50 ++++--- MusicX/Controls/PlayerControl.xaml.cs | 9 ++ MusicX/Views/Modals/CalculatorModal.xaml | 152 ++++++++++++++++++++ MusicX/Views/Modals/CalculatorModal.xaml.cs | 54 +++++++ 4 files changed, 249 insertions(+), 16 deletions(-) create mode 100644 MusicX/Views/Modals/CalculatorModal.xaml create mode 100644 MusicX/Views/Modals/CalculatorModal.xaml.cs diff --git a/MusicX/Controls/PlayerControl.xaml b/MusicX/Controls/PlayerControl.xaml index 81c02035..ec765a77 100644 --- a/MusicX/Controls/PlayerControl.xaml +++ b/MusicX/Controls/PlayerControl.xaml @@ -5,14 +5,15 @@ xmlns:converters="clr-namespace:MusicX.Converters" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:hc="https://handyorg.github.io/handycontrol" + xmlns:helpers="clr-namespace:MusicX.Helpers" xmlns:local="clr-namespace:MusicX.Controls" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:player="clr-namespace:MusicX.Shared.Player;assembly=MusicX.Shared" xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" xmlns:wpfui="clr-namespace:Wpf.Ui.Controls;assembly=Wpf.Ui" - xmlns:helpers="clr-namespace:MusicX.Helpers" x:Name="Control" d:DataContext="{d:DesignInstance player:PlaylistTrack}" + d:Width="1500" Loaded="UserControl_Loaded" mc:Ignorable="d"> @@ -331,14 +332,14 @@ + x:Name="DislikeButton" + Width="40" + Height="40" + Margin="5,0,0,0" + Padding="0" + HorizontalContentAlignment="Center" + Appearance="Transparent" + Click="DislikeButton_Click"> @@ -365,7 +366,7 @@ Grid.Column="1" HorizontalAlignment="Center" Orientation="Horizontal"> - + + Click="PlayPauseButton_Click" + FontSize="20">