Skip to content

Commit 56bb3cf

Browse files
authored
Merge branch 'main' into Sally-fix
2 parents fcb4e95 + a0dae21 commit 56bb3cf

File tree

5 files changed

+124
-5
lines changed

5 files changed

+124
-5
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,9 @@
17041704
href: ./model-driven-apps/add-ai-copilot.md
17051705
- name: Use Excel and Word templates
17061706
href: ./model-driven-apps/templates-overview.md
1707-
- name: Use themes to apply organization branding
1707+
- name: Use modern themes
1708+
href: ./model-driven-apps/modern-theme-overrides.md
1709+
- name: Use themes to apply organization branding (classic)
17081710
href: ./model-driven-apps/create-themes-organization-branding.md
17091711
- name: Create guided help for your app
17101712
href: ./data-platform/create-custom-help-pages.md

powerapps-docs/maker/model-driven-apps/create-themes-organization-branding.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Change the color scheme or add a logo to match your brand (contains video) | MicrosoftDocs"
33
description: Learn how to change the color scheme for your app with Power Apps
44
ms.custom: ""
5-
ms.date: 01/12/2021
5+
ms.date: 10/16/2023
66
ms.reviewer: ""
77
ms.suite: ""
88
ms.tgt_pltfrm: ""
@@ -17,11 +17,11 @@ search.audienceType:
1717
---
1818
# Use a theme to create a custom look for your app
1919

20-
21-
2220
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.
2321

