You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/maker/model-driven-apps/create-themes-organization-branding.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Change the color scheme or add a logo to match your brand (contains video) | MicrosoftDocs"
3
3
description: Learn how to change the color scheme for your app with Power Apps
4
4
ms.custom: ""
5
-
ms.date: 01/12/2021
5
+
ms.date: 10/16/2023
6
6
ms.reviewer: ""
7
7
ms.suite: ""
8
8
ms.tgt_pltfrm: ""
@@ -17,11 +17,11 @@ search.audienceType:
17
17
---
18
18
# Use a theme to create a custom look for your app
19
19
20
-
21
-
22
20
You can create a custom look and feel (a theme), for your app by making changes to the default colors and visual elements provided in the uncustomized system. For example, you can create your personal product branding by adding a company logo and providing table-specific coloring. A theme can be created by using the **Themes** area, without requiring a developer to write code. You can create, clone, change, or delete themes that are used in your environment.
23
21
24
22
> [!NOTE]
23
+
> We recommend you use the new way to create themes in model-driven apps. More information: [Use modern themes](modern-theme-overrides.md)
24
+
>
25
25
> You can define multiple themes, but only a single theme can be active in an environment and is identified as the default theme. To make a theme active, you publish it.
Copy file name to clipboardExpand all lines: powerapps-docs/maker/model-driven-apps/modern-theme-overrides.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ search.audienceType:
16
16
17
17
# Use modern themes
18
18
19
-
Model-driven apps with the [modern, refreshed look for model-driven apps](../../user/modern-fluent-design.md) provide updated styling aligned to the Microsoft Fluent 2 design system. As part of the updated styling, makers can can modify the colors used by the app header. Because this modern refreshed look comes with a new theming system, [classic theming](create-themes-organization-branding.md)is not honored. In this article, you learn about the styling overrides available with the modern, refreshed look and how to implement them for your organization.
19
+
Model-driven apps with the [modern, refreshed look for model-driven apps](../../user/modern-fluent-design.md) provide updated styling aligned to the Microsoft Fluent 2 design system. As part of the updated styling, makers can modify the colors used by the app header. Because this modern refreshed look comes with a new theming system, [classic theming](create-themes-organization-branding.md)isn't honored. In this article, you learn about the styling overrides available with the modern, refreshed look and how to implement them for your organization.
20
20
21
21
## Modify the app header colors
22
22
@@ -31,14 +31,14 @@ The first step to modifying the app header styling is to create an XML file with
31
31
32
32
The following styling options for the app header are available:
33
33
34
-
-**Background** – The background color of the app header. This element must be defined for any changes to take effect.
35
-
-**Foreground** – The text color of the app header. If this is not specified, the system will attempt to calculate an appropriate color that has sufficient contrast to the provided background color.
36
-
-**BackgroundHover** – The background color of buttons on the app header when they are hovered over. If no value is specified, the system will calculate a color based on the background color.
37
-
-**ForegroundHover** – The text color of buttons on the app header when they are hovered over. If no value is specified, the system will attempt to calculate an appropriate color that has sufficient contrast to the backgroundHover color.
38
-
-**BackgroundPressed** – The background color of buttons on the app header when they are pressed. The defaulting logic is the same as backgroundHover.
39
-
-**ForegroundPressed** – The text color of buttons on the app header when they are pressed. The defaulting logic is the same as foregroundHover.
40
-
-**BackgroundSelected** – The background color of buttons on the app header when they are selected. The defaulting logic is the same as backgroundHover.
41
-
-**ForegroundSelected** – The text color of buttons on the app header when they are selected. The defaulting logic is the same as backgroundHover.
34
+
-`Background` – The background color of the app header. This element must be defined for any changes to take effect.
35
+
-`Foreground` – The text color of the app header. If this isn't specified, the system attempts to calculate an appropriate color that has sufficient contrast to the provided background color.
36
+
-`BackgroundHover` – The background color of buttons on the app header when they're hovered over. If no value is specified, the system calculates a color based on the background color.
37
+
-`ForegroundHover` – The text color of buttons on the app header when they're hovered over. If no value is specified, the system attempts to calculate an appropriate color that has sufficient contrast to the backgroundHover color.
38
+
-`BackgroundPressed` – The background color of buttons on the app header when they're pressed. The defaulting logic is the same as backgroundHover.
39
+
-`ForegroundPressed` – The text color of buttons on the app header when they're pressed. The defaulting logic is the same as foregroundHover.
40
+
-`BackgroundSelected` – The background color of buttons on the app header when they're selected. The defaulting logic is the same as backgroundHover.
41
+
-`ForegroundSelected` – The text color of buttons on the app header when they're selected. The defaulting logic is the same as backgroundHover.
42
42
43
43
Your XML file should be formatted as follows:
44
44
@@ -73,7 +73,7 @@ As an example, this XML specifies a green background color for the app header wi
73
73
74
74
### Create the web resource
75
75
76
-
1. Using a text or XML editor, save the XML that will be used to create the web resource. [Example XML for a modern theme](#example-xml-for-a-modern-theme)
76
+
1. Using a text or XML editor, save the XML that is used to create the web resource. [Example XML for a modern theme](#example-xml-for-a-modern-theme)
77
77
1. Sign into [Power Apps](https://make.powerapps.com/), select **Solutions** on the left navigation pane, and then create a **New solution**.
78
78
1. Select **Solutions** on the left navigation pane, and then create a **New solution**.
79
79
1. Select **New** > **More** > **Web resource**.
@@ -91,7 +91,7 @@ After you’ve selected your colors and created the XML resource, follow these s
91
91
1. In the solution you used to [create the web resource](#create-the-web-resource), select **Add existing** > **More** > **Setting**.
92
92
1. Type *Override* in the **Search** box, select **Override app header color**, select **Next**, and then select **Add**.
93
93
1. In the solution, select **Override app header color**, and then select **Edit** on the command bar.
94
-
1. On the right **Edit Override ap header color** properties pane, select **Setting environment value** and enter the unique name of your web resource you created earlier.
94
+
1. On the right **Edit Override app header color** properties pane, select **Setting environment value** and enter the unique name of your web resource you created earlier.
95
95
1. Select **Save**.
96
96
1. Select **Publish all customizations** on the command bar. (This command appears when no components in the solution are selected).
97
97
@@ -103,7 +103,7 @@ With the example colors above, the app header should look like this after refres
103
103
After publishing your new app header colors, you'll want to validate the app header visuals, including all the button states, to ensure everything appears as you expect and there are sufficient contrast ratios for accessibility. You should verify the following:
104
104
105
105
- The desired colors are shown for the app header at rest and for each button interaction state.
106
-
- There is a minimum of a 4.5:1 contrast ratio between foreground and background colors for the rest state and each button interaction state.
106
+
- There's a minimum of a 4.5:1 contrast ratio between foreground and background colors for the rest state and each button interaction state.
0 commit comments