feat: rebrand to MMD PDF, single corporate theme, and remove original text under an edit

- Services/PdfRedactText.cs: strip text whose origin falls inside a CoverAnnotation
  from the page content stream at save time, hooked into PdfBurn.DrawAnnotationsIntoDoc.
  Fixes edited values staying recoverable by text extraction.
- Themes/MMD.xaml replaces all thirteen themes; picker and accent strip removed; no dark mode.
- Rename KillerPDF -> MMD PDF across code, resources, packaging and locale strings; new icon.
- Remove the upstream author credit and the in-app install button.
This commit is contained in:
2026-08-27 07:37:09 +02:00
parent 532485a830
commit 6610acfa44
230 changed files with 9362 additions and 11508 deletions
+38
View File
@@ -0,0 +1,38 @@
using System.Windows;
using Xunit;
namespace MmdPdf.Tests
{
public class FlyoutPlacementTests
{
[Fact]
public void LeftRailUsesBottomLeftContentCorner()
{
var placement = FlyoutPlacement.PaneCorner(
new Size(244, 460), new Size(1200, 700), alignRight: false)[0];
Assert.Equal(new Point(-16, 260), placement.Point);
}
[Fact]
public void RightRailMirrorsFlyoutToBottomRightContentCorner()
{
var placement = FlyoutPlacement.PaneCorner(
new Size(244, 460), new Size(1200, 700), alignRight: true)[0];
Assert.Equal(new Point(972, 260), placement.Point);
}
[Fact]
public void TallFlyoutStaysBelowToolbarOnEitherSide()
{
var left = FlyoutPlacement.PaneCorner(
new Size(244, 800), new Size(1200, 700), alignRight: false)[0];
var right = FlyoutPlacement.PaneCorner(
new Size(244, 800), new Size(1200, 700), alignRight: true)[0];
Assert.Equal(0, left.Point.Y);
Assert.Equal(0, right.Point.Y);
}
}
}