Unified class-based styling, PathIcon icon set and SearchBox redesign - #382
Open
hendrikmennen wants to merge 8 commits into
Open
hendrikmennen wants to merge 8 commits into
hendrikmennen wants to merge 8 commits into
Conversation
Restore the Viewbox in the PathIcon template so geometries that are not square (e.g. the DropDownButton chevron) are centered instead of being drawn at the top. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds one shared, class-based design layer on top of Avalonia SimpleTheme in
OneWare.Essentials, and moves the views over to it so the IDE and plugins look the same.Design system (
src/OneWare.Essentials/Styles/)OneWareTheme.axamlis the entry point, included once fromOneWare.Core/App.axaml. Plugins get it from the host.Tokens.axamlplusTokensDark.axaml/TokensLight.axaml. They keep the SimpleTheme key names and add status colors, radii, spacing, font sizes and control and icon sizes. The dark theme keeps the original OneWare palette.Controls/*.axamlholds one style file per control family. The Buttons, Borders, TextBoxes, ComboBoxes, ListBox, TreeView, TabControl, Menu, ScrollViewer and Expander styles moved here fromOneWare.Core/Styles.h1–h4,muted,caption, …primary,secondary,ghost,danger,link,icon, …card,panel,inset,badge,callout, …toolbar,form,form-row, …Heightof 24 instead of aMinHeight, so an inlineHeighton a view still wins.Icons
Styles/Icons.axamladds 152 monochromeIcon.*geometries. They are scaled to a 24×24 frame with consistent optical size.Foreground, so they follow button, hover and selection colors. Classes:small,large,muted,accent,success,warning,error.DrawingImagekeys still exist as thin wrappers, soIconModeland C# callers keep working. Multi-color icons are unchanged.<Image Source=…>to<PathIcon Data=…>.SearchBox
SearchBoxis now a singleTextBoxwith a leading search icon, a clear button that shows only when there is text, and a newIsBusyspinner.Views
Docs and tooling
docs/Styling.mdcovers tokens, classes, icons and SearchBox.docs/PluginDevelopment.mdgets a Styling section.Testing
dotnet build OneWare.slnxsucceeds anddotnet test OneWare.slnxpasses.Companion plugin PR: one-ware/OneWare.AI#739. It runs against the current Essentials package and uses
DynamicResource Icon.*until the package version is bumped.