Difference between revisions of "KDE Visual Design Group/HIG/Units"

Jump to: navigation, search
(Created page with "__NOTOC__ == Purpose == This pages gives an overview about different units used in KDE and Plasma == Pixel == A (physical) pixel is a physical point in a raster image, or the...")
 
(Move notice)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
== Purpose ==
 
This pages gives an overview about different units used in KDE and Plasma
 
  
== Pixel ==
+
{{Note|This page is now on [[https://hig.kde.org/layout/units.html https://hig.kde.org/]]}}
A (physical) pixel is a physical point in a raster image, or the smallest addressable element in an all points addressable display device. <span style="color: red">Be careful not to confuse it with PPI independent pixels</span>
+
 
+
== PPI - pixels per inch ==
+
Pixel density is the number of (physical) pixels that fit into an inch. Different screens have different PPI.
+
<br/><br/>
+
<b>screen density = screen width (or height) in pixels / screen width (or height) in inches</b>
+
<br/><br/>
+
 
+
PPI is often used interchangeably with DPI, dots per inch.
+
 
+
== PPI independent pixels ==
+
A PPI independet pixel is scaled to look uniform on any screen regardless of the PPI. A lot of platforms, eg iOS, Android, the Web, replaced the old (physical) px with a PPI px. So most the time you read about pixel/px they actually talk about PPI independent pixels. Qt (and QML) support PPI independent pixels in newer versions, but because KDE and Plasma support older versions of Qt too, one can not assume that pixels used in Qt or QML apps are ppi independent.
+
 
+
<br/><br/>
+
<span style="color: red">Note to developers: Except explicilty stated otherwise, all HIG pages, draft, mockups, ... pixels/px are always PPI independent pixels.</span>
+
<br/><br/>
+
 
+
 
+
== base units ==
+

Latest revision as of 19:55, 5 February 2019


Note-box-icon.png
 
Note
This page is now on [https://hig.kde.org/]

This page was last modified on 5 February 2019, at 19:55. Content is available under Creative Commons License SA 4.0 unless otherwise noted.