blob: 09fec0d52c9a5b973954b801dcec54e90641ed00 [file] [log] [blame]
Sébastien Blin1f915762020-08-03 13:27:42 -04001/*
2 * Copyright (C) 2020 by Savoir-faire Linux
3 * Author: Mingrui Zhang <mingrui.zhang@savoirfairelinux.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18
Ming Rui Zhang346b2552020-09-03 09:58:01 -040019// JamiTheme as a singleton is to provide global theme property entry.
Sébastien Blin1f915762020-08-03 13:27:42 -040020pragma Singleton
21
22import QtQuick 2.14
23
24Item {
Ming Rui Zhang346b2552020-09-03 09:58:01 -040025 // Color strings.
Sébastien Blin1f915762020-08-03 13:27:42 -040026 property string hoverColor: "#c7c7c7"
27 property string pressColor: "#c0c0c0"
28 property string releaseColor: "#e0e0e0"
29 property string tabbarBorderColor: "#e3e3e3"
30 property string transparentColor: "transparent"
31 property string presenceGreen: "#4cd964"
32 property string notificationRed: "#ff3b30"
Sébastien Blinacb1cf02020-08-17 22:38:19 -040033 property string unPresenceOrange: "orange"
ababidf651a22020-07-30 13:38:57 +020034 property string backgroundColor: lightGrey_
35 property string backgroundDarkColor: lightGreyTab_
Sébastien Blin1f915762020-08-03 13:27:42 -040036
37 property string screenSelectionBorderGreen: "green"
38
39 property string acceptButtonGreen: "#4caf50"
40 property string acceptButtonHoverGreen: "#5db761"
41 property string acceptButtonPressedGreen: "#449d48"
42
43 property string declineButtonRed: "#f44336"
44 property string declineButtonHoverRed: "#f5554a"
45 property string declineButtonPressedRed: "#db3c30"
46
47 property string hangUpButtonTintedRed: "#ff0000"
48 property string buttonTintedBlue: "#00aaff"
Sébastien Blinc2220f82020-08-25 21:12:14 -040049 property string buttonTintedBlueHovered: "#0e81c5"
50 property string buttonTintedBluePressed: "#273261"
Sébastien Blinc75335f2020-08-04 20:54:02 -040051 property string buttonTintedGrey: "#999"
Sébastien Blinc2220f82020-08-25 21:12:14 -040052 property string buttonTintedGreyHovered: "#777"
53 property string buttonTintedGreyPressed: "#777"
Sébastien Blinc75335f2020-08-04 20:54:02 -040054 property string buttonTintedGreyInactive: "#bbb"
Sébastien Blinacb1cf02020-08-17 22:38:19 -040055 property string buttonTintedBlack: "#333"
56 property string buttonTintedBlackHovered: "#111"
57 property string buttonTintedBlackPressed: "#000"
58 property string buttonTintedRed: "red"
59 property string buttonTintedRedHovered: "#c00"
60 property string buttonTintedRedPressed: "#b00"
Sébastien Blin1f915762020-08-03 13:27:42 -040061
62 property string selectionBlue: "#109ede"
63 property string selectionGreen: "#21be2b"
64 property string rubberBandSelectionBlue: "steelblue"
65
66 property string closeButtonLighterBlack: "#4c4c4c"
67
68 property string contactSearchBarPlaceHolderTextFontColor: "#767676"
69 property string contactSearchBarPlaceHolderGreyBackground: "#dddddd"
70
71 property string draftRed: "#cf5300"
72
Ming Rui Zhang44dba712020-08-25 14:32:34 -040073 property string sipInputButtonBackgroundColor: "#336699"
74 property string sipInputButtonHoverColor: "#4477aa"
75 property string sipInputButtonPressColor: "#5588bb"
Sébastien Blin1f915762020-08-03 13:27:42 -040076
Ming Rui Zhang346b2552020-09-03 09:58:01 -040077 property string accountCreationOtherStepColor: "grey"
78 property string accountCreationCurrentStepColor: "#28b1ed"
79
80 // Font.
Sébastien Blin1f915762020-08-03 13:27:42 -040081 property string faddedFontColor: "#c0c0c0"
82 property string faddedLastInteractionFontColor: "#505050"
83
ababia284cae2020-08-10 12:33:34 +020084 property int splitViewHandlePreferredWidth: 4
Sébastien Blin1f915762020-08-03 13:27:42 -040085 property int textFontSize: 9
ababi6fa08612020-08-10 19:13:28 +020086 property int settingsFontSize: 10
87 property int buttonFontSize: 9
88 property int headerFontSize: 13
ababidf651a22020-07-30 13:38:57 +020089 property int titleFontSize: 16
90 property int menuFontSize: 12
Sébastien Blin1f915762020-08-03 13:27:42 -040091
ababi6fa08612020-08-10 19:13:28 +020092 property int maximumWidthSettingsView: 800
Sébastien Blinacb1cf02020-08-17 22:38:19 -040093 property int preferredFieldWidth: 216
ababi6fa08612020-08-10 19:13:28 +020094 property int preferredFieldHeight: 32
95 property int preferredMarginSize: 16
96
Ming Rui Zhang346b2552020-09-03 09:58:01 -040097 // Place holder text.
Sébastien Blin1f915762020-08-03 13:27:42 -040098 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}