Skip to content

Commit 2791203

Browse files
committed
DynamicColorTool: improve layout and update demo defaults
- Removes the ScrollViewer from the main layout of DynamicColorTool. - Sets the navigation drawer to be closed by default in the demo application. - Modernizes collection initialization in DynamicColorToolViewModel using collection expressions. - Adjusts the Z-order and hit testing for the copy color button in the color tiles to improve interaction.
1 parent 87e410f commit 2791203

3 files changed

Lines changed: 265 additions & 268 deletions

File tree

src/MaterialDesign3.Demo.Wpf/Domain/DynamicColorToolViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,13 +369,13 @@ public IReadOnlyList<DynamicColorGridTile> CustomTonalPaletteTiles
369369
{
370370
get;
371371
private set => SetProperty(ref field, value);
372-
} = Array.Empty<DynamicColorGridTile>();
372+
} = [];
373373

374374
public IReadOnlyList<DynamicColorGridTile> CustomSemanticColorTiles
375375
{
376376
get;
377377
private set => SetProperty(ref field, value);
378-
} = Array.Empty<DynamicColorGridTile>();
378+
} = [];
379379

380380
public Brush PrimaryBrush => CreateBrush(PrimaryColor);
381381

0 commit comments

Comments
 (0)