Professional Documents
Culture Documents
Change The Theme of A Fiori App With The Theme Designer PDF
Change The Theme of A Fiori App With The Theme Designer PDF
Applicable Releases:
SAP Project Fiori Program
Version 1.0
May 2013
Document History
Document Version
Description
1.0
Typographic Conventions
Icons
Type Style
Description
Icon
Example Text
Example text
Emphasized words or
phrases in body text, graphic
titles, and table titles
Example text
Example text
<Example
text>
EXAMPLE TEXT
Description
Caution
Note or Important
Example
Recommendation or Tip
Table of Contents
1.
2.
3.
Prerequisites ...................................................................................................................... 1
1.2
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.8.2
2.8.3
2.8.4
1.
Getting started
This document demonstrates how you can change a theme of an SAP Fiori App using the UI Theme
Designer.
1.1
Prerequisites
This demonstration guide assumes you have successfully completed the Developer Guide
for UI Theme Designer
(http://service.sap.com/~sapidb/011000358700000368952013E/themedesigner_devgu
ide_10.pdf).
1.2
In the Developer Guide for UI Theme Designer you can find the information about how set up the UI
Theme Designer (page 9):
http://service.sap.com/~sapidb/011000358700000368952013E/themedesigner_devguide_10.p
df
May 2013
2.
2.1
2.2
When creating a new theme it needs to be based on an existing SAP theme. You should select a
theme which is similar to the used theme. For the Fiori App we recommend to use sap_bluecrystal.
Task: 3.
May 2013
Task: 4.
2.3
At first you can see that a preview application is loaded which is displayed in the main area on
Figure 3.
1.
May 2013
2.4
With quick theming the color scheme can be changed with just few clicks.
Task: 5.
6.
7.
May 2013
May 2013
2.5
Task: 8.
9.
Press Expert
Change the color of automatically).of UIBrand
2.6
Press Expert
C Click on sapUIGlobalBackgroundImage
Upload an image
Press OK
You can also change the image with the Quick Theming. Then you have to choose the Background
Image.
May 2013
Task: 14.
15.
Set the Background Image Repeat to false, then the image will fit to screen
(independent to the device)
Set the Background Image Opacity to 0.5 on the scale
2.7
May 2013
Press CSS
Enter the following lines in Snippet 1
.sapUIMeTabContainerBtnInfo,
.sapUIMeTabContainerBtnNotes,
.sapUIMeTabContainerBtnAttachments,
.sapUIMeTabContainerBtnPeople {
background-color: #999 !important;
Background color
}
.sapUIMeTabContainerBtnInfo.sapUiIconActive,
.sapUIMeTabContainerBtnNotes.sapUiIconActive,
.sapUIMeTabContainerBtnAttachments.sapUiIconActive,
.sapUIMeTabContainerBtnPeople.sapUiIconActive {
border: 0.250rem solid #3782CA !important;
Border color
when clicked
2.8
2.8.1
May 2013
May 2013
2.8.2
2.8.3
Desktop Preview
May 2013
10
2.8.4
Original View
May 2013
11
3.
21. Enter the vendor who owns the theme. (Must not start with SAP)
22. Press Publish
May 2013
12
After a while the success dialog comes up. Close it by pressing OK.
To run an application using the new theme you need to enter the URL for the application and
specify the theme using the sap-theme URL parameter. It contains the id of the theme and the URL
of the theme repository.
May 2013
13
Example:
http://<App servername>:<App
Port>/sap/bc/ui5_ui5/sap/ui5_mm_po_apv/index.html?sap-client=100&saptheme=greenorangetheme@http://<Theme server>:<theme
port>/sap/public/bc/themes/~client-100
Figure 17: run the application in the browser with the new theme
May 2013
14
www.sap.com/contactsap
www.sdn.sap.com/irj/sdn/howtoguides