Skip to content

Instantly share code, notes, and snippets.

@a-andreyev
Created August 20, 2018 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-andreyev/5cf78f02f959fb3f40aa6c7089ab762b to your computer and use it in GitHub Desktop.
Save a-andreyev/5cf78f02f959fb3f40aa6c7089ab762b to your computer and use it in GitHub Desktop.
sailfish Screen.sizeCategory and Theme.pixelRatio:
import QtQuick 2.0
import Sailfish.Silica 1.0
Item {
Component.onCompleted: {
console.log("Screen.sizeCategory:",Screen.sizeCategory)
console.log("Theme.pixelRatio:",Theme.pixelRatio)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment