vmware-clarity component complete reference - vmware-clarity

Where can I find a complete reference for vmware-clarity components?
I'm writing web UI with datagrid, dropdown listbox, combobox, chart, etc, but I didn't find the complete reference for them.

There are documentation pages for all of the Clarity components here: https://vmware.github.io/clarity/
These are a mix of design guidelines, usually at the top of the components documentation page. And then below, the Clarity Angular component examples describing the declarative API for each component with one or more examples.

https://medium.com/#beeman/tutorial-project-clarity-and-angular-cli-50d845a24d5b
This is a nice article (at least I started with it) on using vmware-clarity with Angular CLI.
The author of the article has a demo project here in Github: https://github.com/beeman/tutorial-angular-styling-clarity which runs live here: https://beeman.github.io/tutorial-angular-styling-clarity/tutorial-angular-styling-clarity/.

Related

GTK4 widget customizations using CSS providers do not consistently work

I have been building small "proof of principle" programs to learn about GTK3, and now that GTK4 has limited availability, I have been attempting to learn about this version as well. In attempting to migrate to GTK4, I took a program I wrote for GTK3 that displays two progress bars with different attributes using CSS providers and rebuilt it under GTK4. When I ran the GTK4 version of the program, the CSS overrides in the program are ignored unless I introduce the CSS provider context to the display level for one of the progress bars. But that then results in having both progress bars exhibiting the same behavior instead of having unique behavior for each progress bar. Just as a further test, I added CSS providers and context for a label widget and that override worked. So some CSS overrides in GTK4 work as before, but some do not. It is as though some CSS provider overrides are ignored at the display level. Reviewing documentation about priorities (e.g. GTK_STYLE_PROVIDER_PRIORITY_APPLICATION) and testing out various priority constants did not make a difference.
Displaying the content of the code would be too long in this narrative, so I have uploaded the GTK3 and GTK4 versions of the code to my Github repositories along with a "pdf" file visually illustrating the different behavior between GTK3 and GTK4. If you want to review and test out the code yourself, the link is:
https://github.com/cschuls/GTK4_Mystery
I would suppose that widget-specific CSS customization could be added at the display level with an "id#" attribute, but that seems like that would just be adding unnecessary complexity when this practice works fine with GTK3. Thanks in advance for any answers and suggestions.
Additional comment.
Experimenting with various scenarios, I came up with a work-around that provides the desired result of having distinct style properties applied to each progress bar widget. For those widgets, I added their respective CSS provider data to the display style context instead of attempting to add the CSS provider to each widget's context. If you wish to view this work-around, I added a "work-around" folder with the source code to my Github repository.
This provides a decent solution to this problem, but it does not answer my underlying question as to why the CSS provider information for each progress bar widget is not enacted upon during the application's execution; whereas, CSS provider information associated with widgets such as labels and buttons do behave as they did with GTK3. If anyone can answer my core question, I would be very happy.
Regards,
Craig

Where can I find more components to the MDL than on the main website

I was looking to make my page better, and I coundn't find many examples of how can I add more complex components to the MDL design. I found single component "mdl-select" and that's it.
Is there any page or gallery of components, even paid, that I can browse and take a look at some showcases other than the main framework provides?
I have browsed the page getmdl.io completely and I find the showcases not that inspiring in comparition to some other material design frameworks such as materializecss.com for example.
Material Design Lite is not a framework. It is an implementation of Material Design for web by Google and there is no any paid service in Material Design Lite. Here is the full components provided by Material Design Lite: https://getmdl.io/components/index.html
Edit: Here is the custom unofficial mdl-select components by CreativeIt: http://creativeit.github.io/getmdl-select/
Try darkboard as showcase of material design library
https://github.com/CreativeIT/material-dashboard-lite

Why are there no forms in the Visual Style Guide of Web Starter Kit?

