Design of SAP Fiori/UI5 Application - sapui5

I’m trying to develop my first SAP Fiori App. Now I have some question about themes and background. In my index.html sap_belize_plus is the selected theme. In the SAP Fiori Launchpad you can chose between different SAP themes.
Does the chosen theme in the Launchpad affect my app or will it be displayed exactly as
implemented (only belize theme)?
Should I do custom CSS?
I saw apps with the standard #EBEBEB background and others with the picture background. On what does this depend?
Thanks for your help!

Does the chosen theme in the Launchpad affect my app or will it be displayed exactly as implemented (only belize theme)?
Yes. Chosen theme from the Launchpad will be the one that will be used. (Not the one in your index.html)
Should I do custom CSS?
Ideally No. You should create a custom theme (start by copying the standard) and try to achieve your desired result with the theme. CSS should be your last resort.
I saw apps with the standard #EBEBEB background and others with the
picture background. On what does this depend?
This can be either due to custom CSS to due to the custom theme. You have to look into the 'Developer tools' to determine.

If you use the Fiori Launchpad (FLP) you have 2 options.
[Most common & recommended] Configure your tile to open the app calling the Component.js file
Configuring the tile to open the index.html file (UI5 standalone configutarion)
In option 1, the index.html file of your app is not used. It's the FLP the one who plays the role of index.html file, and the app is loaded into the ComponentContainer of the FLP using JS-based navigation (hash navigation). So, in a default app config, the theme you use in your FLP will be the one used in your app.
Besides you can configure which are the supported themes for your app in the descriptor file, setting the property
"supportedThemes": [
"sap_bluecrystal"
]
More info in this link
In option 2, the app will be opened in a new tab, calling the index.html file, so it will use the theme you configure in the index.html file.
In the most common & easy way, you apply your custom themes in the whole FLP and you configure your apps to use it.
I think you should start reading about Theme Designer before you start coding CSS
Furthermore if you want to add just a few CSS classes, read this

Related

SharePoint Online Change the look Theme not working

I am working with a site using the Microsoft Developer Program. I am able to use the new Change the look feature on modern Communication sites to adjust the theme.
I created a theme using Powershell
I created a Communicators site and selected the Custom theme and used a PowerShell cmdlet to set that site as the homepage. I am still able to change the theme on that site by going to Settings > Change the look > Theme. The default and custom theme appear in the menu to select.
I attempted to follow the instructions on creating a Site Design to test out the feature of potentially exploring site designs. I ran into some issues of the feature I was attempting to use was not supported yet. I did not create any site designs. I use the Get_SPOSiteDesign cmdlet and nothing is returned.
I then created another communications site. I was just going to build these one at a time since Site designs did not meet my goal. I wanted to change the theme to the Custom theme, I go to Settings > Change the look > Theme and it closes the Change the look menu in the panel and returns me to the Settings panel.
I am able to go to Settings > Change the look > Header, Navigation and Footer successfully. Only the Theme option causes this error. I am unable to change the theme.
I used a PowerShell cmdlet to ensure the themes were not hidden, Set-SPOHideDefaultThemes $false. This is set.
I then created a second, third a fourth Communications site (using the Topic, Showcase and Blank designs) and the same error above occurs not being able to access the theme menu.
I then created a Team site. I am able to access the Theme and change to the Custom theme or one of the default selections.
I need help as to why new Communication sites I create in my environment will not allow me to access the theme menu, but homesites and team site do allow this. What do I need to do to correct this?
I too am coming across the same issue. I have attempted it in difference browsers and in incognito to verify it wasn't an extension or browser specific issue. Have you discovered a resolution or opened a ticket yet?
We have the same issue on our tenant and have opened a ticket a MS support. They confirmed that this a bug and are going to solve it.
For now we have a workaround via PNP Powershell.
When you set the theme first via Set-PnPWebTheme -Theme "Custom Theme", the option to modify the theme via the browser works again.

Control Panel - Apply different theme for two different pages

I have created control panel theme following bootstrap standards. For some reason, we are using liferay 6.1 which doesn't provide responsiveness and hence has to be taken care of.
As we know control panel contains many pages e.g: MyAccount, User Administartion e.t.c.
As of now,these pages are looking fine with the old theme(non-bootstrap).
As and when I update these pages to bootstrap standards, I want to be able to apply bootstrap control panel theme for them.
Question here is - How do I apply old theme for MyAccount Page and bootstrap theme for User Administration page. Is there some property file that I need to update?
I did my research but couldn't find anything substantial.
Please let me know if I need to be more specific about the query.

how to change layout for whole site in DotNetNuke 7

I have just started learning DNN. I dug a little into this but I just can't change the layout for whole site. I am using Awesome cycle template as starting.
I need to redesign site header and footer. If I made change in Skins\Gravity\Home.ascx then these changes are only appearing to my home file.
I can change the CSS the way I want but I am just unable to change the base html of header in entire site. (like we do in master pages in ASP.NET or layout in MVC)
Your problem probably has to do with DNN supporting different skins for different pages.
You have to check if all pages use the same skin. I think that in DNN7 default site template pages use different skins. You can check this if you go to Edit Page -> Page Appearance -> Page skin
If you set all the pages to use the Gravity skin, then changes you make at the .ascx file will apply to all pages.
A uniform way to change the layout for the whole site is to set every page skin to 'None specified' and then only select skins from Admin -> Site Settings -> Basic Settings ->Appearance ->site skin.
You can update the DNN database using an update query on the Tabs table:
update Tabs set SkinSrc = REPLACE(SkinSrc,'OldSkinName','NewSkinName')
where SkinSrc like '%OldSkinName%'
You can also rename the containers using a similar query:
update TabModules set ContainerSrc = '[G]Containers/MySkin/NewContainer.ascx'
where ContainerSrc = '[G]Containers/MySkin/OldContainer.ascx'
In the latest operation remember to clean the dnn cache using : Host > Host Settings > Advanced Settings > Performance Settings , click on the “Clear cache” button.

Theme Specific Wordpress Custom Fields

I'm currently in the process of building a wordpress multi-site for a client. I've completed aspect #1, which was creating Theme-1. Theme-1 was built utilizing excessive amounts of the AdvancedCustomFields PLUGIN.
I'm working to build Theme-2, this one is the primary theme that will be utilized for all of the sub-sites created through the multi-site option. The issue I'm having is that the AdvancedCustomFields are no longer an option, I need to build all of the customization into the functions.php file directly.
Is it possible to create custom fields through the theme directly - without utilizing a plugin?
I need the theme pages to have "Left Side" "Right Side" "Footer" as WYSIWYG editors. So if someone goes to create a new page all of these field settings are there by default.
Is this possible?
It's possible, using the wp_editor function to get the WYSIWYG functionality. See this question on the WordPress stackexchange site. It's demonstrated as a plugin, but you could just as easily put the code in your theme.

How to create a theme for a GWT application?

I want to create a user selectable theme to a GWT application? How can I do It?
You can use CSS to build theme-system on top of GWT. There are DOM structures in GWT components that limit the options what can be themed, but in general CSS (and CSS3 these days) is very powerful and designed just for this kind of things.
Simply, you can put single theme in a single CSS file and provide users with an option to change the effective CSS file.
Here you can find discussion about creating such system: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f4b8f184c49b98f9