Skip to content

Commit

Permalink
add padding to top app bar buttons to match other android apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Jun 8, 2024
1 parent 8e86026 commit f87f008
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ This theme is super-charged by [card-mod](https://github.com/thomasloven/lovelac

Redesigns the toolbar and sidebar buttons to follow Material You navigation component guidelines.

#### [Top App Bar](https://m3.material.io/components/top-app-bar/overview)

Separates out the sidebar toggle and dashboard menu (small width screens), and action items (large width screens) from the navigation toolbar into a separate top app bar.

- Non-view buttons appear at top of screen near their original locations.
- Buttons disappear when not scrolled to the top of the view.
- Buttons hover over the top of the view rather than the top app bar taking up space to give users the option to keep them as hover elements, or to create their own header using a card like markdown card or [button-card](https://github.com/custom-cards/button-card) as is done in the screenshots.

#### [Navigation Bar](https://m3.material.io/components/navigation-bar/overview)

- Converts the header toolbar to a footer.
Expand All @@ -68,7 +76,6 @@ Redesigns the toolbar and sidebar buttons to follow Material You navigation comp
- Adds view names below the view icons.
- Highlights the current view with a colored icon and background behind the icon.
- Transition animation on view icon background when selected.
- Separates out the drawer and kebab menu buttons to remain at the top of the screen and disappear on scroll.

#### [Navigation Drawer](https://m3.material.io/components/navigation-drawer/overview)

Expand Down
Binary file modified assets/comparison-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/comparison-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/components-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/components-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/custom-color-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/custom-color-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tiles-comparison-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tiles-comparison-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tiles-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tiles-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/common/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ha-menu-button,
position: fixed;
z-index: 3;
top: 0px;
padding: 0 4px;
transition: top 20ms ease-in-out 0s;
}
ha-menu-button {
Expand Down
2 changes: 1 addition & 1 deletion themes/material_rounded.yaml

Large diffs are not rendered by default.

0 comments on commit f87f008

Please sign in to comment.