material

Angular Material 的设计之美

女生的网名这么多〃 提交于 2019-12-03 18:27:16
Angular Material 的设计之美 Ng-Matero 0.3 已发布,新增 module schematic 以及 page schematic,详见 README 前言 Angular Material 作为 Angular 的官方组件库,无论是设计交互还是易用性都有着极高的质量。正如官方所说其目的就是构建基于 Angular 和 TypeScript 的高质量组件库。 官方列举了如下几点来解释“高质量”的含义。 国际化和可访问性,以便所有用户都可以使用。 不会让开发人员感到困惑的简单 API。 在各种各样没有 bug 的用例中按预期行事。 通过单元测试和集成测试更好地测试行为。 可在 Material Design 规范的范围内进行定制。 将性能开销降至最低。 代码简洁,文档友好,可以作为 Angular 开发人员的一个例子。 Material Design 作为一个非常流行的设计语言,它有多个版本的实现。React 版的 Material Design 有着很高的人气,大家可以自行对比,我就不赘述了,以免引起无谓的争吵,进而扯到框架层面。我可以说一下自己的感受,Angular Material 的交互更加流畅,细节做的更好。 Angular Material 组件库虽然很优秀,但是却被戴上了只适合做 C 端界面的帽子。这也是我刚开始不敢选择 Angular

Material shines through when zooming out (three.js r78)

人走茶凉 提交于 2019-12-03 16:25:13
Material shines through when zooming out (three.js r78) When zooming out to a certain extend the material of objects behind other objects starts to shine through. It looks very similar to the effect when faces are overlapping (faces are in the same plane). To demonstrate this I made a fiddle . In this example I draw two thin boxes (thickness 1 and there is a empty space between the boxes of also 1) so the boxes are not touching eachother but the material shines through anyway. // geometry with thickness 1 var geometry = new THREE.BoxGeometry(20000, 20000, 1); This screenshot demonstrates the

【每日一记】unity3d 图片置灰shader

▼魔方 西西 提交于 2019-12-03 16:09:45
项目需要,参考了一下网上的资料,写了一个shader,给按钮置灰。 shader具体实现如下: 2016.07.25补充,支持mask剪裁 Shader "Transparent Colored Gray" { Properties { _MainTex ("Base (RGB), Alpha (A)", 2D) = "white" {} _Color ("Tint", Color) = (1,1,1,1) _StencilComp ("Stencil Comparison", Float) = 8 _Stencil ("Stencil ID", Float) = 0 _StencilOp ("Stencil Operation", Float) = 0 _StencilWriteMask ("Stencil Write Mask", Float) = 255 _StencilReadMask ("Stencil Read Mask", Float) = 255 _ColorMask ("Color Mask", Float) = 15 [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 } SubShader { Tags { "Queue"="Transparent"

Material Design progressdialog

梦想的初衷 提交于 2019-12-03 10:30:06
alertDialog = new ProgressDialog(this); alertDialog.setMessage(getResources().getString(R.string.loader)); alertDialog.setCancelable(false); alertDialog.show(); Simply when I do this, green circle shows up with the word loading besides it. However when i DONT USE progress dialog, and i use a progressbar on the page I get a pink color as i have defined the below in my styles.xml <item name="colorPrimary">@color/pink</item> <item name="colorPrimaryDark">@color/pink</item> <item name="colorAccent">@color/pink</item> What is the solution of getting the circle pink color as in the progress bar on

Angular Material Datepicker is empty

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am currently building a web application with Angular and I am using Angular Material for some UI components. Currently, I have an issue that I can't resolve. When I use the datepicker like described on https://material.angularjs.org/latest/demo/datepicker , the window opens but it stays empty. Here's the code snippet for the datepicker. <md-datepicker ng-model="vm.registrationData.birthDate" md-placeholder="{{'start_register_birth_date' | translate}}" required></md-datepicker> <div class="error-message" ng-messages="registerForm.birthDate.

Set CALayer as SCNMaterial's diffuse contents

不问归期 提交于 2019-12-03 06:27:45
I've been searching all over the internet over the past couple of days to no avail. Unfortunately, the apple documentation about this specific issue is vague and no sample code is available (at least thats what I found out). What seems to be the issue you may ask... I'm trying to set a uiview's layer as the contents of the material that is used to render an iPhone model's screen (Yep, trippy :P ). The iPhone's screen's UV mapping is set from 0 to 1 so that no issue persists in mapping the texture/layer onto the texels. So, instead of getting this layer to appear rendered on the iPhone, same as

Supporting Android material design

与世无争的帅哥 提交于 2019-12-03 05:06:16
问题 We're redesigning our android app and a question rises considering the upcoming Android L platform with its material style: what are the ways of supporting older devices? Will this new design be acceptable on 4.x devices? 回答1: According to Android Material Design compatibility docs I'm going to rehash the material here incase the link gets taken down, which most likely it will be in the near future. For the Material theme The material theme is only available in the Android L Developer Preview

Material Design实现的美观的登录界面

冷暖自知 提交于 2019-12-03 04:08:38
官方介绍学习: https://material.google.com/ 英文版基于Material Design的登录界面: http://sourcey.com/beautiful-android-login-and-signup-screens-with-material-design/ 翻译版基于Material Design的登录界面: https://gold.xitu.io/entry/573bb4b6df0eea005e758f0b Material Design Library 例子中采用了Material Design的库的控件,但是具体使用细节没有写出来,容易遇到很多问题。 Bug: Error inflating class android.support.design.widget.TextInputLayout :添加完xml后,运行时报错。 解决方法: 1.在module的gradle中添加依赖 compile 'com.android.support:appcompat-v7:24.0.0' compile 'com.android.support:design:24.0.0' 并且:修改manifest文件中Application标签下的theme: android:theme="@style/Theme.AppCompat"> 知识梳理:

Material Design Lite (MDL) Navigation Drawer on the right side

二次信任 提交于 2019-12-03 03:26:49
I am using Google Material Design Lite (MDL) for web and I am unable to put the navigation drawer on the right side. The documentation has none information about how to do that. Is that even possible? The default drawer always come from the left. <header class="custom-header mdl-layout__header mdl-layout__header--waterfall"> <div class="mdl-layout__drawer-button"> <i class="material-icons">menu</i> </div> <div class="mdl-layout__header-row"> <span class="mdl-layout-title">My App</span> </div> </header> <div class="mdl-layout__drawer"> drawer contents... </div> There isn't really a proper way

Angular 4 with material

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to implement "Angular-Material" with Angular4. I made all setup from official site of angular material [angular.material.io][1] [1]: https://material.angular.io/guide/getting-started but when trying to run project by npm start, getting following error: node_modules/@angular/material/typings/button/button.d.ts(40,22): error TS2420: Class 'MdButton' incorrectly implements interface 'CanDisable'. Property 'disabled' is private in type 'MdButton' but not in type 'CanDisable'. node_modules/@angular/material/typings/button/button.d.ts