blob: 623de9d63c8c4edf5035bda88dfed7bd24af77e3 [file] [log] [blame]
Sébastien Blin1f915762020-08-03 13:27:42 -04001
2/*
3 * Copyright (C) 2020 by Savoir-faire Linux
4 * Author: Mingrui Zhang <mingrui.zhang@savoirfairelinux.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20
21/*
22 * JamiTheme as a singleton is to provide global property entry
23 * https://doc.qt.io/qt-5/qqmlengine.html#qmlRegisterSingletonType-3
24 */
25pragma Singleton
26
27import QtQuick 2.14
28
29Item {
30
31
32 /*
33 * Color strings.
34 */
35 property string hoverColor: "#c7c7c7"
36 property string pressColor: "#c0c0c0"
37 property string releaseColor: "#e0e0e0"
38 property string tabbarBorderColor: "#e3e3e3"
39 property string transparentColor: "transparent"
40 property string presenceGreen: "#4cd964"
41 property string notificationRed: "#ff3b30"
ababidf651a22020-07-30 13:38:57 +020042 property string backgroundColor: lightGrey_
43 property string backgroundDarkColor: lightGreyTab_
Sébastien Blin1f915762020-08-03 13:27:42 -040044
45 property string screenSelectionBorderGreen: "green"
46
47 property string acceptButtonGreen: "#4caf50"
48 property string acceptButtonHoverGreen: "#5db761"
49 property string acceptButtonPressedGreen: "#449d48"
50
51 property string declineButtonRed: "#f44336"
52 property string declineButtonHoverRed: "#f5554a"
53 property string declineButtonPressedRed: "#db3c30"
54
55 property string hangUpButtonTintedRed: "#ff0000"
56 property string buttonTintedBlue: "#00aaff"
Sébastien Blinc2220f82020-08-25 21:12:14 -040057 property string buttonTintedBlueHovered: "#0e81c5"
58 property string buttonTintedBluePressed: "#273261"
Sébastien Blinc75335f2020-08-04 20:54:02 -040059 property string buttonTintedGrey: "#999"
Sébastien Blinc2220f82020-08-25 21:12:14 -040060 property string buttonTintedGreyHovered: "#777"
61 property string buttonTintedGreyPressed: "#777"
Sébastien Blinc75335f2020-08-04 20:54:02 -040062 property string buttonTintedGreyInactive: "#bbb"
Sébastien Blin1f915762020-08-03 13:27:42 -040063
64 property string selectionBlue: "#109ede"
65 property string selectionGreen: "#21be2b"
66 property string rubberBandSelectionBlue: "steelblue"
67
68 property string closeButtonLighterBlack: "#4c4c4c"
69
70 property string contactSearchBarPlaceHolderTextFontColor: "#767676"
71 property string contactSearchBarPlaceHolderGreyBackground: "#dddddd"
72
73 property string draftRed: "#cf5300"
74
Ming Rui Zhang44dba712020-08-25 14:32:34 -040075 property string sipInputButtonBackgroundColor: "#336699"
76 property string sipInputButtonHoverColor: "#4477aa"
77 property string sipInputButtonPressColor: "#5588bb"
Sébastien Blin1f915762020-08-03 13:27:42 -040078
79 /*
80 * Font.
81 */
82 property string faddedFontColor: "#c0c0c0"
83 property string faddedLastInteractionFontColor: "#505050"
84
ababia284cae2020-08-10 12:33:34 +020085 property int splitViewHandlePreferredWidth: 4
Sébastien Blin1f915762020-08-03 13:27:42 -040086 property int textFontSize: 9
ababi6fa08612020-08-10 19:13:28 +020087 property int settingsFontSize: 10
88 property int buttonFontSize: 9
89 property int headerFontSize: 13
ababidf651a22020-07-30 13:38:57 +020090 property int titleFontSize: 16
91 property int menuFontSize: 12
Sébastien Blin1f915762020-08-03 13:27:42 -040092
ababi6fa08612020-08-10 19:13:28 +020093 property int maximumWidthSettingsView: 800
94 property int preferredButtonWidth: 200
95 property int preferredFieldHeight: 32
96 property int preferredMarginSize: 16
97
Sébastien Blin1f915762020-08-03 13:27:42 -040098
99 /*
100 * Place holder text.
101 */
102 property string contactSearchBarPlaceHolderConversationText: qsTr("Find or start a conversation")
ababidf651a22020-07-30 13:38:57 +0200103 property string contactSearchBarPlaceHolderInivitionText: qsTr("Search your invitations")
Sébastien Blin1f915762020-08-03 13:27:42 -0400104
105 // Jami theme colors
106 function rgb256(r, g, b) {
107 return Qt.rgba(r / 256, g / 256, b / 256, 1)
108 }
109
110 property color blue_: "#109ede"
Sébastien Blinc75335f2020-08-04 20:54:02 -0400111 property color wizardBlueButtons: "#28b1ed"
ababidf651a22020-07-30 13:38:57 +0200112 property color blueLogo_: rgb256(0, 7, 71)
Sébastien Blin1f915762020-08-03 13:27:42 -0400113 property color lightBlue_: "#c1ebf0"
114 property color lightGrey_: rgb256(242, 242, 242)
ababidf651a22020-07-30 13:38:57 +0200115 property color lightGreyTab_: rgb256(220, 220, 220)
Sébastien Blin1f915762020-08-03 13:27:42 -0400116 property color imGrey_: "#dedee0"
117 property color imBlue_: "#cfebf5"
118 property color lightBlack_: rgb256(63, 63, 63)
119 property color grey_: rgb256(160, 160, 160)
120 property color red_: rgb256(251, 72, 71)
121 property color lightRed_: rgb256(252, 91, 90)
122 property color darkRed_: rgb256(219, 55, 54)
123 property color notificationRed_: rgb256(255, 59, 48)
124 property color urgentOrange_: rgb256(255, 165, 0)
125 property color green_: rgb256(127, 255, 0)
126 property color presenceGreen_: rgb256(76, 217, 100)
127 property color smartlistSelection_: rgb256(240, 240, 240)
128 property color smartlistHighlight_: rgb256(245, 245, 245)
129}