Skip to content

v1.9.0

Choose a tag to compare

@github-actions github-actions released this 24 Oct 10:53
· 115 commits to main since this release
68d5d47

📋 What's Changed

Added

  • Sizing: DaisySize.Auto (-1) is the default Size of every Daisy control. An Auto control takes the size of its containing composite control (button group, avatar group, list row, steps, dock, Fab, accordion, weather forecast) or the global size; ResolvedSize reports the concrete tier. The five tiers keep their values 0 to 4. FlowerySizeManager.ResolveSize resolves a requested size for an element.
  • DaisyButton.ContentPadding (Thickness?) and ResolvedContentPadding; DaisyCard.ResolvedBodyPadding.
  • DaisyAccordion and DaisyAccordionItem: Size. An accordion's size is the default for its items.
  • DaisyStat: ValueFontSize and LabelFontSize.
  • DaisyBreadcrumbs and DaisyBreadcrumbItem: SeparatorBrush. The item's brush wins over the container's.
  • DaisyNumberFlow.DigitForeground.
  • DaisyMenuItem.IsTitle: a non-interactive section heading (Primary, bold, Base300 divider below) that pointer, keyboard and selection skip.
  • Theming: every palette, including registered custom palettes, provides DaisyBaseContentMuted (70 % of BaseContent), DaisyBaseContentSubtle and DaisyBaseContentDisabled (50 %), and DaisyButton{Variant}Soft, SoftHover and SoftBorder (15, 30 and 45 % of the variant color; Business Primary Soft 12 %) colors and brushes. A color or brush the palette defines itself is kept; high contrast keeps its own brushes.

Changed

  • Breaking: Sizing: an unset Size now reads Auto. Code that reads Size for layout or token lookups must read ResolvedSize. Constructors, DaisyControlLifecycle, the size manager and the Gallery no longer write Size, so explicit values, styles and bindings keep their precedence and an explicit Medium stays explicit when the global size changes. Without a global size, Auto resolves to Medium, to Small for DaisyModifierKeys, DaisyDivider, DaisyTabsHeaderButtons and DaisyTagPicker, and to Large for DaisyFab.
  • Breaking: FlowerySizeManager.ApplySize throws ArgumentOutOfRangeException for Auto or a value outside the five tiers. With EnableGlobalAutoSize set to false it no longer refreshes responsive TextBlocks; RefreshAllSizes catches up all loaded controls.
  • Breaking: DaisyControlLifecycle only handles theme changes. Its constructor no longer takes getSize, setSize and subscribeSizeChanges. The protected DaisyComboBoxBase(bool subscribeSizeChanges) constructor is removed.
  • Breaking: DaisyBaseContentControl: the virtual OnGlobalSizeChanged and SetControlSize are replaced by OnResolvedSizeChanged and DefaultSize.
  • Breaking: Button: Padding is outer spacing added to the automatic inner padding. Code that set Padding to replace the inner padding sets ContentPadding instead; null selects the automatic padding, zero is kept. Custom templates bind ResolvedContentPadding.
  • Breaking: Card: BodyPadding is Thickness?. null selects 16/24/32/40/48 by tier (half in Compact); explicit values including zero survive size and variant changes. XAML values stay valid; code and custom templates that need the concrete value read ResolvedBodyPadding.
  • Composite controls give Auto children their size without overwriting a child's own Size. Dock no longer writes its items' IconSize or IgnoreGlobalSize; a supplied DaisyWeatherForecastItem keeps its Size.
  • Soft buttons and button groups use the Soft surface, hover and border brushes in the seven color variants.
  • Breadcrumbs: separators use the Subtle brush at SeparatorOpacity 1 (an explicit opacity still multiplies); the last item uses Muted. Authored content inherits the item's foreground.
  • Stat: title and description use the Muted brush at full opacity. Input, PasswordBox and TextArea: hint, helper and optional text use Muted, placeholders Subtle. CalendarDatePicker: the date hint uses the placeholder brush, a selected date the full foreground.
  • ThemeController: the checkbox mode follows the checkbox size tokens.
  • Gallery: the sidebar takes the library widths 190/205/220/235/250 per tier, the four selectors stretch to the sidebar width, and a size change keeps the pane open or closed. Gallery and Photos ignore a saved global size that is not one of the five tiers.
  • Gallery: in the glass demos of the Cards page (Glass Card, DaisyGlass Simulated, Bitmap Capture and Full Width), every card or glass panel has a row of six stars. Two stay left of it and four run half behind its lower edge, so sharp and covered stars sit side by side; the cards are 100 apart to make room. In the Glass Card demo, the comparison caption sits above the cards.
  • Runtime tests run in English, whatever the saved Gallery language.
  • Build: the Skia backdrop capture and image processor call the DrawBitmap overloads with SKSamplingOptions; the obsolete overloads raised CS0618.
  • Build: the Kiosk smoke report has an inconclusive outcome. A scaling checkpoint whose only problem is a zoom panel overflowing the slide is inconclusive instead of failed; its text measures taller in local console sessions than over Remote Desktop. test_kiosk.ps1 lists inconclusive checks as warnings and fails only on failed checks.
  • Build: test_windows.ps1, test_kiosk.ps1 and run-kiosk.ps1 accept -WindowRegion UpperHalf, and the Gallery, Kiosk and Photos accept FLOWERY_MONITOR_REGION=upper-half, to place the window in the upper half of the chosen monitor. The physical rendering probe checks that region too. Window placement stays optional: run-kiosk.ps1 no longer defaults to monitor 2 and, like the test scripts, leaves the window to Windows unless -Monitor is given.
  • Release: every release asset has a signed build provenance attestation, verifiable with gh attestation verify <file> --repo tobitege/Flowery.WinUI, and SHA256SUMS.txt lists the SHA-256 checksum of each asset. The release notes explain both checks.

