Solved

Custom Theme

  • 5 August 2020
  • 5 replies
  • 657 views

Userlevel 3
Badge +6

Hi ,

can anyone tell me, how to apply the custom theme in FSM .

i have copied the default.xaml and chaged to globaltheme.xaml and provided the primary and secondary color .The globalTheme is deployed in the theme folder.i have even given the path in app param (PATH_TO_CUSTOM_THEMES).

But the custom theme is not reflecting .

Can u tell me what is the step that i am missing here.

Thanks 

Muthujayashree R

icon

Best answer by Kulunu Abeysinghe 6 August 2020, 20:57

View original

5 replies

Userlevel 7
Badge +24

Hi @Muthujayashree,

 

Have you seen the thread at the below link:

https://community.ifs.com/service-fsm-touch-apps-document-management-mwo-mro-pso-43/easy-way-to-customize-ifs-fsm-theme-as-per-customer-branding-2829

From there it would seem that the theme should appear under file > UI themes for selection rather than being immediately apparent. Have you selected the new UI from here or is it not showing?

Kind regards,

Lee Pinchbeck

Userlevel 3
Badge +6

Hi @Lee Pinchbeck ,

thanks for response , its not displaying in the UI Theme menu in FSM. 

How to apply the Custom theme so it can be  reflected in application. 

thanks 

Muthujayahree R

Userlevel 3
Badge +5

@Muthujayashree  See this 

“And if you want this to be visible under file > UI themes in smart client, you would upload this custom theme xaml files to the path denoted by the PATH_TO_CUSTOM_THEMES app param”

https://community.ifs.com/ifs-field-service-management-fsm-employees-partners-only-103/logo-change-3140?postid=10749#post10749

Userlevel 3
Badge +7

Hi @Muthujayashree ,

 

As the previous answers have said, you will need to set the PATH_TO_CUSTOM_THEMES  app param to point to the directory where you are storing your custom themes.

 

For example, I have a custom theme XAML file created as MyTheme.xaml and it looks like this,

 

<ResourceDictionary xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">  <!-- Your custom Primary and Secondary colors should go here -->   <SolidColorBrush x:Key="PrimaryColor" Color="Blue"/>    <SolidColorBrush x:Key="SecondaryColor" Color="Green"/>    <!-- If you need to set a custom Logo Image on the login window, then replace the following UriSource with the fully qualified path to your image here -->	<BitmapImage x:Key="LoginLogoImage" UriSource="C:\inetpub\wwwroot\YourFSMServer\Client\YourLogo.png" />	</ResourceDictionary>

 

I have placed this XAML in a folder I created in the Client directory. The full path to that folder (named Themes) on my machine is as below,

 

C:\inetpub\wwwroot\FSM6U5\ClientDev\Themes

 

I have set the above path to the App param PATH_TO_CUSTOM_THEMES. You should provide your corresponding path to this App param.

 

Make sure to Refresh Cache and then try logging back in to the client. You should be able to see your custom theme  under File > UI Themes

 

Edit :- It seems that the code formatting is removed once I save the response

Userlevel 3
Badge +6

Thanks for the responses

Reply