qt ui指针和本类对象_您需要了解的有关UI设计的形状和对象的所有信息

qt ui指针和本类对象

重点 (Top highlight)

第1部分 (Part 1)

So you’re thinking about becoming a UX/UI designer, but are afraid to start? Don’t worry. It’s easier than you think. You only need a solid foundation and a lot of dedication. I can’t help you with the latter, so let’s focus on the former.

因此,您正在考虑成为UX / UI设计人员,但又害怕开始吗? 不用担心 它比您想象的要容易。 您只需要坚实的基础和很多奉献精神。 对于后者,我无能为力,所以让我们专注于前者。

This is going to be a part of a larger series of stories, based on the free chapters of Designing UI book. I tried to divide it into easy to digest chunks. Enjoy!

根据Designing UI book的免费章节,这将是更大系列故事的一部分。 我试图将其划分为易于消化的块。 请享用!

如何创建图像? (How are the images created?)

Whether you’re making a low-fidelity wireframe, or a fully finalised, beautiful UI design, you’ll be using shapes and objects in a design tool of your choice. You can even use Keynote or Powerpoint to get familiar with shapes and their relations, and then do the transition to Sketch, Figma, Adobe XD or others.

无论是制作低保真线框,还是完成最终确定的精美UI设计,都将在您选择的设计工具中使用形状和对象。 您甚至可以使用Keynote或Powerpoint熟悉形状及其关系,然后过渡到Sketch , Figma , Adobe XD或其他。

All currently available UI design tools work by manipulating vector shapes. That means that all you see is represented by numbers that define it. It also means the object can be stretched and enlarged without losing any quality — it simply makes the numbers bigger and re-creates it again.

当前所有可用的UI设计工具都可以通过操纵矢量形状来工作。 这意味着您所看到的全部由定义它的数字表示。 这也意味着可以拉伸和放大该对象而不会损失任何质量-它只是使数字更大并重新创建它。

If you’re planning to design interfaces, be prepared that most of the time, it will be about moving various rectangular objects around. Rectangles are the most popular shape (right before ellipses) in all the interfaces.

如果您打算设计界面,请在大多数时候做好准备,这将是围绕移动各种矩形对象。 矩形是所有界面中最流行的形状(椭圆形之前)。

The general idea of UI design is about moving rectangles around in just the right way.

UI设计的一般思想是以正确的方式移动矩形。

UI design is about moving rectangles around.

UI design is about moving rectangles around. And the skill is all in knowing HOW to move them, WHERE and most importantly WHY.

UI设计是关于移动矩形。 而技能就是知道如何移动它们,在哪里,最重要的是为什么。

盒子模型 (The box model)

The Box model is the most basic way of defining a digital interface object both in design and in code. Most of the design we do works according to the box model, so it’s essential to get to know it well.

Box模型是在设计和代码中定义数字接口对象的最基本方法。 我们所做的大多数设计都是根据盒子模型进行的,因此对它的了解非常重要。

Box model of an object.

It consists of four main elements:

它包含四个主要元素:

  • Fill

  • Border

    边境
  • Outer margin

    外边距
  • Inner margin

    内缘

Fill should be pretty self-explanatory. It’s the background of our element. It can be a solid color, a gradient, an image or a mix of all of these.

填充应该很不言自明。 这是我们元素的背景。 它可以是纯色,渐变,图像或所有这些的混合。

Border is an outline around our object. We will dive into all the different kinds of borders in the next stories from this series.

边框是围绕我们对象的轮廓。 在本系列的下一个故事中,我们将深入探讨所有不同类型的边界。

Outer margin (often just called “margin”) is the area outside of our object. It allows us to position it with enough safe space concerning everything around it. It’s the blue area outside our rectangle.

外边距 (通常称为“边距”) 是我们物体之外的区域。 它使我们能够为周围的一切放置足够的安全空间。 这是矩形外部的蓝色区域。

The inner margin is also called padding — this may come in handy when talking to developers. It means the more extensive it is, the bigger the safe area inside the object becomes. In the example above, it’s the darker area inside our colorful rectangle.

内部空白也称为填充 -与开发人员交谈时可能会派上用场。 这意味着范围越广,物体内部的安全区域就越大。 在上面的示例中,它是我们彩色矩形内较暗的区域。

定义属性 (Defining properties)

