Sébastien Blin | 1f91576 | 2020-08-03 13:27:42 -0400 | [diff] [blame] | 1 | |
| 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 | */ |
| 25 | pragma Singleton |
| 26 | |
| 27 | import QtQuick 2.14 |
| 28 | |
| 29 | Item { |
| 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" |
ababi | df651a2 | 2020-07-30 13:38:57 +0200 | [diff] [blame] | 42 | property string backgroundColor: lightGrey_ |
| 43 | property string backgroundDarkColor: lightGreyTab_ |
Sébastien Blin | 1f91576 | 2020-08-03 13:27:42 -0400 | [diff] [blame] | 44 | |
| 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 Blin | c2220f8 | 2020-08-25 21:12:14 -0400 | [diff] [blame^] | 57 | property string buttonTintedBlueHovered: "#0e81c5" |
| 58 | property string buttonTintedBluePressed: "#273261" |
Sébastien Blin | c75335f | 2020-08-04 20:54:02 -0400 | [diff] [blame] | 59 | property string buttonTintedGrey: "#999" |
Sébastien Blin | c2220f8 | 2020-08-25 21:12:14 -0400 | [diff] [blame^] | 60 | property string buttonTintedGreyHovered: "#777" |
| 61 | property string buttonTintedGreyPressed: "#777" |
Sébastien Blin | c75335f | 2020-08-04 20:54:02 -0400 | [diff] [blame] | 62 | property string buttonTintedGreyInactive: "#bbb" |
Sébastien Blin | 1f91576 | 2020-08-03 13:27:42 -0400 | [diff] [blame] | 63 | |
| 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 Zhang | 44dba71 | 2020-08-25 14:32:34 -0400 | [diff] [blame] | 75 | property string sipInputButtonBackgroundColor: "#336699" |
| 76 | property string sipInputButtonHoverColor: "#4477aa" |
| 77 | property string sipInputButtonPressColor: "#5588bb" |
Sébastien Blin | 1f91576 | 2020-08-03 13:27:42 -0400 | [diff] [blame] | 78 | |
| 79 | /* |
| 80 | * Font. |
| 81 | */ |
| 82 | property string faddedFontColor: "#c0c0c0" |
| 83 | property string faddedLastInteractionFontColor: "#505050" |
| 84 | |
ababi | a284cae | 2020-08-10 12:33:34 +0200 | [diff] [blame] | 85 | property int splitViewHandlePreferredWidth: 4 |
Sébastien Blin | 1f91576 | 2020-08-03 13:27:42 -0400 | [diff] [blame] | 86 | property int textFontSize: 9 |
ababi | 6fa0861 | 2020-08-10 19:13:28 +0200 | [diff] [blame] | 87 | property int settingsFontSize: 10 |
| 88 | property int buttonFontSize: 9 |
| 89 | property int headerFontSize: 13 |
ababi | df651a2 | 2020-07-30 13:38:57 +0200 | [diff] [blame] | 90 | property int titleFontSize: 16 |
| 91 | property int menuFontSize: 12 |
Sébastien Blin | 1f91576 | 2020-08-03 13:27:42 -0400 | [diff] [blame] | 92 | |
ababi | 6fa0861 | 2020-08-10 19:13:28 +0200 | [diff] [blame] | 93 | property int maximumWidthSettingsView: 800 |
| 94 | property int preferredButtonWidth: 200 |
| 95 | property int preferredFieldHeight: 32 |
| 96 | property int preferredMarginSize: 16 |
| 97 | |
Sébastien Blin | 1f91576 | 2020-08-03 13:27:42 -0400 | [diff] [blame] | 98 | |
| 99 | /* |
| 100 | * Place holder text. |
| 101 | */ |
| 102 | property string contactSearchBarPlaceHolderConversationText: qsTr("Find or start a conversation") |
ababi | df651a2 | 2020-07-30 13:38:57 +0200 | [diff] [blame] | 103 | property string contactSearchBarPlaceHolderInivitionText: qsTr("Search your invitations") |
Sébastien Blin | 1f91576 | 2020-08-03 13:27:42 -0400 | [diff] [blame] | 104 | |
| 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 Blin | c75335f | 2020-08-04 20:54:02 -0400 | [diff] [blame] | 111 | property color wizardBlueButtons: "#28b1ed" |
ababi | df651a2 | 2020-07-30 13:38:57 +0200 | [diff] [blame] | 112 | property color blueLogo_: rgb256(0, 7, 71) |
Sébastien Blin | 1f91576 | 2020-08-03 13:27:42 -0400 | [diff] [blame] | 113 | property color lightBlue_: "#c1ebf0" |
| 114 | property color lightGrey_: rgb256(242, 242, 242) |
ababi | df651a2 | 2020-07-30 13:38:57 +0200 | [diff] [blame] | 115 | property color lightGreyTab_: rgb256(220, 220, 220) |
Sébastien Blin | 1f91576 | 2020-08-03 13:27:42 -0400 | [diff] [blame] | 116 | 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 | } |