Skip to content

v0.2.0

Choose a tag to compare

@jmerlan jmerlan released this 18 Nov 09:50

Added

  • Implicit styles for ten more controls — no Style= needed:
    • DatePicker and Calendar — TextBox look with a calendar icon button; rounded day cells,
      today outlined, selected day solid primary. Year/decade views are styled too.
    • ProgressBar — slim 6 px rounded bar. The fill follows Foreground, so
      Foreground="{DynamicResource OS2.Brush.Success}" recolours it. Indeterminate mode animates a sweep.
    • Hyperlink — primary blue, underlined on hover; disabled links stay underlined in grey.
    • ScrollViewer / ScrollBar — slim arrow-less scrollbars with a rounded thumb and a transparent corner.
    • Expander — bordered card with a SemiBold header and a chevron that flips when open.
    • ToggleButton — a sliding switch: dark grey when off, primary blue when on, with an animated knob.
      Content is the "on" label and Tag the "off" label (omit Tag to show Content in both positions).
      Three-state toggles park the knob mid-track.
    • TreeView / TreeViewItem — rotating chevrons, rounded hover rows, RowHighlight selection.
    • GridSplitter — 1 px grey line that turns primary blue on hover and drag.
    • ToolTip — dark toolbar-coloured bubble with white text and a soft shadow.
  • New keyed styles and resources:
    • OS2.ToggleButton.Segment — button-shaped toggle for segmented pickers (Day / Week / Month).
    • OS2.Button.Icon — square, transparent, glyph-only button.
    • OS2.Calendar and OS2.Calendar.Popup — calendar, without and with the floating shadow.
    • OS2.Geometry.ChevronDown, ChevronRight, ChevronLeft, Calendar — stroked glyph geometries.
    • OS2.Path.Glyph — Path style whose stroke follows the parent control's Foreground.
    • OS2.Effect.PopupShadow — shared drop shadow for floating surfaces.
    • OS2.ButtonBase — shared font, size, padding and cursor setters for button-like controls.
  • Os2ResourceKey constants for the new keys, plus Button.Subtle, which was missing.
  • Gallery sections for every new control.

Changed

  • All scrollbars in a themed window now use the slim OS2 style, including those inside ListBox,
    DataGrid and ComboBox drop-downs.
  • All Button styles now inherit their shared setters from OS2.ButtonBase. Their appearance is unchanged.
  • ComboBox drop-downs and context menus now use the shared OS2.Effect.PopupShadow. The shadow is
    marginally softer than before.

Install

dotnet add package TripleZeroLabs.Os2 --version 0.2.0

Assets

  • TripleZeroLabs.Os2.0.2.0.nupkg: the exact package published to nuget.org.
  • TripleZeroLabs.Os2-0.2.0-dlls.zip: the same DLLs for net48, net8.0-windows and net10.0-windows, for referencing without NuGet.

All DLLs are Authenticode-signed by Triple Zero Labs LLC.

Full changelog: https://github.com/TripleZeroLabs/TripleZeroLabs.Os2/blob/v0.2.0/CHANGELOG.md