moment/src/qml/Theme.qml

164 lines
5.0 KiB
QML
Raw Normal View History

2019-07-08 13:52:41 +10:00
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.12
2019-04-27 06:02:20 +10:00
QtObject {
id: theme
2019-04-29 01:01:38 +10:00
property int minimumSupportedWidth: 240
property int minimumSupportedHeight: 120
property int baseElementsHeight: 36
2019-07-16 19:29:47 +10:00
property int spacing: 8
property int animationDuration: 100
property QtObject fontSize: QtObject {
2019-04-28 14:44:55 +10:00
property int smallest: 6
property int smaller: 8
2019-07-05 17:27:32 +10:00
property int small: 13
2019-04-28 14:44:55 +10:00
property int normal: 16
property int big: 24
property int bigger: 32
property int biggest: 48
2019-04-27 06:02:20 +10:00
}
property QtObject fontFamily: QtObject {
2019-04-28 14:44:55 +10:00
property string sans: "SFNS Display"
property string serif: "Roboto Slab"
property string mono: "Hack"
}
2019-04-29 05:13:18 +10:00
property int radius: 5
property QtObject colors: QtObject {
property color background0: Qt.hsla(0, 0, 0.9, 0.5)
2019-07-07 07:53:51 +10:00
property color background1: Qt.hsla(0, 0, 0.9, 0.6)
property color background2: Qt.hsla(0, 0, 0.9, 0.7)
2019-04-29 01:01:38 +10:00
property color foreground: "black"
property color foregroundDim: Qt.hsla(0, 0, 0.2, 1)
property color foregroundDim2: Qt.hsla(0, 0, 0.3, 1)
2019-04-29 01:01:38 +10:00
property color foregroundError: Qt.hsla(0.95, 0.64, 0.32, 1)
2019-05-18 07:47:36 +10:00
property color textBorder: Qt.hsla(0, 0, 0, 0.07)
2019-04-28 14:44:55 +10:00
}
property QtObject controls: QtObject {
property QtObject button: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
2019-04-29 05:13:18 +10:00
}
2019-07-13 07:06:37 +10:00
property QtObject listEntry: QtObject {
property color background: "transparent"
property color hoveredBackground: Qt.hsla(0, 0, 0, 0.2)
property color pressedBackground: Qt.hsla(0, 0, 0, 0.4)
property color checkedBackground: Qt.hsla(0, 0, 0, 0.4)
}
property QtObject textField: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
property color borderColor: "black"
property int borderWidth: 1
2019-04-29 05:13:18 +10:00
}
property QtObject textArea: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
2019-04-29 05:13:18 +10:00
}
}
2019-04-29 01:01:38 +10:00
property QtObject sidePane: QtObject {
2019-07-16 22:36:11 +10:00
property real autoWidthRatio: 0.3
property int maximumAutoWidth: 300
property int autoCollapseBelowWidth: 120
property int collapsedWidth: avatar.size
property int autoReduceBelowWidth:
minimumSupportedWidth + collapsedWidth
2019-07-07 07:53:51 +10:00
property color background: colors.background2
2019-04-29 05:13:18 +10:00
2019-07-13 07:06:37 +10:00
property QtObject account: QtObject {
property color background: Qt.lighter(colors.background2, 1.05)
}
property QtObject settingsButton: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
2019-04-29 05:13:18 +10:00
}
property QtObject filterRooms: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
2019-04-29 05:13:18 +10:00
}
2019-04-28 14:44:55 +10:00
}
property QtObject chat: QtObject {
property QtObject selectViewBar: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
}
property QtObject roomHeader: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
2019-04-29 01:01:38 +10:00
}
property QtObject eventList: QtObject {
property color background: "transparent"
2019-04-29 01:01:38 +10:00
}
property QtObject message: QtObject {
property color ownBackground: Qt.hsla(0.07, 0.4, 0.82, 0.7)
2019-07-07 07:53:51 +10:00
property color background: colors.background2
2019-04-29 01:01:38 +10:00
property color body: colors.foreground
property color date: colors.foregroundDim
}
property QtObject daybreak: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
2019-04-29 01:01:38 +10:00
property color foreground: colors.foreground
property int radius: theme.radius
2019-04-29 01:01:38 +10:00
}
property QtObject inviteBanner: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
2019-04-29 01:01:38 +10:00
}
property QtObject leftBanner: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
}
property QtObject unknownDevices: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
}
property QtObject typingMembers: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background1
2019-04-29 01:01:38 +10:00
}
property QtObject sendBox: QtObject {
2019-07-07 07:53:51 +10:00
property color background: colors.background2
2019-04-29 01:01:38 +10:00
}
}
property color pageHeadersBackground: colors.background2
property QtObject box: QtObject {
2019-04-29 05:38:08 +10:00
property color background: colors.background0
property int radius: theme.radius
2019-04-29 01:01:38 +10:00
}
property QtObject avatar: QtObject {
property int size: baseElementsHeight
property int radius: theme.radius
2019-04-29 01:01:38 +10:00
property color letter: "white"
property QtObject background: QtObject {
2019-04-29 01:01:38 +10:00
property real saturation: 0.22
property real lightness: 0.5
property real alpha: 1
property color unknown: Qt.hsla(0, 0, 0.22, 1)
}
2019-04-28 14:44:55 +10:00
}
property QtObject displayName: QtObject {
2019-04-29 01:01:38 +10:00
property real saturation: 0.32
property real lightness: 0.3
2019-04-27 06:02:20 +10:00
}
}