material

material desing Textfield dropdown how to implement

▼魔方 西西 提交于 2020-01-16 08:49:08
问题 I need to implement this component in my app [Material Design component][1] [1]: http://i.stack.imgur.com/xaQ03.png just to reinforce that what I need is a drop down in the text field not a drop down in action bar. in the material design components doc this one is called Textfield dropdown, https://www.google.com/design/spec/components/menus.html#menus-usage but I did'nt find out how to implement this, i tried many sites but i did'nt find something like this, could You guys please help me to

Android theme will not update status bar color

ぃ、小莉子 提交于 2020-01-14 06:43:37
问题 I'm struggling to get Android to update my status bar color. I'm using AppCompatActivity in Xamarin.Android. My values/styles.xml file is like so: <!-- Main theme --> <style name="MainTheme" parent="MainTheme.Base"> </style> <style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="windowNoTitle">true</item> <item name="windowActionBar">false</item> <item name="android:windowBackground">@color/WindowBackground</item> <item name="colorPrimary">@color/Primary</item>

Angular 2 material datepicker highlight special days

≯℡__Kan透↙ 提交于 2020-01-11 03:58:28
问题 I've been looking around for a way to mark up special days in the calendar to the user. I know that you can disable certain days in the datepicker but I would like to be able to just mark/style certain days, for instance change background/color to red on dates that have a special value, holidays for instance, and not disable them. I have not found any way to do this, sorry if I have missed something obvious. Have anyone found a way to do this or is it easier to just make my own datepicker in

10个超好用的配色网站

吃可爱长大的小学妹 提交于 2020-01-07 22:24:49
01 Material Palette 网站地址:http://www.materialpalette.com/ Material Palette是一款提供Material Design配色的线上工具,它的用法很简单,你只要找出想要搭配的两种颜色,它就会显示出两种颜色搭配在一起的效果预览,并提供你较深或较浅的颜色选项,以及其他你可能会用到的颜色代码。 02 ColorGG 网站地址: https://www.colorgg.com ​Colorgg颜色代码百科全书,提供颜色信息,颜色搭配,颜色代码查询以及RGB、CMYK、HSL、HSV、XYZ、xyY、CIELAB、LUV、LCH等颜色空间转换。。 03 Flat UI Colors 网站地址:http://flatuicolors.com/ Flat UI Colors采集了扁平化设计中最受欢迎的色彩,可以吸取复制任何你看中的色彩。可以通过选择相似的色调和饱和度,来达到快速配色。还可以免费选择和下载色值到本地。 04 Coolors 网站地址:http://coolors.co/ Coolors是一个可以让你简单快速地选色生成工具,为你找出配色的灵感,该网站每次会为你挑选由五种颜色组合而成的调色盘,并显示颜色的代码,你可以快速选取使用,或是锁定其中的几种颜色。 05 Skala Color 网站地址:http://bjango

angular material 2 on quickstart rc5

不羁岁月 提交于 2020-01-07 02:50:11
问题 I've been using angular2 rc 5 with ngModule So right now I wanna use angular material. For example I wanna use angular2 material sidenav. I've been install it using npm npm i @angular2-material/sidenav then I put that angular 2 material on my systemjs-config.js const map: any = { '@angular2-material': 'vendor/@angular2-material' }; after that I imported the angular material in my ngModule @NgModule({ imports: [MdButtonModule, MdCardModule], ... }) but I got an error http://localhost:3000/node

Loading textures with JSONloader

那年仲夏 提交于 2020-01-06 15:49:32
问题 I'm a newbie, and I think I missed something. Could someone check, please? HTML page: http://xalien95.altervista.org/pkmnxy_engine/alisopoli.html MODEL and TEXTURES: http://xalien95.altervista.org/pkmnxy_engine/alisopoli/ I can see the model (with weird colors), but not the textures (it's a mesh with multiple materials). Thanks in advance! EDIT: I tried with all the materials types: THREE.MeshBasicMaterial THREE.MeshDepthMaterial THREE.MeshLambertMaterial THREE.MeshNormalMaterial THREE

Glscene Ugly Texture with Materiallib

懵懂的女人 提交于 2020-01-06 09:03:41
问题 I am using GLScene in my delphi project. I add some freeform on my scene (for example tooth). in the past I don't use material libs. I add my texture via the material property directrly of the freeform. Now I have to use materiallibs because I want to use some shader. But if I add a materiallib to my free from I get a ugly result from it. You can see the effect on this picture Where is my mistake? Thanks for any answer or tip 回答1: Apparently the texture is not active. Did you enable it in the

Angular material datepicker - add content (close button)

别等时光非礼了梦想. 提交于 2020-01-06 08:44:26
问题 i am trying to add a button to my angular material datepicker. The button should be added in the top right corner and should close the datepicker on click. Also i am trying to add additional content inside my datepicker. Since i have disabled dates inside my datepicker i want to add some kind of legend which says that gray dates don't hold any data and therefore can't be selected. Is there any possibility in adding additional divs or buttons? Thanks 回答1: In this case, you need to design your

Three.js material isn't applied correctly to hexagonal faces

让人想犯罪 __ 提交于 2020-01-05 12:28:11
问题 I have a mesh, created in blender and exported to .obj. The mesh looks valid and has UV map applied and exported into the same .obj as well. For some reason, when I try to apply a texture material, or even basic material to the mesh, only half of the hexagon is actually painted. This is a mesh This is the code var container; var camera, scene, renderer; init(); animate(); function init() { container = document.createElement( 'div' ); document.body.appendChild( container ); renderer = new

怎样在ParaView中读入带材质的obj文件?

我只是一个虾纸丫 提交于 2020-01-01 18:13:59
在之前的文章《 ParaView和VTK中场景的导入与导出 》中分享过一个示例,通过VTK读入3DS MAX的文件,然后导出obj文件,并在ParaView中进行呈现,如下所示: 最近有小伙伴问: obj文件在ParaView里面为什么没有颜色渲染? 这是因为obj里面只保存了几何信息,材质相关的信息保存在.mtl格式的文件中,ParaView不能读取.mtl格式文件,所以没有颜色渲染。 其实在之前的示例中,导出obj文件时,mtl文件也一并导出了,需要转换一下格式就能被ParaView读取了。Kitware的开发人员在GItHub上分享了转换程序 obj-mtl-importer.py ,粘贴如下: #!/Applications/ParaView-5.4.0.app/Contents/bin/pvpython # ----------------------------------------------------------------------------- # User configuration # ----------------------------------------------------------------------------- # objToLoad = '/Users/seb/Documents/code/Web/vtk-js/Data