Warning, /education/kstars/kstars/kstarslite/qml/constants/Constants.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com> 0002 // SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 pragma Singleton 0005 import QtQuick 2.7 0006 import QtQuick.Window 2.2 0007 0008 QtObject { 0009 property double dpi: Screen.pixelDensity * 25.4 0010 property double dpmm: Screen.pixelDensity 0011 property double dp: dpi < 160 ? 1 : dpi/160 0012 property double pixelRatio: Screen.devicePixelRatio 0013 property string density: { 0014 if(dpi * pixelRatio <= 120) { 0015 return "ldpi" 0016 } 0017 else if(dpi * pixelRatio <=160) { 0018 return "mdpi" 0019 } 0020 else if(dpi * pixelRatio <= 240) { 0021 return "hdpi" 0022 } 0023 else if(dpi * pixelRatio <= 320) { 0024 return "xhdpi" 0025 } 0026 else if(dpi * pixelRatio <= 480) { 0027 return "xxhdpi" 0028 } 0029 else if(dpi * pixelRatio <=640) { 0030 return "xxxhdpi" 0031 } 0032 } 0033 property string iconpath: "../" + "images/" + density + "/icons/" 0034 property string imagesPath: "images/" + density + "/" 0035 property SystemPalette sysPalette: SystemPalette { } 0036 0037 property int marginsKStab: 5 * dp //Margins of KSTab content 0038 }