尺寸 (Size)

Width and height (in points) define the size of an object. In most cases, we use W and H for short. As it’s a two-dimensional space, the width is a scale on the horizontal axis, while the height is a scale on a vertical one.

宽度和高度(以磅为单位)定义对象的大小。 在大多数情况下,我们简称W和H。 因为是二维空间,所以宽度是水平轴上的刻度,而高度是垂直轴上的刻度。

For short, points are not the same as pixels. The resolutions and pixel-densities are a topic for another article, so to keep it short: Points are vector representation of pixels, that are dependant on the resolution. On modern, very pixel-dense displays 1 point can be 4 pixels or more. The reason for this is to have large enough elements, but also give them enough sharpness and precision.

简而言之,点与像素不同。 分辨率和像素密度是另一篇文章的主题,因此请尽量简短:点是像素的矢量表示,取决于分辨率。 在现代的像素密集型显示器上,1点可以是4像素或更多。 这样做的原因是要有足够大的元素,但还要给它们足够的清晰度和精度。

Width and height in points, of a rectangle.

The width and height are always of the smallest possible rectangular box that can contain the object — even if the object itself has an irregular shape.

宽度和高度始终是可能包含该对象的最小矩形框,即使该对象本身具有不规则形状也是如此。

how irregular shapes sizes are defined.

位置 (Position)

The position of the object is a set of numbers on the X and Y axis, defined by the artboard that contains it. The X is the position on the horizontal axis, while the Y is the position on the vertical one.

对象的位置是X和Y轴上的一组数字,由包含它的画板定义。 X是水平轴上的位置,而Y是垂直轴上的位置。

Position of an object.

Ok, that’s easy for a square. But how about a circle? Or some random blob? Irregular objects positions are the position of their bounding box that contains the actual shape within.

好的,对于广场来说很容易。 但是圆呢? 还是一些随机斑点? 不规则对象的位置是其边界框的位置,其中包含实际形状。

irregular objects positioned using a bounding box

角度 (Angle)

Angle defines the rotation of our object going clockwise — the default being 0°. Rotation can also be a negative number. It’s worth remembering that a -15° rotation is the same as 360°-15°, which equals 345°.

角度定义了对象顺时针旋转的角度-默认值为0°。 旋转也可以是负数。 值得记住的是,-15°旋转与360°-15°相同,等于345°。

Image for post

In order to have a consistent interface, it’s best not to rotate objects by hand, but instead enter the right angle from the keyboard as it is way more precise than manually turning the object point by point.

为了拥有一致的界面,最好不要手动旋转对象,而应通过键盘输入直角,因为与手动逐点旋转对象相比,此方法更加精确。

If we Flatten the object (there’s a button that “does it”), it resets the angle to 0, but it is still rotated — only the new perspective becomes the base for further rotation.

如果我们展对象(有一个“执行它”的按钮),它将角度重置为0,但仍会旋转-只有新的透视图才成为进一步旋转的基础。

circle rotation.

Rotating circles will of course yield no visible result, unless they are filled with a gradient or a photo.

旋转的圆圈当然不会产生可见的结果,除非它们充满渐变或照片。

边框半径 (Border radius)

Many studies show, that rounded shapes are considered more friendly than sharp ones. To define the level of roundness, we use a property known as border radius (sometimes corner-radius).

许多研究表明,圆形比锋利的形状更友好。 为了定义圆度,我们使用一个称为边界半径(有时为圆角半径)的属性。

rectangles with varius border radii.

A border-radius is a number. Just like the width and height, it’s also presented in points. The larger that number, the larger the roundness of the corners of our shape. You can use it for all of the edges at once or set them individually.

边界半径是一个数字。 就像宽度和高度一样,它也以磅表示。 该数字越大,形状拐角的圆度越大。 您可以一次将其用于所有边缘,也可以分别设置。

In general, even slightly rounded corners (between 2 and 6p) are considered more friendly than sharp ones (of 0 p). However, it’s good to have consistency in the roundness. The grid base unit that we select should define the border-radius. It should also match its surroundings.

通常,即使是稍微倒圆的角(介于2和6p之间)也被认为比尖的角(0 p)更友好。 但是,最好保持圆度一致。 我们选择的网格基本单位应定义边界半径。 它也应该与周围环境匹配。

button with two rounded corners

Different border radii in the same object can make a great button if it also matches the brand guidelines (i.e., the logo also has a similar pattern).

如果同一对象上的不同边框半径也符合品牌准则(即徽标也具有相似的图案),则可以制作一个精美的按钮。

If you decide to make your buttons that way, remember to be consistent with them across all the screens.

如果决定以这种方式制作按钮,请记住在所有屏幕上都与它们保持一致。

下一步是什么? (What’s next?)

Thanks for getting this far! Hope you’re on your way to making some shapes!

感谢您的帮助! 希望您正在制作一些形状!

This has been the 1st part of the series. Check out Part 2

这是该系列的第一部分。 查看 第2部分

I will cover fills, borders, shadows, blurs and more in the next stories from the series.📕 You can also DOWNLOAD this chapter as a free PDF here. I wrote a whole 📘 420+ page ebook on designing UI’s. 👨🏻‍💻 By day I work at HYPE4.com

在本系列的下一个故事中,我将介绍填充,边界,阴影,模糊等内容。📕 您也可以在此处以免费PDF格式下载本章。 我写了整本420 英镑的电子书来设计UI 。 💻白天我在HYPE4.com工作

Image for post
UX Para Minas Pretas (UX For Black Women), a Brazilian organization focused on promoting equity of Black women in the tech industry through initiatives of action, empowerment, and knowledge sharing. Silence against systemic racism is not an option. Build the design community you believe in.UX Para Minas Pretas (UX For Black Women),这是一个巴西组织,致力于通过采取行动,赋权和知识共享的举措来促进科技行业中的黑人女性平等。 对系统性种族主义保持沉默是不可行的。 建立您相信的设计社区。

翻译自: https://uxdesign.cc/all-you-need-to-know-about-ui-design-shapes-and-objects-619c13a8523c

qt ui指针和本类对象

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/274933.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

移动端h5页面复制粘贴(兼容到ios9安卓4.0.0)

项目使用jquery框架纯h5复制粘贴解决了iscroll4阻止所有默认事件,长按无法弹出复制菜单项目需要写一个上拉加载页面,页面中的物流信息需要可复制粘贴,同时需要兼容到ios9和安卓4.0.0, 经过大量搜索,最终使用clipboard。代码如下 &…

2021 大前端技术回顾及未来展望

大家好,我是若川。持续组织了6个月源码共读活动,感兴趣的可以点此加我微信 ruochuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试系列2021 …

最近想读的书想做的事

越来越多了,但是总是还没开始,一天拿出一小时,周末拿出一上午。加油加油 2012/3/27 C标准库 C专家编程Expert C Programming Deep C Secrets CodeCraft编程匠艺:编写卓越的代码 代码之美 重看 编程珠玑 编程卓越之道 卷1 卷2 代码…

skysat重访周期_重访小恶梦

skysat重访周期You awaken with a start, the nightmare still fogging your mind with terror. Rain falls through cracks in the ceiling above you. The room is sparse, metallic, desolate. Searching the pockets of your yellow raincoat, you find only a cigarette l…

Python这些位运算的妙用,绝对让你大开眼界

位运算的性能大家想必是清楚的,效率绝对高。相信爱好源码的同学,在学习阅读源码的过程中会发现不少源码使用了位运算。但是为啥在实际编程过程中应用少呢?想必最大的原因,是较为难懂。不过,在面试的过程中,…

记一次 Vue2 迁移 Vue3 的实践总结

大家好,我是若川。持续组织了6个月源码共读活动,感兴趣的可以点此加我微信 ruochuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试系列一、V…

改错3-38

#include<iostream.h>class time{private:int hour,minute,second;public:void settime(int h,int m,int s) { hour(h>0&&h<24)?h:0; minute(m>0&&m<60)?m:0; second(s>0&&s<60)?s:0; }void sh…

魔兽怀旧网站模块下载_一个人的网站重新设计和怀旧

魔兽怀旧网站模块下载Despite how I look, I’m the kind kind of person that loves to play old video games. (Full disclosure: I look exactly like the kind of person that loves to play old video games).尽管我长得很帅&#xff0c;但我还是一个喜欢玩旧视频游戏的人…

华为架构师谈如何理解运用模块与微服务

