Skip to content

Commit

Permalink
Merge branch 'redesign' of https://github.com/UnicordDev/Unicord into…
Browse files Browse the repository at this point in the history
… redesign
  • Loading branch information
WamWooWam committed Sep 10, 2024
2 parents ea4e7e1 + 9b67ac8 commit 89f501e
Show file tree
Hide file tree
Showing 37 changed files with 1,163 additions and 915 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "Libraries/unicode.net"]
path = Libraries/unicode.net
url = https://github.com/wamwoowam/unicode.net
[submodule "Libraries/WindowsCommunityToolkit"]
path = Libraries/WindowsCommunityToolkit
url = https://github.com/UnicordDev/WindowsCommunityToolkit
2 changes: 1 addition & 1 deletion Libraries/DSharpPlus
1 change: 1 addition & 0 deletions Libraries/WindowsCommunityToolkit
2 changes: 1 addition & 1 deletion Unicord.Universal.Package/Package.ARM.Debug.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<Logo>Assets\Store\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.15035.0" MaxVersionTested="10.0.17763.0" />
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.15035.0" MaxVersionTested="10.0.16299.0" />
</Dependencies>
<Resources>
<Resource Language="EN-GB" />
Expand Down
2 changes: 1 addition & 1 deletion Unicord.Universal.Package/Package.ARM.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Logo>Assets\Store\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.15035.0" MaxVersionTested="10.0.17763.0" />
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.15035.0" MaxVersionTested="10.0.16299.0" />
</Dependencies>
<Resources>
<Resource Language="EN-GB" />
Expand Down
2 changes: 1 addition & 1 deletion Unicord.Universal.Package/Package.Debug.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<Logo>Assets\Store\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.15035.0" MaxVersionTested="10.0.17763.0" />
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.15035.0" MaxVersionTested="10.0.16299.0" />
</Dependencies>
<Resources>
<Resource Language="EN-GB" />
Expand Down
4 changes: 2 additions & 2 deletions Unicord.Universal.Package/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
IgnorableNamespaces="uap mp uap2 uap3 uap4 uap5 rescap">
<Identity Name="24101WamWooWamRD.Unicord" Publisher="CN=0F22111D-EDF0-42F0-B58D-26C4C5C5054B" Version="2.0.19.0" />
<Identity Name="24101WamWooWamRD.Unicord" Publisher="CN=0F22111D-EDF0-42F0-B58D-26C4C5C5054B" Version="2.0.21.0" />
<mp:PhoneIdentity PhoneProductId="5783aabf-3049-421f-ae1d-e88bd89018f2" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>ms-resource:AppDisplayName</DisplayName>
<PublisherDisplayName>Wan Kerr Co. Ltd.</PublisherDisplayName>
<Logo>Assets\Store\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.22000.0" />
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.15063.0" MaxVersionTested="10.0.22000.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate"/>
Expand Down
8 changes: 5 additions & 3 deletions Unicord.Universal.Package/Unicord.Universal.Package.wapproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,23 @@
<PropertyGroup>
<ProjectGuid>8e0255b7-b38e-423e-91c7-5637a01c2e13</ProjectGuid>
<TargetPlatformVersion>10.0.22000.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
<EntryPointProjectUniqueName>..\Unicord.Universal\Unicord.Universal.csproj</EntryPointProjectUniqueName>
<AppxOSMinVersionReplaceManifestVersion>false</AppxOSMinVersionReplaceManifestVersion>
<AppxOSMaxVersionTestedReplaceManifestVersion>false</AppxOSMaxVersionTestedReplaceManifestVersion>
<PackageCertificateThumbprint>2C5F1F6080F0648BF786147323B846D8D0BA1638</PackageCertificateThumbprint>
<GenerateAppInstallerFile>True</GenerateAppInstallerFile>
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
<AppxBundlePlatforms>x86|x64</AppxBundlePlatforms>
<AppxBundlePlatforms>x86|x64|arm</AppxBundlePlatforms>
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
<AppxBundle>Always</AppxBundle>
<AppInstallerUri>https://wamwoowam.co.uk/unicord/download</AppInstallerUri>
<!-- lol, lmao -->
<SkipMicrosoftUIXamlCheckTargetPlatformVersion>true</SkipMicrosoftUIXamlCheckTargetPlatformVersion>
</PropertyGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
Expand Down
2 changes: 2 additions & 0 deletions Unicord.Universal.Shared/NotificationUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ public static string GetMessageContent(DiscordClient client, DiscordMessage mess
return match.Value;
});
}
if (messageText.Length > 128)
messageText = messageText.Substring(0, 125) + "...";

return messageText;
}
Expand Down
4 changes: 2 additions & 2 deletions Unicord.Universal/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls"/>
<!-- TODO: V1/V2 resources globally -->
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" ControlsResourcesVersion="Version2"/>

<ResourceDictionary Source="Themes/Colours.xaml"/>
<ResourceDictionary Source="Themes/Generic.xaml"/>
Expand Down Expand Up @@ -76,7 +77,6 @@
<converters:UriConverter x:Key="UriConverter"/>

<commands:EditChannelCommand x:Key="EditChannelCommand"/>
<commands:EditModeCommand x:Key="EditModeCommand" />
<commands:SettingsCommand x:Key="SettingsCommand" />

<x:Double x:Key="ControlContentThemeFontSize">14</x:Double>
Expand Down
60 changes: 0 additions & 60 deletions Unicord.Universal/Commands/EditModeCommand.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public DeleteMessageCommand(MessageViewModel viewModel) : base(viewModel) { }
public override bool CanExecute(object parameter)
{
var message = viewModel.Message;
if (message.Author.Id == App.Discord.CurrentUser.Id)
if (message.Author.IsCurrent)
{
return true;
}
Expand Down
Loading

0 comments on commit 89f501e

Please sign in to comment.