Skip to content

Commit

Permalink
Update v1.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
NotYoojun committed Jan 3, 2024
1 parent 00947ca commit 92ed7bf
Show file tree
Hide file tree
Showing 164 changed files with 380 additions and 1,078 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using iNKORE.Coreworks.Helpers;
using iNKORE.Coreworks.Localization;
using iNKORE.Coreworks.Windows.Presentation;
using MCSkinn.Forms.Controls;
using iNKORE.UI.WPF.Helpers;
using MCSkinn.Controls;
using MCSkinn.Scripts;
using MCSkinn.Scripts.Paril.Imaging;
using MCSkinn.Scripts.Paril.OpenGL;
Expand Down Expand Up @@ -320,7 +320,7 @@ public void TryGetModel()

System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(path);

Model model = Skin.TryGetModel(path, bmp, TreeView_Models.SelectedItem == null);
Model model = SkinNode.TryGetModel(path, bmp, TreeView_Models.SelectedItem == null);

if (model != null)
{
Expand Down
19 changes: 0 additions & 19 deletions source/MCSkinn/Dialogs/AboutWindow.xaml

This file was deleted.

45 changes: 0 additions & 45 deletions source/MCSkinn/Dialogs/AboutWindow.xaml.cs

This file was deleted.

12 changes: 0 additions & 12 deletions source/MCSkinn/Dialogs/GeneralQuestionDialog.xaml

This file was deleted.

44 changes: 0 additions & 44 deletions source/MCSkinn/Dialogs/GeneralQuestionDialog.xaml.cs

This file was deleted.

2 changes: 1 addition & 1 deletion source/MCSkinn/Dialogs/LogWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Diagnostics;
using MCSkinn.Scripts;
using System;
using iNKORE.Coreworks.Windows.Presentation;
using iNKORE.UI.WPF.Helpers;

namespace MCSkinn.Dialogs
{
Expand Down
12 changes: 0 additions & 12 deletions source/MCSkinn/Dialogs/SkinSizeMismatchDialug.xaml

This file was deleted.

47 changes: 0 additions & 47 deletions source/MCSkinn/Dialogs/SkinSizeMismatchDialug.xaml.cs

This file was deleted.

74 changes: 0 additions & 74 deletions source/MCSkinn/Forms/Controls/ModelToolStripMenuItem.cs

This file was deleted.

1 change: 0 additions & 1 deletion source/MCSkinn/MCSkinnAppContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.IO;
using System.Reflection;
using System.Windows.Forms;
using MCSkinn.Forms;
using MCSkinn.Scripts;

namespace MCSkinn
Expand Down
2 changes: 1 addition & 1 deletion source/MCSkinn/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
ui:TitleBar.ExtendViewIntoTitleBar="True"
ui:TitleBar.IsBackButtonVisible="False"
ui:TitleBar.Height="36"
WindowStartupLocation="CenterScreen" UseLayoutRounding="True"
WindowStartupLocation="CenterScreen"
Closing="Window_Closing" Loaded="Window_Loaded" Activated="Window_Activated" Deactivated="Window_Deactivated" BorderBrush="{DynamicResource {x:Static ui:ThemeKeys.WindowBorderKey}}" BorderThickness="1" Icon="/MCSkinn;component/Resources/Icons/MCSkinn.ico" KeyDown="Window_KeyDown" Initialized="Window_Initialized">
<!--<WindowChrome.WindowChrome>
<WindowChrome UseAeroCaptionButtons="False"/>
Expand Down
15 changes: 7 additions & 8 deletions source/MCSkinn/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using MCSkinn.Dialogs;
using MCSkinn.Forms.Controls;
using MCSkinn.Scripts;
using iNKORE.Coreworks.Localization;
using MCSkinn.Scripts.Paril.OpenGL;
Expand All @@ -25,6 +24,7 @@
using Microsoft.AppCenter.Crashes;
using System.Windows.Media.Animation;
using iNKORE.UI.WPF.Modern.Media.Animation;
using iNKORE.UI.WPF.Modern.Controls.Helpers;

namespace MCSkinn
{
Expand All @@ -36,7 +36,7 @@ public partial class MainWindow : Window
public MainWindow()
{
InitializeComponent();
this.Title = "MCSkinn - Version " + Program.VersionFull;
this.Title = "MCSkinn - Version " + Program.Version;

//Program.Page_Editor.TextBlock_User.Text = Environment.UserName;

Expand Down Expand Up @@ -85,14 +85,14 @@ private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs

private void Window_Activated(object sender, EventArgs e)
{
if(!Program.IsNativeMicaSupported)
TitlebarOpacityAnimation(1d);
//if(!Program.IsNativeMicaSupported)
// TitlebarOpacityAnimation(1d);
}

private void Window_Deactivated(object sender, EventArgs e)
{
if (!Program.IsNativeMicaSupported)
TitlebarOpacityAnimation(0.45d);
//if (!Program.IsNativeMicaSupported)
// TitlebarOpacityAnimation(0.45d);
}

public static Duration TitlebarOpacityAnimationDuration = new Duration(TimeSpan.FromMilliseconds(500));
Expand Down Expand Up @@ -133,14 +133,13 @@ private void Frame_Main_Navigated(object sender, NavigationEventArgs e)

private void Window_KeyDown(object sender, KeyEventArgs e)
{

}

private void Window_Initialized(object sender, EventArgs e)
{
if (!GlobalSettings.CompatibilityMode)
{
iNKORE.UI.WPF.Modern.Controls.Primitives.WindowHelper.SetUseModernWindowStyle(this, true);
WindowHelper.SetUseModernWindowStyle(this, true);
}
else
{
Expand Down
Loading

0 comments on commit 92ed7bf

Please sign in to comment.