Skip to content

Commit

Permalink
Add Google Pixel to DeviceComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Oct 17, 2016
1 parent 7638378 commit 578bb81
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions framer/Components/DeviceComponent.coffee
Expand Up @@ -613,6 +613,7 @@ class exports.DeviceComponent extends BaseClass
########################################################################### ###########################################################################
# DEVICE CONFIGURATIONS # DEVICE CONFIGURATIONS


googlePixelReleaseVersion = 75
desktopReleaseVersion = 70 desktopReleaseVersion = 70
newDeviceMinVersion = 53 newDeviceMinVersion = 53
oldDeviceMaxVersion = 52 oldDeviceMaxVersion = 52
Expand Down Expand Up @@ -798,6 +799,24 @@ Nexus6BaseDevice =
height: 6707 height: 6707
offset: 8 offset: 8


PixelBaseDevice =
deviceImageWidth: 1224
deviceImageHeight: 2492
deviceImageCompression: true
screenWidth: 1080
screenHeight: 1920
deviceType: "phone"
minStudioVersion: googlePixelReleaseVersion
hands:
"iphone-hands-2":
width: 3344
height: 5211
offset: 23
"iphone-hands-1":
width: 3344
height: 5211
offset: 23

Nexus9BaseDevice = Nexus9BaseDevice =
deviceImageWidth: 1896 deviceImageWidth: 1896
deviceImageHeight: 2648 deviceImageHeight: 2648
Expand Down Expand Up @@ -1266,6 +1285,11 @@ Devices =
"google-nexus-6p": _.clone(Nexus6BaseDevice) "google-nexus-6p": _.clone(Nexus6BaseDevice)
"google-nexus-9": _.clone(Nexus9BaseDevice) "google-nexus-9": _.clone(Nexus9BaseDevice)


# Pixel
"google-pixel-quite-black": _.clone(PixelBaseDevice)
"google-pixel-really-blue": _.clone(PixelBaseDevice)
"google-pixel-very-silver": _.clone(PixelBaseDevice)

# HTC ONE A9 # HTC ONE A9
"htc-one-a9-black": _.clone(HTCa9BaseDevice) "htc-one-a9-black": _.clone(HTCa9BaseDevice)
"htc-one-a9-white": _.clone(HTCa9BaseDevice) "htc-one-a9-white": _.clone(HTCa9BaseDevice)
Expand Down

0 comments on commit 578bb81

Please sign in to comment.