Skip to content

Commit

Permalink
fix: add missing resources for appbarbutton (#1475)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3b05672)
  • Loading branch information
kazo0 authored and mergify[bot] committed Sep 19, 2024
1 parent c2b3842 commit 20cdb6a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/styles/AppBarButton.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
uid: Uno.Themes.Styles.AppBarButton
---

# AppBarButton Control

## Styles

| Style Key | IsDefaultStyle\* |
|--------------------------|------------------|
| `AppBarButtonStyle` | True |

IsDefaultStyle\*: Styles in this column will be set as the default implicit style for the matching control

## Lightweight Styling

| Key | Type | Value |
|-------------------------------------------------------|-------------------|------------------------------------|
| `AppBarButtonHeight` | `Double` | `64` |
| `AppBarButtonWidth` | `Double` | `64` |
2 changes: 2 additions & 0 deletions doc/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
# ***************** Reference\Lightweight Styling ******************
- name: Lightweight Styling
items:
- name: AppBarButton
href: styles/AppBarButton.md
- name: Button
href: styles/Button.md
- name: CheckBox
Expand Down
11 changes: 11 additions & 0 deletions src/library/Uno.Material/Styles/Controls/v2/AppBarButton.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@
xmlns:ios="http://uno.ui/ios"
xmlns:uuc="using:Uno.UI.Controls"
mc:Ignorable="android ios">
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<x:Double x:Key="AppBarButtonHeight">64</x:Double>
<x:Double x:Key="AppBarButtonWidth">64</x:Double>
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<x:Double x:Key="AppBarButtonHeight">64</x:Double>
<x:Double x:Key="AppBarButtonWidth">64</x:Double>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>

<Style x:Key="MaterialAppBarButtonStyle"
TargetType="AppBarButton">
<Setter Property="Background" Value="{ThemeResource AppBarButtonBackground}" />
Expand Down

0 comments on commit 20cdb6a

Please sign in to comment.