模块化还是微服务&#xff1f; 我们的业务由一个大型应用转向微服务的时候&#xff0c;除了很好展示漂亮的PPT&#xff0c;提升KPI之外&#xff0c;实际操作时将整个业务切成微型服务似乎也不费吹灰之力。但这种方法真的是我们的最佳选择吗&#xff1f;确实&#xff0c;维护凌乱…

Node.js 可以和 Web 实现 HTTP 请求的跨平台兼容了!

大家好&#xff0c;我是若川。持续组织了6个月源码共读活动&#xff0c;感兴趣的可以点此加我微信 ruochuan12 参与&#xff0c;每周大家一起学习200行左右的源码&#xff0c;共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试系列大家好…

zeplin加载 不出图片_为什么Zeplin不能解决您的所有问题

zeplin加载 不出图片Design handover involves communicating the visual styles and behaviours of your design so they can be translated into code.设计移交涉及传达设计的视觉样式和行为&#xff0c;以便可以将它们转换为代码。 Back in the Dark Ages of digital desig…

POJ 基础数学

数学 组合数学 POJ3252,poj1850,poj1019,poj1942 数论 poj2635, poj3292,poj1845,poj2115 计算方法&#xff08;二分&#xff09; poj3273,poj3258,poj1905,poj3122 组合数学 poj 3252 题意&#xff1a;如果一个数是round number&#xff0c;则它的二进制表示中&#xff…

使用uwsgi和gunicorn部署Django项目

https://uwsgi-docs.readthedocs.io/en/latest/Management.html https://uwsgi-docs.readthedocs.io/en/latest/Management.html 先了解下相关杀进程命令 ps -ef|grep uwsgi|grep -v grep|awk {print $2}|xargs kill -9//查看uwsgi相关接口 ps -ef|grep uwsgi #查看相关端口 ne…

推荐2022前端必看的新书 《Vue.js设计与实现》

大家好&#xff0c;我是若川。持续组织了6个月源码共读活动&#xff0c;感兴趣的可以点此加我微信 ruochuan12 参与&#xff0c;每周大家一起学习200行左右的源码&#xff0c;共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试系列这本新…

汉堡菜单_汉堡菜单-可访问性和用户体验设计原则的挑战?

汉堡菜单重点 (Top highlight)I was recently designing a hamburger menu for a client and before I knew it, I had embarked on this journey where I was reading article after article about the accessibility issues which accompany a hamburger icon. Turns out, th…

Server2012R2 ADFS3.0 The same client browser session has made '6' requests in the last '13'seconds

本问题是在windows server2012R2系统ADFS3.0环境下遇到的&#xff0c;CRM2013部署ADFS后运行一段时间(大概有一两个月)后在IE浏览器中访问登陆界面点击登陆后就报以下错误 “Microsoft.IdentityServer.Web.InvalidRequestException: MSIS7042: The same client browser session…

(原创)RHEL/CentOS 5.x使用yum快速安装MySQL 5.5.x

PS&#xff1a;MySQL 5.5系列成为稳定版已经有一段时间了&#xff0c;但据我调查了解&#xff0c;在生产环境中还是以5.1系列为主。在国内的大公司里&#xff0c;只确定金山在使用5.5了。 公司的其中几台广告统计服务器&#xff0c;之前的运维直接用了自带安装的MySQL 5.0系列。…

又一个基于 Esbuild 的神器!esno

大家好&#xff0c;我是若川。持续组织了6个月源码共读活动&#xff0c;感兴趣的可以点此加我微信 ruochuan02 参与&#xff0c;每周大家一起学习200行左右的源码&#xff0c;共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试系列esno我…

c# ui 滚动 分页_UI备忘单:分页,无限滚动和“加载更多”按钮

c# ui 滚动 分页重点 (Top highlight)When you have a lot of content, you have to rely on one of these three patterns to load it. So, which is best? What will your users like? What do most platforms use? These are the questions we will explore today.当内容…

1.20(设计模式)模板模式

模板模式&#xff0c;定义了一个模板&#xff0c;模板内容通过子类实现模板的抽象方法去添加。 就类似学校需要建一个新校区&#xff0c;新校区有多栋宿舍&#xff0c;找了多个施工方&#xff0c;每个施工方负责一栋宿舍楼。 各个施工方都有自己的想法&#xff0c;建造的宿舍楼…