Fixed

  • Button: an authored MinWidth, including one from a style or binding, is kept. Every size or shape update reset it to 0 (200 for Wide); the Wide shape still supplies 200 when nothing else sets a minimum width, and leaving Wide removes only that value.
  • IconText: a control that loads again shows its current Text and icon. Changes made while it was unloaded, for example in a hidden tab, kept the old content.
  • Glass: DaisyGlass applies its Padding to the content. It builds its visual tree in code and ignored Padding, so the content touched the edges and the glass was only as tall as its content.
  • Tooltip: a tooltip opened with IsOpen closes when the control unloads, for example on navigation, and opens again when it loads while IsOpen is still true. It stayed on screen without its owner, partly outside the window. IsOpen set before the first load now opens the tooltip too.
  • Tour: a step no longer closes when another scroll, such as a page control bringing itself into view, moves its target out of view. The tour scrolls the targets into view again and closes with TargetUnavailable only when the target stays hidden. This made the Gallery connector demo test fail intermittently.

📦 Library

Asset Description
Flowery.WinUI.1.9.0.nupkg NuGet package (also on nuget.org)
Flowery.WinUI-lib.zip Compiled DLL and PDB

🌸 Gallery Demo App

Self-contained executable for demoing Flowery.WinUI controls (no .NET install required).

Platform Download
Windows x64 Flowery.WinUI.Gallery-Windows-x64.zip
Windows x64 Kiosk Flowery.WinUI.Kiosk-Windows-x64.zip

🖼️ Flowery Photos

Photo viewer and editor built with Flowery.WinUI (no .NET or Windows App SDK install required). The per-user installer adds a Start menu entry and an uninstaller. Alternatively, extract the portable ZIP and keep all its files together.

Asset Description
Flowery.WinUI.Photos-Setup-1.9.0-x64.exe Per-user installer (Windows x64)
Flowery.WinUI.Photos-Windows-x64.zip Portable app (Windows x64); run Flowery.WinUI.Photos.exe

🔐 Verify downloads

This workflow built every asset above and attested its build provenance. To check that a file comes from this repository and release build:

gh attestation verify <file> --repo tobitege/Flowery.WinUI

SHA256SUMS.txt lists the SHA-256 checksum of every asset; check all of them with sha256sum -c SHA256SUMS.txt, or one file in PowerShell with Get-FileHash <file>. The packages on nuget.org carry nuget.org's repository signature, so their checksums differ from the release assets.

What's Changed

  • Implement package 7 sizing ownership and visual defaults by @tobitege in #39
  • Reveal a hidden tour target from every geometry update by @tobitege in #40
  • Attest release assets and publish their checksums by @tobitege in #41
  • Apply DaisyGlass padding to its content by @tobitege in #42

Full Changelog: v1.8.1...v1.9.0