As i mention in title, how to create multiple skins for struts 2 application
I mean about design web skins it mean css - header - body - footer and so on...
Example, i have a skins basic with black and white and i have another skin with blue and white, how can i replace basic skin with another skin by upload new skin?
Related
Material.io has this great tool called the Material Palette Generator: https://material.io/design/color/#tools-for-picking-colors. Using it, you can pick a primary and secondary color, and then click a link "View in Color Tool" which takes you to a page where you can see your choices in different ways: https://material.io/resources/color/#!/?view.left=0&view.right=0&primary.color=6002ee&secondary.color=c63131.
But there doesn't seem to be an easy way of exporting your palette into a format usable for generating a custom Angular Material theme. They have an export link, but the closest format seems to be CodePen. But once you open it in CodePen, the CSS doesn't seem to have the palette information you need.
My question: has anyone tried these tools, and is there a pre-established pathway from Material palette to Angular Material custom theme? Or are they unrelated? If unrelated, is there a simple way to copy the color codes needed from the former to the latter?
Thanks.
You can use this website for generate a material color. For you only need a hex code, and after this you can generate the expected color format.
Expected color format:
Generated result:
If I refer to Material Design guidelines about Colors, they define :
Primary
Primary Variant
Secondary
Secondary Variant
Background
Surface
Error
Angular material define
Primary
Secondary
Warn
In addition the contrast color in angular is the equivalent of the On* in MDC.
1> In Angular Material background and surface are set to white or black depending of the theme builder function. No access for custom.
[edit] (thanks #G. Tranter):
Custom background color here
2> In Angular Material, I can define lighter and darker variant of each of the 3 colors, but I do not have control of where those variants are used !
(unless I manually overwrite each mat-* class...)
I am able to build my theme with two colors (primary and accent). But I don't get the point to define variants if I cannot assign the variants to specific UI elements.
[edit] (thanks #G. Tranter):
In Angular Material the use of variants is defined by the component itself.
If I refer to Material design examples (same page linked above) I cannot reproduce the theme with primary, primary variant and secondary for example...
did I miss something ? or does someone can enlighten me about this 2 major restrictions in theming ?
[edit] (thanks #G. Tranter):
In Angular Material we can define a second theme (with Primary and Accent colors) that will be applied to a specific CSS class
.item-second-theme {
#include angular-material-theme($second-theme);
}
Neither is actually a restriction (at least completely).
You can customize the foreground and background by modifying the theme before you apply it to your application and to Angular Material. See this post. However, it is probably not a great idea from a Material Design point of view to use background and foreground palettes that don't follow the guidelines, so there's usually no reason to not use the default ones in Angular Material.
You can't control how Angular Material components use the variants - that is part of the design of the components themselves. But you can control what those variants are when you create your palettes. For example:
$primary-palette: mat-palette($mat-blue, 500, 100, 700); // default
or
$primary-palette: mat-palette($mat-blue, 700, 300, 900); // darker
And of course you have complete control within your own components as to how shades are used.
I need to set custom color as primary in Angular Material. Reading some theaming guides and SO answers like Changing Primary Color in Angular Material 2 shows that I need to pick color from predefined set of colors. Can I use custom value?
You can use any color you want, but it must be defined in your own custom 'palette' in order to be used in theming. Have a look at the Angular Material palettes for examples. You would then use your palette in place of the material palettes like $mat-blue when you create your theme:
$my-blue: (
50: #e3f2fd,
...
)
...
$primary: mat-palette($my-blue);
...
$theme: mat-light-theme($primary, $accent);
Search the web for angular material palette tool or similar. There are a number of free online tools for creating palettes from a base color.
How could one apply a style to the part of a feature which is overlapping another feature?
In essence what i would need is something like this picture.
Here the blue dotted style would be applied to the white line for the parts which are overlapping with the lighter blue feature.
I'm tasked with creating a website application that resembles a POS (Point-of-Sale) system's editing suite, which shows a grid of images with a fixed number of rows/columns (8X4 for 40 total squares) that show (food) menu items. For example, row/column 1/1 might show an icon for "Combo Meal #1" and row/column 1/2 might show "Combo Meal #2" etc. The POS system allows users to drag one of the icons from a grid location onto another, and then the two of them swap. I.e., if you dragged the icon for Combo Meal #1 onto Combo Meal #2, then they would trade places in the gridview.
Nothing on Stack seems to fit this exact case, as I'd like to use .NET MVC if possible; I also cannot find anything in the Telerik tools that are a ready-fit solution. These two links are the closest that I've seen:
http://jqueryui.com/demos/draggable/#option-refreshPositions
http://www.redips.net/my/preview/REDIPS_drag/
...but they are only partial solutions.
Does anyone know of a tool that actually provides for this behavior? Or have any insight into how I can do this myself? (I'm still going through the learning curve on MVC, etc.)
I'm not familiar with Telerik, but as you posted jQuery, does this jQuery UI Sortable example not work?