2422
> [!NOTE]
23+
> There's new way to create themes in model-driven apps for customizing the model-driven app header. More information: [Use modern themes](modern-theme-overrides.md)
24+
>
2525
> 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.
2626
2727
<a name="UseThemes"></a>
65.5 KB
Loading
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
---
2+
title: "Use modern themes | MicrosoftDocs"
3+
description: Learn how to change the colors of the app header in model-driven apps with the modern look.
4+
ms.custom: ""
5+
ms.date: 10/11/2023
6+
ms.reviewer: "matp"
7+
ms.suite: ""
8+
ms.tgt_pltfrm: ""
9+
ms.topic: "how-to"
10+
author: "jasongre"
11+
ms.subservice: mda-maker
12+
ms.author: "jasongre"
13+
search.audienceType:
14+
- maker
15+
---
16+
17+
# Use modern themes
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 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+
21+
> [!NOTE]
22+
> Modern themes currently only support customizing the app header.
23+
24+
## Modify the app header colors
25+
26+
With the [modern, refreshed look enabled](../../user/modern-fluent-design.md#turn-on-the-new-look) in the app, makers can modify the colors used by the app header to align with their personal or organizational branding. To accomplish this, you encapsulate the desired colors into an XML resource, use an app setting to point to this web resource, and then verify the color changes match expectation.
27+
28+
> [!NOTE]
29+
> This functionality is available in build 9.4.23094 or later version.
30+
31+
### Overview of the XML resource to use for app header colors
32+
33+
The first step to modifying the app header styling is to create an XML file with your various color selections. Later, you'll create a web resource using the XML file.
34+
35+
The following styling options for the app header are available:
36+
37+
- `Background` – The background color of the app header. This element must be defined for any changes to take effect.
38+
- `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.
39+
- `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.
40+
- `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.
41+
- `BackgroundPressed` – The background color of buttons on the app header when they're pressed. The defaulting logic is the same as backgroundHover.
42+
- `ForegroundPressed` – The text color of buttons on the app header when they're pressed. The defaulting logic is the same as foregroundHover.
43+
- `BackgroundSelected` – The background color of buttons on the app header when they're selected. The defaulting logic is the same as backgroundHover.
44+
- `ForegroundSelected` – The text color of buttons on the app header when they're selected. The defaulting logic is the same as backgroundHover.
45+
46+
Your XML file should be formatted as follows:
47+
48+
```xml
49+
<AppHeaderColors
50+
// Required color
51+
background=”000000”
52+
53+
// Optional colors
54+
/>
55+
```
56+
57+
### Example XML for a modern theme
58+
59+
As an example, this XML specifies a green background color for the app header with white text, with darker background colors for the various button interaction states. For optimal usability, we recommend specifying different color values for each state.
60+
61+
```xml
62+
<AppHeaderColors
63+
//Required color
64+
background="#12783F"
65+
66+
//Optional colors
67+
foreground="#FFFFFF"
68+
backgroundHover="#165A31"
69+
foregroundHover="#FFFFFF"
70+
backgroundPressed=”#0F1C12”
71+
foregroundPressed="#FFFFFF"
72+
backgroundSelected="#153D23"
73+
foregroundSelected="#FFFFFF"
74+
/>
75+
```
76+
77+
### Create the web resource
78+
79+
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)
80+
1. Sign into [Power Apps](https://make.powerapps.com/), select **Solutions** on the left navigation pane, and then create a **New solution**.
81+
1. Select **Solutions** on the left navigation pane, and then create a **New solution**.
82+
1. Select **New** > **More** > **Web resource**.
83+
1. In the New web resource property pane, enter the following values:
84+
- **Display name**: Enter a display name, such as *XML for modern theming*.
85+
- **Name**. Enter the unique name for the web resource.
86+
- Type: **Data (XML)**
87+
1. Select **Choose file**, browse to and select the XML file you created earlier with the theme.
88+
1. Select **Save**.
89+
90+
### Apply custom app header colors to apps in your environment
91+
92+
After you’ve selected your colors and created the XML resource, follow these steps to enable this app header styling for all the apps in your environment that have the “New look” enabled.
93+
94+
1. In the solution you used to [create the web resource](#create-the-web-resource), select **Add existing** > **More** > **Setting**.
95+
1. Type *Override* in the **Search** box, select **Override app header color**, select **Next**, and then select **Add**.
96+
1. In the solution, select **Override app header color**, and then select **Edit** on the command bar.
97+
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.
98+
1. Select **Save**.
99+
1. Select **Publish all customizations** on the command bar. (This command appears when no components in the solution are selected).
100+
101+
With the example colors above, the app header should look like this after refreshing or playing the app.
102+
:::image type="content" source="media/greenappheader-oct2023.png" alt-text="Green app header in a model-driven app" lightbox="media/greenappheader-oct2023.png":::
103+
104+
### Verifying new app header colors
105+
106+
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 color choices:
107+
108+
- The desired colors are shown for the app header at rest and for each button interaction state.
109+
- 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.
110+
111+
## See also
112+
113+
[Modern refreshed look](../../user/modern-fluent-design.md)
114+
115+
[!INCLUDE[footer-include](../../includes/footer-banner.md)]

powerapps-docs/user/modern-fluent-design.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Here's what you can expect in the modern, refreshed experience:
3030
- Updated styling in form, view, and dashboard pages, which includes the use of drop shadows and brighter background colors to create an elevated or _floating_ appearance. The floating appearance helps to visually separate sections and focuses attention on primary content.
3131
- New Fluent-based controls in forms, business process flows, and dialogs. Dialogs now resize height automatically based on the content.
3232
- A new Power Apps grid in place of the read-only grid in view and standard, dashboard pages.
33+
- A new mechanism for customizing the app header colors to match your personal or organizational branding. More information: [Use modern themes](../maker/model-driven-apps/modern-theme-overrides.md)
3334
- An end user setting called **Try the new look** that enables the modern, refreshed experience.
3435

3536
:::image type="content" source="media/modern-try-toggle-off.png" alt-text="The 'Try the new look' setting.":::
@@ -79,11 +80,12 @@ After using the modern, refreshed look in your model-driven apps, tell us what y
7980
The modern, refreshed look for model-driven apps has some limitations:
8081

8182
- The mobile app and mail app don't support the modern, refreshed look and aren't part of the preview or general availability.
82-
- With the new look, Power Apps is moving away from the classic theme customizations. This means that the app header and colors for business process flows can't be customized yet.
83+
- With the new look, Power Apps is moving away from [classic theme customizations](../maker/model-driven-apps/create-themes-organization-branding.md). While the colors for the app header can now be customized to match your personal or organization branding, other theme customization options aren't yet available. More information: [Use modern themes](../maker/model-driven-apps/modern-theme-overrides.md)
8384

8485
## Frequently asked questions (FAQs)
8586

8687
### Preview to general availability rollout
88+
8789
The modern, refreshed look for model-driven apps is generally available in the following release channels:
8890
- Monthly channel in August 2023
8991
- Semi-annual Channel as of 2023 Release Wave 2

0 commit comments

Comments
 (0)