The Visual Style Guide of the Web Starter Kit provides a couple of elements as reference for your own development. However, I wonder why no forms are provided. In contrast, Bootstrap offers handy form helpers. Why is there no such thing for Web Starter Kit.
Note, I have found these two guides:
Forms and User Input
Create Amazing Forms
But where is the tl;dr copy paste solution?
In the next version of Web Starter Kit we are hoping to add some things around this:
Form elements from the material design spec.
Change the styleguide to have some example forms.
This should be out late january with any bit of luck. You can see the work on the material-sprint branch if you are super keen: https://github.com/google/web-starter-kit/tree/material-sprint
At this date, Web Starter Kit uses Material Design Lite.
What you are looking for, is the style guide / reference of Material Design Lite:
Components: https://getmdl.io/components/index.html
Styles: https://getmdl.io/styles/index.html
EDIT: Looks like Material Design Lite is deprecated and being replaced by Material Design Components. See Why was material design lite(MDL) deprecated with MDC?

Xamarin Forms Maps - Custom Pin Images

Is there a way to change the image of the pins in Xamarin Forms Maps. I want to make the pin a custom image, if it has to be done natively, can someone give me a simple example of it. Thank you.
To anyone coming to the later, this is now well supported in Xamarin Forms.
In essence you need to create a custom map class in your PCL or shared code that inherits from the Xamarin Forms Map and then create a Custom Renderer in each of the platforms' projects.
Those custom renderers will be different for each platform, dealing with the specifics of rendering icons and any pop up information shown when you click on that pin for that particular platform. You are not obliged to create a custom renderer for all platforms, for any that you don't a normal map will be displayed.
This is all now really well documented in the Custom Renderers | Customizing a Map section of the Xamarin Forms Developers Guide. That documentation walks through creating a custom renderer for Android, iOS and UWP and explains the code needed in detail. There's a lot of it, so I won't reproduce it here. There is also an accompanying sample solution here.
One point worth noting is that if you are trying to reproduce that code in your own project you will also need to add the images in the various drawable folders in the ProjectName\Droid\Resources directory, and also the two axml files in the layout directory.
Apparently this is quite locked down and you have to look at custom renderers to achieve what you are needing.
There is a discussion about this on the following link:-
http://forums.xamarin.com/discussion/17916/customization-of-xamarin-forms-maps-pins
, with specific reference to a project at the following link which someone has implemented custom image pins from the Assets folder:-
https://github.com/paulpatarinski/ShouldIWashMyCar/blob/master/Android/Renderers/MapViewRenderer.cs
I haven't tried this yet, however this would probably be a good place to start when looking to customize map rendering.
This project might be helpful to you. raechten/BindableMapTest
From the description:
Small sample for binding a collection to a Xamarin Forms Maps pins
(valid until binding directly to the Pins property will be supported
by Xamarin Forms directly).
Includes custom and clickable pins.
It has Android and iOS implementations.

Learning CSS (JavaFx style)

Recently i switched my GuI and programming to fit Javafx and use the new JavaFx scene builder! These new tools (atleast new for me) has opened alot of doors when it comes to creating user interfaces and i want to learn more and get better at it. Therefore i wish to learn CSS for JavaFx.
So far i have been unable to find any online tutorials for beginners and because of this I want to ask you guys; do you know any sites, books or video tutorials where i can learn to write CSS for JavaFx projects?
For learnIng JavaFX CSS, work through the following tutorials:
The JavaFX Getting Started tutorial on CSS.
The JavaFX CSS tutorial.
When using SceneBuilder, review:
Using a Style Sheet in SceneBuilder.
SceneBuilder Style Sheet Support.
When developing your own apps, the two most useful resources are:
The JavaFX CSS Reference Guide.
The (essential) JavaFX 2.2 Caspian Style Sheet which contains the default styling for all JavaFX controls.
If you search the web you will find many resources on CSS and HTML. Be careful using these resources. JavaFX CSS is not the same as the CSS you use to style a web page. While the file format is the same, JavaFX CSS has it's own set of attributes and allowed values, includes few layout processing specifiers, uses it's own syntax for effect processing, background and border specifications, etc.
You might easily find many good resources simply by Googling.
Here are recommended ones
MDN
www.w3.org
Note:Stay away from w3schools.com.
Reason to avoid w3schools
The best way to learn CSS would be to learn it by doing.
Create some web pages and style them no your own.

Resources