-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding system inktoolbar styles to winui (#4467)
* Added InkToolbar * Added InkToolbar Changes * Updated as per latest guidance * Round Corner changes and Removed reveal * Style updates * Removed SelectionAccent(underline) * Round Corner of Color Flyout * Slider style updates * Replaced Reveal Effects with winui ones * Shorten the selection accent and added cornerRadius to button borders * Formatting * Fixed Ruler and Protractor display and made round corner of selectionAccent * Replaced colors from Figma * Style updates * Decreased the margin for highlighter button flyout * Formatting * Added InkToolbar os version * Included the license header * Moved Comment location for flyout * Swapped Light and High Contrast Resource Dictionaries * Formatting * Added code to write on Ink Canvas Co-authored-by: Vivek Sharma <[email protected]> Co-authored-by: Ranjesh <[email protected]>
- Loading branch information
1 parent
adbd854
commit 20d6fd8
Showing
6 changed files
with
2,294 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. --> | ||
<Page | ||
x:Class="MUXControlsTestApp.InkToolbarPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
<StackPanel> | ||
<InkToolbar TargetInkCanvas="{x:Bind inkCanvas}"/> | ||
<InkCanvas x:Name="inkCanvas" Height="400"/> | ||
</StackPanel> | ||
</Page> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
using Windows.UI.Core; | ||
using Windows.UI.Input.Inking; | ||
using Windows.UI.Xaml.Controls; | ||
|
||
namespace MUXControlsTestApp | ||
{ | ||
[TopLevelTestPage(Name = "InkToolbar")] | ||
public sealed partial class InkToolbarPage : Page | ||
{ | ||
private InkPresenter _inkPresenter; | ||
|
||
public InkToolbarPage() | ||
{ | ||
this.InitializeComponent(); | ||
_inkPresenter = inkCanvas.InkPresenter; | ||
_inkPresenter.InputDeviceTypes = | ||
CoreInputDeviceTypes.Mouse | CoreInputDeviceTypes.Pen | CoreInputDeviceTypes.Touch; | ||
} | ||
} | ||
} |