2019-07-07 23:52:41 -04:00
|
|
|
// Copyright 2019 miruka
|
|
|
|
// This file is part of harmonyqml, licensed under LGPLv3.
|
|
|
|
|
2019-07-13 05:39:01 -04:00
|
|
|
import QtQuick 2.12
|
2019-07-18 01:27:14 -04:00
|
|
|
import "utils.js" as Ut
|
2019-04-26 16:02:20 -04:00
|
|
|
|
|
|
|
QtObject {
|
2019-07-06 17:50:55 -04:00
|
|
|
id: theme
|
2019-04-28 11:01:38 -04:00
|
|
|
|
2019-07-15 17:43:53 -04:00
|
|
|
property int minimumSupportedWidth: 240
|
|
|
|
property int minimumSupportedHeight: 120
|
2019-07-18 01:18:06 -04:00
|
|
|
property int isWideAbove: 599
|
2019-07-15 17:43:53 -04:00
|
|
|
|
2019-07-17 13:34:02 -04:00
|
|
|
property int minimumSupportedWidthPlusSpacing: 240 + spacing * 2
|
|
|
|
property int minimumSupportedHeightPlusSpacing: 120 + spacing * 2
|
|
|
|
|
2019-07-16 05:13:19 -04:00
|
|
|
property int baseElementsHeight: 36
|
2019-07-16 05:29:47 -04:00
|
|
|
property int spacing: 8
|
|
|
|
property int animationDuration: 100
|
2019-07-16 05:13:19 -04:00
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject fontSize: QtObject {
|
2019-04-28 00:44:55 -04:00
|
|
|
property int smallest: 6
|
|
|
|
property int smaller: 8
|
2019-07-05 03:27:32 -04:00
|
|
|
property int small: 13
|
2019-04-28 00:44:55 -04:00
|
|
|
property int normal: 16
|
|
|
|
property int big: 24
|
|
|
|
property int bigger: 32
|
|
|
|
property int biggest: 48
|
2019-04-26 16:02:20 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject fontFamily: QtObject {
|
2019-04-28 00:44:55 -04:00
|
|
|
property string sans: "SFNS Display"
|
|
|
|
property string serif: "Roboto Slab"
|
|
|
|
property string mono: "Hack"
|
|
|
|
}
|
|
|
|
|
2019-04-28 15:13:18 -04:00
|
|
|
property int radius: 5
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject colors: QtObject {
|
2019-07-18 01:31:51 -04:00
|
|
|
property color background0: Ut.hsla(0, 0, 90, 0.5)
|
|
|
|
property color background1: Ut.hsla(0, 0, 90, 0.6)
|
|
|
|
property color background2: Ut.hsla(0, 0, 90, 0.7)
|
2019-04-28 11:01:38 -04:00
|
|
|
property color foreground: "black"
|
2019-07-18 01:31:51 -04:00
|
|
|
property color foregroundDim: Ut.hsl(0, 0, 20)
|
|
|
|
property color foregroundDim2: Ut.hsl(0, 0, 30)
|
|
|
|
property color foregroundError: Ut.hsl(342, 64, 32)
|
|
|
|
property color textBorder: Ut.hsla(0, 0, 0, 0.07)
|
2019-07-18 01:53:28 -04:00
|
|
|
property color accent: Ut.hsl(25, 60, 50)
|
2019-04-28 00:44:55 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject controls: QtObject {
|
|
|
|
property QtObject button: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-04-28 15:13:18 -04:00
|
|
|
}
|
|
|
|
|
2019-07-18 01:56:58 -04:00
|
|
|
property QtObject interactiveRectangle: QtObject {
|
2019-07-12 17:06:37 -04:00
|
|
|
property color background: "transparent"
|
2019-07-18 01:31:51 -04:00
|
|
|
property color hoveredBackground: Ut.hsla(0, 0, 0, 0.2)
|
|
|
|
property color pressedBackground: Ut.hsla(0, 0, 0, 0.4)
|
|
|
|
property color checkedBackground: Ut.hsla(0, 0, 0, 0.4)
|
2019-07-12 17:06:37 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject textField: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-07-18 01:53:28 -04:00
|
|
|
property color border: "black"
|
|
|
|
property color focusedBackground: background
|
|
|
|
property color focusedBorder: colors.accent
|
2019-07-13 20:15:20 -04:00
|
|
|
property int borderWidth: 1
|
2019-04-28 15:13:18 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject textArea: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-04-28 15:13:18 -04:00
|
|
|
}
|
|
|
|
}
|
2019-04-28 11:01:38 -04:00
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject sidePane: QtObject {
|
2019-07-17 13:34:02 -04:00
|
|
|
property real autoWidthRatio: 0.33
|
|
|
|
property int maximumAutoWidth: 320
|
2019-07-16 08:36:11 -04:00
|
|
|
|
2019-07-17 13:34:02 -04:00
|
|
|
property int autoCollapseBelowWidth: 128
|
2019-07-16 08:36:11 -04:00
|
|
|
property int collapsedWidth: avatar.size
|
2019-07-16 09:21:45 -04:00
|
|
|
|
|
|
|
property int autoReduceBelowWindowWidth:
|
2019-07-17 13:34:02 -04:00
|
|
|
minimumSupportedWidthPlusSpacing + collapsedWidth
|
2019-07-16 08:36:11 -04:00
|
|
|
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-04-28 15:13:18 -04:00
|
|
|
|
2019-07-12 17:06:37 -04:00
|
|
|
property QtObject account: QtObject {
|
|
|
|
property color background: Qt.lighter(colors.background2, 1.05)
|
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject settingsButton: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-04-28 15:13:18 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject filterRooms: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-04-28 15:13:18 -04:00
|
|
|
}
|
2019-04-28 00:44:55 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject chat: QtObject {
|
|
|
|
property QtObject selectViewBar: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-05-11 17:51:00 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject roomHeader: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-04-28 11:01:38 -04:00
|
|
|
}
|
|
|
|
|
2019-07-13 20:15:20 -04:00
|
|
|
property QtObject eventList: QtObject {
|
2019-04-28 14:20:30 -04:00
|
|
|
property color background: "transparent"
|
2019-04-28 11:01:38 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject message: QtObject {
|
2019-07-18 01:31:51 -04:00
|
|
|
property color ownBackground: Ut.hsla(25, 40, 82, 0.7)
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-04-28 11:01:38 -04:00
|
|
|
property color body: colors.foreground
|
|
|
|
property color date: colors.foregroundDim
|
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject daybreak: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-04-28 11:01:38 -04:00
|
|
|
property color foreground: colors.foreground
|
2019-07-06 17:50:55 -04:00
|
|
|
property int radius: theme.radius
|
2019-04-28 11:01:38 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject inviteBanner: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-04-28 11:01:38 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject leftBanner: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-04-28 14:20:30 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject unknownDevices: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-05-08 13:45:25 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject typingMembers: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background1
|
2019-04-28 11:01:38 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject sendBox: QtObject {
|
2019-07-06 17:53:51 -04:00
|
|
|
property color background: colors.background2
|
2019-04-28 11:01:38 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-13 20:15:20 -04:00
|
|
|
property color pageHeadersBackground: colors.background2
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject box: QtObject {
|
2019-04-28 15:38:08 -04:00
|
|
|
property color background: colors.background0
|
2019-07-06 17:50:55 -04:00
|
|
|
property int radius: theme.radius
|
2019-04-28 11:01:38 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject avatar: QtObject {
|
2019-07-16 05:13:19 -04:00
|
|
|
property int size: baseElementsHeight
|
2019-07-06 17:50:55 -04:00
|
|
|
property int radius: theme.radius
|
2019-04-28 11:01:38 -04:00
|
|
|
property color letter: "white"
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject background: QtObject {
|
2019-04-28 11:01:38 -04:00
|
|
|
property real saturation: 0.22
|
|
|
|
property real lightness: 0.5
|
|
|
|
property real alpha: 1
|
2019-07-18 01:31:51 -04:00
|
|
|
property color unknown: Ut.hsl(0, 0, 22)
|
2019-04-28 11:01:38 -04:00
|
|
|
}
|
2019-04-28 00:44:55 -04:00
|
|
|
}
|
|
|
|
|
2019-07-06 21:06:18 -04:00
|
|
|
property QtObject displayName: QtObject {
|
2019-04-28 11:01:38 -04:00
|
|
|
property real saturation: 0.32
|
|
|
|
property real lightness: 0.3
|
2019-04-26 16:02:20 -04:00
|
|
|
}
|
|
|
|
}
|