mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
70 lines
2.3 KiB
QML
70 lines
2.3 KiB
QML
//
|
|
// HiFiConstants.qml
|
|
//
|
|
// Created by Bradley Austin Davis on 28 Apr 2015
|
|
// Copyright 2015 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
import QtQuick 2.5
|
|
|
|
Item {
|
|
SystemPalette { id: sysPalette; colorGroup: SystemPalette.Active }
|
|
readonly property alias colors: colors
|
|
readonly property alias layout: layout
|
|
readonly property alias fonts: fonts
|
|
readonly property alias styles: styles
|
|
readonly property alias effects: effects
|
|
|
|
Item {
|
|
id: colors
|
|
readonly property color hifiBlue: "#0e7077"
|
|
readonly property color window: sysPalette.window
|
|
readonly property color dialogBackground: sysPalette.window
|
|
readonly property color inputBackground: "white"
|
|
readonly property color background: sysPalette.dark
|
|
readonly property color text: "#202020"
|
|
readonly property color disabledText: "gray"
|
|
readonly property color hintText: "gray" // A bit darker than sysPalette.dark so that it is visible on the DK2
|
|
readonly property color light: sysPalette.light
|
|
readonly property alias activeWindow: activeWindow
|
|
readonly property alias inactiveWindow: inactiveWindow
|
|
QtObject {
|
|
id: activeWindow
|
|
readonly property color headerBackground: "white"
|
|
readonly property color headerText: "black"
|
|
}
|
|
QtObject {
|
|
id: inactiveWindow
|
|
readonly property color headerBackground: "gray"
|
|
readonly property color headerText: "black"
|
|
}
|
|
}
|
|
|
|
QtObject {
|
|
id: fonts
|
|
readonly property string fontFamily: "Arial" // Available on both Windows and OSX
|
|
readonly property real pixelSize: 22 // Logical pixel size; works on Windows and OSX at varying physical DPIs
|
|
readonly property real headerPixelSize: 32
|
|
}
|
|
|
|
QtObject {
|
|
id: layout
|
|
property int spacing: 8
|
|
property int rowHeight: 40
|
|
property int windowTitleHeight: 48
|
|
}
|
|
|
|
QtObject {
|
|
id: styles
|
|
readonly property int borderWidth: 5
|
|
readonly property int borderRadius: borderWidth * 2
|
|
}
|
|
|
|
QtObject {
|
|
id: effects
|
|
readonly property int fadeInDuration: 300
|
|
}
|
|
}
|