Repository navigation
v0.2.0
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.
Contentis the "on" label andTagthe "off" label (omitTagto showContentin 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.
- DatePicker and Calendar — TextBox look with a calendar icon button; rounded day cells,
- 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.CalendarandOS2.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'sForeground.OS2.Effect.PopupShadow— shared drop shadow for floating surfaces.OS2.ButtonBase— shared font, size, padding and cursor setters for button-like controls.
Os2ResourceKeyconstants for the new keys, plusButton.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
Buttonstyles now inherit their shared setters fromOS2.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