blob: d9086c69ce843ff5dcb1e95f5d9916ddfee5aece [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 Blinc75335f2020-08-04 20:54:02 -040057 property string buttonTintedGrey: "#999"
58 property string buttonTintedGreyInactive: "#bbb"
Sébastien Blin1f915762020-08-03 13:27:42 -040059
60 property string selectionBlue: "#109ede"
61 property string selectionGreen: "#21be2b"
62 property string rubberBandSelectionBlue: "steelblue"
63
64 property string closeButtonLighterBlack: "#4c4c4c"
65
66 property string contactSearchBarPlaceHolderTextFontColor: "#767676"
67 property string contactSearchBarPlaceHolderGreyBackground: "#dddddd"
68
69 property string draftRed: "#cf5300"
70
Ming Rui Zhang44dba712020-08-25 14:32:34 -040071 property string sipInputButtonBackgroundColor: "#336699"
72 property string sipInputButtonHoverColor: "#4477aa"
73 property string sipInputButtonPressColor: "#5588bb"
Sébastien Blin1f915762020-08-03 13:27:42 -040074
75 /*
76 * Font.
77 */
78 property string faddedFontColor: "#c0c0c0"
79 property string faddedLastInteractionFontColor: "#505050"
80
ababia284cae2020-08-10 12:33:34 +020081 property int splitViewHandlePreferredWidth: 4
Sébastien Blin1f915762020-08-03 13:27:42 -040082 property int textFontSize: 9
ababi6fa08612020-08-10 19:13:28 +020083 property int settingsFontSize: 10
84 property int buttonFontSize: 9
85 property int headerFontSize: 13
ababidf651a22020-07-30 13:38:57 +020086 property int titleFontSize: 16
87 property int menuFontSize: 12
Sébastien Blin1f915762020-08-03 13:27:42 -040088
ababi6fa08612020-08-10 19:13:28 +020089 property int maximumWidthSettingsView: 800
90 property int preferredButtonWidth: 200
91 property int preferredFieldHeight: 32
92 property int preferredMarginSize: 16
93
Sébastien Blin1f915762020-08-03 13:27:42 -040094
95 /*
96 * Place holder text.
97 */
98 property string contactSearchBarPlaceHolderConversationText: qsTr("Find or start a conversation")
ababidf651a22020-07-30 13:38:57 +020099 property string contactSearchBarPlaceHolderInivitionText: qsTr("Search your invitations")
Sébastien Blin1f915762020-08-03 13:27:42 -0400100
101 // Jami theme colors
102 function rgb256(r, g, b) {
103 return Qt.rgba(r / 256, g / 256, b / 256, 1)
104 }
105
106 property color blue_: "#109ede"
Sébastien Blinc75335f2020-08-04 20:54:02 -0400107 property color wizardBlueButtons: "#28b1ed"
ababidf651a22020-07-30 13:38:57 +0200108 property color blueLogo_: rgb256(0, 7, 71)
Sébastien Blin1f915762020-08-03 13:27:42 -0400109 property color lightBlue_: "#c1ebf0"
110 property color lightGrey_: rgb256(242, 242, 242)
ababidf651a22020-07-30 13:38:57 +0200111 property color lightGreyTab_: rgb256(220, 220, 220)
Sébastien Blin1f915762020-08-03 13:27:42 -0400112 property color imGrey_: "#dedee0"
113 property color imBlue_: "#cfebf5"
114 property color lightBlack_: rgb256(63, 63, 63)
115 property color grey_: rgb256(160, 160, 160)
116 property color red_: rgb256(251, 72, 71)
117 property color lightRed_: rgb256(252, 91, 90)
118 property color darkRed_: rgb256(219, 55, 54)
119 property color notificationRed_: rgb256(255, 59, 48)
120 property color urgentOrange_: rgb256(255, 165, 0)
121 property color green_: rgb256(127, 255, 0)
122 property color presenceGreen_: rgb256(76, 217, 100)
123 property color smartlistSelection_: rgb256(240, 240, 240)
124 property color smartlistHighlight_: rgb256(245, 245, 245)
125}