Skip to content

Commit

Permalink
Merge branch 'testing'
Browse files Browse the repository at this point in the history
rayenghanmi committed Jan 20, 2025
2 parents 88791dd + 5326da0 commit 8f1afb6
Showing 33 changed files with 1,374 additions and 492 deletions.
7 changes: 7 additions & 0 deletions App.xaml.cs
Original file line number Diff line number Diff line change
@@ -44,6 +44,9 @@ public IHost Host
get;
}

public static void ShowNotification(string title, string message, Microsoft.UI.Xaml.Controls.InfoBarSeverity severity, int duration) =>
ShellPage.ShowNotification(title, message, severity, duration);

public static T GetService<T>()
where T : class
{
@@ -115,6 +118,10 @@ protected async override void OnLaunched(LaunchActivatedEventArgs args)
{
base.OnLaunched(args);

// setting custom title bar when the app starts to prevent it from briefly show the standard titlebar
MainWindow.AppWindow.TitleBar.ExtendsContentIntoTitleBar = true;
MainWindow.AppWindow.TitleBar.ButtonBackgroundColor = Microsoft.UI.Colors.Transparent;

if (ApplicationData.Current.LocalSettings.Values.TryGetValue("JustUpdated", out var value))
{
ApplicationData.Current.LocalSettings.Values["JustUpdated"] = false;
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,34 @@

All notable changes to this branch will be documented in this file.

## 1.2.0 - Released

### Added

- Introduced a toggle in the `Optimize` page to disable Service Host splitting for improved performance.
- Added options in the `Features` page to enable or disable Dark Mode and transparency effects without the need to activate Windows.
- Implemented an option in the `Optimize` page to reduce system binary sizes for freeing up disk space.
- Added a switch to disable background apps in the `Optimize`.
- Integrated lazy loading to improve performance when displaying app icons in the `appsTreeView`.

### Fixes

- Resolved issues where certain apps could not be uninstalled.
- Fixed minor translation issues to enhance language support.
- Corrected an issue where Snap Assist wasn't disabled when toggling the corresponding option.
- Fixed a bug causing the taskbar search to be hidden when toggling `Disable Quick History Access`.
- Addressed missing icons on Windows 10 for better visual consistency.
- Resolved an issue where the repair progress bar did not reset after operation completion.

### Changes

- Updated the UI to fallback to Acrylic when Mica material is not supported (Windows 10).
- Optimized the process for retrieving installed apps and improved app removal performance.
- Increased the speed of fetching installed apps to reduce load times.
- Expanded and improved commands for clearing temporary files.
- Enhanced the user experience on the `Debloat` page for better usability.


## 1.0.1 - Released

### Added
4 changes: 3 additions & 1 deletion Helpers/LogHelper.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System.Diagnostics;
using System.Text;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Media;
using Windows.Storage;
using System.Text;

internal class LogHelper
{
@@ -26,6 +27,7 @@ private static async Task InitializeErrorMessage(string errorMessage, XamlRoot x
{
Title = "Error",
Style = (Style)Application.Current.Resources["DefaultContentDialogStyle"],
BorderBrush = (SolidColorBrush)Application.Current.Resources["AccentAAFillColorDefaultBrush"],
Content = errorMessage,
CloseButtonText = "Close",
PrimaryButtonText = "Open Logs File",
292 changes: 192 additions & 100 deletions Helpers/OptimizationOptions.cs

Large diffs are not rendered by default.

137 changes: 131 additions & 6 deletions Helpers/OptimizeSystemHelper.cs

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -6,11 +6,8 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:windowex="using:WinUIEx"
MinWidth="500"
MinWidth="620"
MinHeight="500"
PersistenceId="MainWindow"
mc:Ignorable="d">
<Window.SystemBackdrop>
<MicaBackdrop/>
</Window.SystemBackdrop>
</windowex:WindowEx>
21 changes: 18 additions & 3 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using RyTuneX.Helpers;

using Windows.UI.ViewManagement;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Composition.SystemBackdrops;

namespace RyTuneX;

public sealed partial class MainWindow : WindowEx
{
private readonly Microsoft.UI.Dispatching.DispatcherQueue dispatcherQueue;

private readonly UISettings settings;

public MainWindow()
@@ -22,9 +22,24 @@ public MainWindow()
dispatcherQueue = Microsoft.UI.Dispatching.DispatcherQueue.GetForCurrentThread();
settings = new UISettings();
settings.ColorValuesChanged += Settings_ColorValuesChanged; // cannot use FrameworkElement.ActualThemeChanged event

// Set the appropriate backdrop
SetBackdrop();
}

private void SetBackdrop()
{
if (MicaController.IsSupported())
{
SystemBackdrop = new MicaBackdrop();
}
else
{
SystemBackdrop = new DesktopAcrylicBackdrop();
}
}

// this handles updating the caption button colors correctly when indows system theme is changed
// this handles updating the caption button colors correctly when windows system theme is changed
// while the app is open
private void Settings_ColorValuesChanged(UISettings sender, object args)
{
2 changes: 1 addition & 1 deletion Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
<Identity
Name="Rayen.RyTuneX"
Publisher="CN=Rayen"
Version="1.0.1.0" />
Version="1.2.0.0" />

<mp:PhoneIdentity PhoneProductId="593c7ba8-f1c9-47cf-a952-7c22b10aac3a" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

18 changes: 7 additions & 11 deletions RyTuneX.csproj
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
<AppxSymbolPackageEnabled>False</AppxSymbolPackageEnabled>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
<Version>1.0.1</Version>
<Version>1.2.0</Version>
<Authors>Rayen Ghanmi</Authors>
</PropertyGroup>
<ItemGroup>
@@ -54,12 +54,12 @@
<PackageReference Include="CommunityToolkit.WinUI.Behaviors" Version="8.1.240916" />
<PackageReference Include="CommunityToolkit.WinUI.Controls.Primitives" Version="8.1.240916" />
<PackageReference Include="CommunityToolkit.WinUI.Controls.SettingsControls" Version="8.1.240916" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.241114003" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="9.0.0" />
<PackageReference Include="System.Drawing.Common" Version="9.0.0" />
<PackageReference Include="System.Management" Version="9.0.0" />
<PackageReference Include="System.ServiceProcess.ServiceController" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.1" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.250108002" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="9.0.1" />
<PackageReference Include="System.Drawing.Common" Version="9.0.1" />
<PackageReference Include="System.Management" Version="9.0.1" />
<PackageReference Include="System.ServiceProcess.ServiceController" Version="9.0.1" />
<PackageReference Include="vocaluxe.dependencies.netfwtypelib" Version="1.0.1" />
<PackageReference Include="WinUIEx" Version="2.5.0" />
<PackageReference Include="System.Management.Automation" Version="7.4.6" />
@@ -102,10 +102,6 @@
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
<ProjectCapability Include="Msix" />
</ItemGroup>

<PropertyGroup Label="Globals">
<WebView2EnableCsWinRTProjection>False</WebView2EnableCsWinRTProjection>
</PropertyGroup>

<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
3 changes: 0 additions & 3 deletions Services/ThemeSelectorService.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using Microsoft.UI;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Media.Imaging;
using RyTuneX.Contracts.Services;
using RyTuneX.Helpers;
using RyTuneX.Views;
using System.IO;
using Windows.UI.ViewManagement;

namespace RyTuneX.Services;
63 changes: 60 additions & 3 deletions Strings/ar-tn/Resources.resw
Original file line number Diff line number Diff line change
@@ -162,8 +162,8 @@
<data name="DebloatSystemPage_FetchingInstalledApps.Text" xml:space="preserve">
<value>جلب بيانات التطبيقات المثبتة...</value>
</data>
<data name="DebloatSystemPage_ShowAll.Content" xml:space="preserve">
<value>عرض الكل</value>
<data name="DebloatSystemPage_AppsFilter.Text" xml:space="preserve">
<value>تصفية حسب:</value>
</data>
<data name="DebloatSystemPage_UninstallButton.Content" xml:space="preserve">
<value>إلغاء تثبيت التطبيق(ات) المحدد(ة)</value>
@@ -1223,7 +1223,7 @@
<data name="OperationCompleted" xml:space="preserve">
<value>اكتملت العملية</value>
</data>
<data name="RestorePointTitle_ar-tn" xml:space="preserve">
<data name="RestorePointTitle" xml:space="preserve">
<value>نقطة الاستعادة</value>
</data>
<data name="Warning" xml:space="preserve">
@@ -1258,4 +1258,61 @@
<data name="DebloatSystemPage_SearchBar.PlaceholderText" xml:space="preserve">
<value>ابحث عن التطبيقات...</value>
</data>
<data name="Feature_BackgroundApps.Header" xml:space="preserve">
<value>تعطيل التطبيقات الخلفية</value>
</data>
<data name="Feature_BackgroundApps.Description" xml:space="preserve">
<value>يمنع التطبيقات من العمل في الخلفية، مما يؤدي إلى تحسين الأداء في بعض الحالات.</value>
</data>
<data name="Feature_EnableWindowsDarkMode.Header" xml:space="preserve">
<value>تفعيل وضع الظلام في ويندوز</value>
</data>
<data name="Feature_EnableWindowsDarkMode.Description" xml:space="preserve">
<value>تمكين وضع الظلام لكامل النظام دون الحاجة لتفعيل ويندوز</value>
</data>
<data name="Feature_DisableWindowsTransparency.Header" xml:space="preserve">
<value>تعطيل شفافية ويندوز</value>
</data>
<data name="Feature_DisableWindowsTransparency.Description" xml:space="preserve">
<value>يعطل التأثيرات الشفافة في عناصر واجهة النظام مثل شريط المهام والنوافذ، مما يحسن الأداء</value>
</data>
<data name="DebloatSystemPage_StandardApps.Content" xml:space="preserve">
<value>التطبيقات القياسية</value>
</data>
<data name="DebloatSystemPage_AllApps.Content" xml:space="preserve">
<value>جميع التطبيقات</value>
</data>
<data name="DebloatSystemPage_Win32Apps.Content" xml:space="preserve">
<value>تطبيقات Win32</value>
</data>
<data name="OptimizePage_CompressOS.Header" xml:space="preserve">
<value>ضغط النظام</value>
</data>
<data name="OptimizePage_CompressOS.Description" xml:space="preserve">
<value>تمكين ضغط نظام التشغيل لتقليل استخدام مساحة القرص. هذه الميزة مفيدة بشكل خاص للأجهزة ذات السعة التخزينية المحدودة، لكنها قد تؤثر قليلاً على أداء النظام في الأجهزة ذات المواصفات المنخفضة</value>
</data>
<data name="Compressing" xml:space="preserve">
<value>جاري ضغط ملفات النظام...</value>
</data>
<data name="Decompressing" xml:space="preserve">
<value>جاري فك ضغط ملفات النظام...</value>
</data>
<data name="OptimizePage_CompressOSButton.Content" xml:space="preserve">
<value>تحقق من الضغط</value>
</data>
<data name="Compress" xml:space="preserve">
<value>ضغط</value>
</data>
<data name="Decompress" xml:space="preserve">
<value>فك الضغط</value>
</data>
<data name="SystemCompressionTitle" xml:space="preserve">
<value>ضغط النظام</value>
</data>
<data name="Feature_ServiceHostSplitting.Header" xml:space="preserve">
<value>تعطيل تقسيم مستضيف الخدمة</value>
</data>
<data name="Feature_ServiceHostSplitting.Description" xml:space="preserve">
<value>يقوم بتعطيل تقسيم مستضيف الخدمة لتقليل استخدام ذاكرة الوصول العشوائي وعدد العمليات.</value>
</data>
</root>
63 changes: 60 additions & 3 deletions Strings/de/Resources.resw
Original file line number Diff line number Diff line change
@@ -162,8 +162,8 @@
<data name="DebloatSystemPage_FetchingInstalledApps.Text" xml:space="preserve">
<value>Daten für installierte Apps werden abgerufen...</value>
</data>
<data name="DebloatSystemPage_ShowAll.Content" xml:space="preserve">
<value>Alle anzeigen</value>
<data name="DebloatSystemPage_AppsFilter.Text" xml:space="preserve">
<value>Filtern nach:</value>
</data>
<data name="DebloatSystemPage_UninstallButton.Content" xml:space="preserve">
<value>Ausgewählte App(s) deinstallieren</value>
@@ -1220,7 +1220,7 @@ Sind Sie sicher, dass Sie fortfahren möchten?</value>
<data name="OperationCompleted" xml:space="preserve">
<value>Vorgang abgeschlossen</value>
</data>
<data name="RestorePointTitle_de-de" xml:space="preserve">
<data name="RestorePointTitle" xml:space="preserve">
<value>Wiederherstellungspunkt</value>
</data>
<data name="Warning" xml:space="preserve">
@@ -1255,4 +1255,61 @@ Sind Sie sicher, dass Sie fortfahren möchten?</value>
<data name="DebloatSystemPage_SearchBar.PlaceholderText" xml:space="preserve">
<value>Apps suchen...</value>
</data>
<data name="Feature_BackgroundApps.Header" xml:space="preserve">
<value>Hintergrund-Apps deaktivieren</value>
</data>
<data name="Feature_BackgroundApps.Description" xml:space="preserve">
<value>Verhindert, dass Apps im Hintergrund ausgeführt werden, was in einigen Fällen zu einer verbesserten Leistung führt.</value>
</data>
<data name="Feature_EnableWindowsDarkMode.Header" xml:space="preserve">
<value>Windows Dunkelmodus aktivieren</value>
</data>
<data name="Feature_EnableWindowsDarkMode.Description" xml:space="preserve">
<value>Aktivieren Sie den Dunkelmodus für das gesamte System, ohne Windows aktivieren zu müssen</value>
</data>
<data name="Feature_DisableWindowsTransparency.Header" xml:space="preserve">
<value>Windows-Transparenz deaktivieren</value>
</data>
<data name="Feature_DisableWindowsTransparency.Description" xml:space="preserve">
<value>Deaktiviert transparente Effekte in System-UI-Elementen wie der Taskleiste und Fenstern, was die Leistung verbessert</value>
</data>
<data name="DebloatSystemPage_StandardApps.Content" xml:space="preserve">
<value>Standard-Apps</value>
</data>
<data name="DebloatSystemPage_AllApps.Content" xml:space="preserve">
<value>Alle Apps</value>
</data>
<data name="DebloatSystemPage_Win32Apps.Content" xml:space="preserve">
<value>Win32-Apps</value>
</data>
<data name="OptimizePage_CompressOS.Header" xml:space="preserve">
<value>System komprimieren</value>
</data>
<data name="OptimizePage_CompressOS.Description" xml:space="preserve">
<value>Aktivieren Sie die Kompression des Betriebssystems, um den Festplattenspeicher zu reduzieren. Diese Funktion ist besonders nützlich für Geräte mit begrenztem Speicherplatz, kann jedoch die Systemleistung auf Geräten mit niedrigerer Hardware leicht beeinträchtigen</value>
</data>
<data name="Compressing" xml:space="preserve">
<value>Systemdateien werden komprimiert...</value>
</data>
<data name="Decompressing" xml:space="preserve">
<value>Systemdateien werden dekomprimiert...</value>
</data>
<data name="OptimizePage_CompressOSButton.Content" xml:space="preserve">
<value>Kompression prüfen</value>
</data>
<data name="Compress" xml:space="preserve">
<value>Komprimieren</value>
</data>
<data name="Decompress" xml:space="preserve">
<value>Dekomprimieren</value>
</data>
<data name="SystemCompressionTitle" xml:space="preserve">
<value>Systemkompression</value>
</data>
<data name="Feature_ServiceHostSplitting.Header" xml:space="preserve">
<value>Service-Host-Splitting deaktivieren</value>
</data>
<data name="Feature_ServiceHostSplitting.Description" xml:space="preserve">
<value>Deaktiviert das Service-Host-Splitting, um den RAM-Verbrauch und die Prozessanzahl erheblich zu reduzieren.</value>
</data>
</root>
Loading

0 comments on commit 8f1afb6

Please sign in to comment.