blob: 7df3a40e5cf65b2715fb6e2fb119efad2932d52e [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"
Sébastien Blinacb1cf02020-08-17 22:38:19 -040042 property string unPresenceOrange: "orange"
ababidf651a22020-07-30 13:38:57 +020043 property string backgroundColor: lightGrey_
44 property string backgroundDarkColor: lightGreyTab_
Sébastien Blin1f915762020-08-03 13:27:42 -040045
46 property string screenSelectionBorderGreen: "green"
47
48 property string acceptButtonGreen: "#4caf50"
49 property string acceptButtonHoverGreen: "#5db761"
50 property string acceptButtonPressedGreen: "#449d48"
51
52 property string declineButtonRed: "#f44336"
53 property string declineButtonHoverRed: "#f5554a"
54 property string declineButtonPressedRed: "#db3c30"
55
56 property string hangUpButtonTintedRed: "#ff0000"
57 property string buttonTintedBlue: "#00aaff"
Sébastien Blinc2220f82020-08-25 21:12:14 -040058 property string buttonTintedBlueHovered: "#0e81c5"
59 property string buttonTintedBluePressed: "#273261"
Sébastien Blinc75335f2020-08-04 20:54:02 -040060 property string buttonTintedGrey: "#999"
Sébastien Blinc2220f82020-08-25 21:12:14 -040061 property string buttonTintedGreyHovered: "#777"
62 property string buttonTintedGreyPressed: "#777"
Sébastien Blinc75335f2020-08-04 20:54:02 -040063 property string buttonTintedGreyInactive: "#bbb"
Sébastien Blinacb1cf02020-08-17 22:38:19 -040064 property string buttonTintedBlack: "#333"
65 property string buttonTintedBlackHovered: "#111"
66 property string buttonTintedBlackPressed: "#000"
67 property string buttonTintedRed: "red"
68 property string buttonTintedRedHovered: "#c00"
69 property string buttonTintedRedPressed: "#b00"
Sébastien Blin1f915762020-08-03 13:27:42 -040070
71 property string selectionBlue: "#109ede"
72 property string selectionGreen: "#21be2b"
73 property string rubberBandSelectionBlue: "steelblue"
74
75 property string closeButtonLighterBlack: "#4c4c4c"
76
77 property string contactSearchBarPlaceHolderTextFontColor: "#767676"
78 property string contactSearchBarPlaceHolderGreyBackground: "#dddddd"
79
80 property string draftRed: "#cf5300"
81
Ming Rui Zhang44dba712020-08-25 14:32:34 -040082 property string sipInputButtonBackgroundColor: "#336699"
83 property string sipInputButtonHoverColor: "#4477aa"
84 property string sipInputButtonPressColor: "#5588bb"
Sébastien Blin1f915762020-08-03 13:27:42 -040085
86 /*
87 * Font.
88 */
89 property string faddedFontColor: "#c0c0c0"
90 property string faddedLastInteractionFontColor: "#505050"
91
ababia284cae2020-08-10 12:33:34 +020092 property int splitViewHandlePreferredWidth: 4
Sébastien Blin1f915762020-08-03 13:27:42 -040093 property int textFontSize: 9
ababi6fa08612020-08-10 19:13:28 +020094 property int settingsFontSize: 10
95 property int buttonFontSize: 9
96 property int headerFontSize: 13
ababidf651a22020-07-30 13:38:57 +020097 property int titleFontSize: 16
98 property int menuFontSize: 12
Sébastien Blin1f915762020-08-03 13:27:42 -040099
ababi6fa08612020-08-10 19:13:28 +0200100 property int maximumWidthSettingsView: 800
Sébastien Blinacb1cf02020-08-17 22:38:19 -0400101 property int preferredFieldWidth: 216
ababi6fa08612020-08-10 19:13:28 +0200102 property int preferredFieldHeight: 32
103 property int preferredMarginSize: 16
104
Sébastien Blin1f915762020-08-03 13:27:42 -0400105
106 /*
107 * Place holder text.
108 */
109 property string contactSearchBarPlaceHolderConversationText: qsTr("Find or start a conversation")
ababidf651a22020-07-30 13:38:57 +0200110 property string contactSearchBarPlaceHolderInivitionText: qsTr("Search your invitations")
Sébastien Blin1f915762020-08-03 13:27:42 -0400111
112 // Jami theme colors
113 function rgb256(r, g, b) {
114 return Qt.rgba(r / 256, g / 256, b / 256, 1)
115 }
116
117 property color blue_: "#109ede"
Sébastien Blinc75335f2020-08-04 20:54:02 -0400118 property color wizardBlueButtons: "#28b1ed"
ababidf651a22020-07-30 13:38:57 +0200119 property color blueLogo_: rgb256(0, 7, 71)
Sébastien Blin1f915762020-08-03 13:27:42 -0400120 property color lightBlue_: "#c1ebf0"
121 property color lightGrey_: rgb256(242, 242, 242)
ababidf651a22020-07-30 13:38:57 +0200122 property color lightGreyTab_: rgb256(220, 220, 220)
Sébastien Blin1f915762020-08-03 13:27:42 -0400123 property color imGrey_: "#dedee0"
124 property color imBlue_: "#cfebf5"
125 property color lightBlack_: rgb256(63, 63, 63)
126 property color grey_: rgb256(160, 160, 160)
127 property color red_: rgb256(251, 72, 71)
128 property color lightRed_: rgb256(252, 91, 90)
129 property color darkRed_: rgb256(219, 55, 54)
130 property color notificationRed_: rgb256(255, 59, 48)
131 property color urgentOrange_: rgb256(255, 165, 0)
132 property color green_: rgb256(127, 255, 0)
133 property color presenceGreen_: rgb256(76, 217, 100)
134 property color smartlistSelection_: rgb256(240, 240, 240)
135 property color smartlistHighlight_: rgb256(245, 245, 245)
136}