Skip to content

Releases

v0.3.0

Choose a tag to compare

@jmerlan jmerlan released this 19 Nov 05:14

Added

  • Implicit styles for the remaining everyday WPF controls, so a themed window no longer shows stock Windows chrome:
    • RadioButton — the CheckBox row with a round box; selected is a solid primary circle with a white dot.
    • Slider — 4 px rounded track filled up to a white knob with a ring. The fill follows Foreground
      (like the ProgressBar). Tick marks and vertical orientation are supported.
    • ListView / GridView — with a GridView it matches the DataGrid: SemiBold grey headers on a 2 px
      baseline, hairline row dividers, solid primary selection, resizable columns. Without a View it looks like the ListBox.
    • ListBoxItem — rounded rows with a SurfaceAlt hover and RowHighlight selection (the TreeView look).
    • Menu (menu bar) — a Surface strip with a hairline baseline and rounded top-level items.
    • ToolBarTray / ToolBar — Surface strip with flat buttons, highlighted toggles, vertical separators,
      a dotted grip and an overflow popup. ComboBox, TextBox, CheckBox and RadioButton keep the OS2 look inside a toolbar.
    • StatusBar — Surface strip with a hairline on top, 12 px secondary text and vertical separators.
    • GroupBox — the Expander card without the chevron.
    • RichTextBox — the TextBox look as a multi-line editor, with compact paragraph spacing.
    • Separator — a 1 px hairline anywhere, not just in menus.
    • RepeatButton — an outlined neutral button for +/− steppers.
  • MenuItem now supports icons (Icon), check marks (IsCheckable), shortcut text (InputGestureText)
    and submenus, in the menu bar and in context menus.
  • New keyed resources:
    • OS2.Separator.Vertical — vertical hairline for horizontal rows.
    • Base styles to build on: OS2.TextInputBase, OS2.ChoiceBase, OS2.ListItemBase and the
      OS2.Template.SecondaryButton control template.
  • Os2ResourceKey.Separator and Os2ResourceKey.Base constants.
  • Gallery sections for every new control, including a small app frame (menu bar, toolbar, editor, status bar).

Changed

  • ListBox now has rounded corners and themed items. Items previously used the stock Windows highlight.
  • OS2.Path.Glyph takes its stroke from the inherited text colour instead of the nearest Control's
    Foreground. Glyphs look the same, but they now also work as menu icons and turn white on selected rows.
  • OS2.Button.Secondary shows a slightly darker fill while pressed.
  • TextBox, PasswordBox and RichTextBox share one base style and template; CheckBox and RadioButton share one
    base style. Their appearance is unchanged.

Fixed

  • Separators in context menus were invisible (the line was squeezed to zero height). They now draw a 1 px line.

Install

dotnet add package TripleZeroLabs.Os2 --version 0.3.0

Assets

  • TripleZeroLabs.Os2.0.3.0.nupkg: the exact package published to nuget.org.
  • TripleZeroLabs.Os2-0.3.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.3.0/CHANGELOG.md

v0.2.1

Choose a tag to compare

@jmerlan jmerlan released this 19 Nov 01:16

Fixed

  • Os2MessageBox no longer crashes inside host applications such as Revit. It used to set Owner to
    Application.Current.MainWindow, a window the host never shows, so WPF threw
    InvalidOperationException ("Cannot set Owner property to a Window that has not been shown previously").
    A window, including one you pass in, now owns the box only when it is loaded and visible on the same
    UI thread; otherwise the box is centred on the screen. Inside a host app, pass your own visible window
    as owner.

Install

dotnet add package TripleZeroLabs.Os2 --version 0.2.1

Assets

  • TripleZeroLabs.Os2.0.2.1.nupkg: the exact package published to nuget.org.
  • TripleZeroLabs.Os2-0.2.1-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.1/CHANGELOG.md

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