How to use multiple jQuery UI Themes in a Zend Framework application? - zend-framework

I am currently using the ui-lightness theme in my Zend Framework application but I would like to use both for different things. I'm currently registering the ui-lightness theme with this line in my bootstrap:
$view->headLink()->appendStylesheet($view->baseUrl().'/js/jquery/css/ui-lightness/jquery-ui-1.7.2.custom.css');
How can I add another theme to use? How will the application know which theme to use if I add another stylesheet?

You can do this using CSS scope. When you build your theme on the jQuery UI site choose Advanced Settings and then enter in name in the scope field.
Do the same with whatever other themes you want to use, making sure that the scope is unique for each one.
Include the CSS theme files as normal (using appendStylesheet) and use the scope classes to style each area/item on the page
A styled example is given here

I don't think you can use two themes on the same page out of the box with jQuery UI. Each jQuery UI theme styles all widgets, not just specific ones.
You could, create your own stylesheets to style widgets individually. Or, if you don't want different themes on a single page, just include the different themes on different pages.

If you want different jQuery UI themes on different pages of your application, you can use Zend_Layout to switch layouts on different pages of your application. Each layout can use a different jQuery UI theme.

Related

How do I change navbar logo and styling dynamic?

I am building a multi tenant platform and want to have different logos and styling of the navbar depending on logged in user or some other business rule. How do I do that?
If I want to add widgets on the navbar, for example notification indicator, how do I do that?
An interesting possiblity is to make a component, and that component includes a /style tag that is data-bound. You can also include base64 coded images that is used by the css in your component.
For inserting stuff in the navbar maybe you can use pseudo elements from CSS.
Otherwise I would install a local Turnkey development like this https://wiki.mdriven.net/index.php/Development_in_Visual_Studio. Then you can change any part of the site.

How to change data-sap-ui-theme of Certain control SAPUI5

I've set them of my sapui5 application data-sap-ui-theme="sap_belize_plus" but for listview I want to change the theme to data-sap-ui-theme="sap_belize". Is it possible to change theme for certain control ?
No. The theme parameter is across the application.
But nevertheless you can achieve this using UI Theme Designer.
You can read more here SAP Fiori Theme designer Wiki
These designs will be applied across all the applications.
If you don't want to deal with designer and you are good at CSS then override the specific CSS classes accordingly and add that Custom CSS to your application. Read more here

Can I use custom UI Elements or must they be Ionic?

I want to implement a custom text field with javascript and css. Is this allowed in the ionic fromework? Or will it not work?
It's just plain web with HTML, CSS and Javascript. What Ionic provides are the basic bootstrap for an application and their own UI elements with styling. So, it's your choice to define your own set of elements or customize Ionic's.

How to extend the GXT Theme Builder to generate a theme with appearances for my custom components?

I have created a few custom components that come with their own appearance interfaces. Since now I want to use the Theme Builder to create our themes I also would like to have it generating the corresponding appearances for my custom interfaces.
While we still don't have a ThemeBuilderBuilder, one possibility is to customize the CSS as explained in this other question:
How to customize the CSS of a theme generated with the ThemeBuilder?

Migrating from "native GWT" to GXT

I am thinking of migrating my GWT app from "native GWT" to GXT, however I want to know whether there is a theme in GXT that looks just like the native theme of GWT, com.google.gwt.user.theme.standard.Standard
Also in my "native GWT" application I apply my own css to some widgets. Does the CSS-format for widgets the same with GXT as it is with the native GWT widgets? Like for Button, MenuBar, Panels etc.
Basically GXT 2 has just two themes (blue and gray). There is no such a theme that looks like native GWT, but thats why you should choose GXT, becuose it has rich components and you don't have to take care of your css and other stuffs. Also is not easy to change you style.
Ext GWT 2.0, widgets are responsible for creating their DOM structure
directly. This is done either by manually creating the elements or by
using an HTML fragment. The HTML for the widget is created from
strings, from an XTemplate, or by assembling DOM elements. The CSS
class names are then applied to the elements by the widgets. With this
approach, a widget’s view is tightly bound to the widget itself and
CSS class names are generally hardcoded into the widget.
Because the way how was build is really difficult to change the style of your component. But the new version 3.0 has a new approach that make easier to change your style and you can also combine with native gwt widget.
You can check the website