2020-07-02 15:14:31 +00:00
|
|
|
import QtQuick 2.13
|
2020-11-25 10:46:18 +00:00
|
|
|
import "../"
|
2020-07-02 15:14:31 +00:00
|
|
|
|
|
|
|
QtObject {
|
|
|
|
property QtObject fontMedium: FontLoader { id: _fontMedium; source: "../../fonts/Inter/Inter-Medium.otf"; }
|
|
|
|
property QtObject fontBold: FontLoader { id: _fontBold; source: "../../fonts/Inter/Inter-Bold.otf"; }
|
|
|
|
property QtObject fontLight: FontLoader { id: _fontLight; source: "../../fonts/Inter/Inter-Light.otf"; }
|
|
|
|
property QtObject fontRegular: FontLoader { id: _fontRegular; source: "../../fonts/Inter/Inter-Regular.otf"; }
|
|
|
|
|
|
|
|
property QtObject fontHexMedium: FontLoader { id: _fontHexMedium; source: "../../fonts/InterStatus/InterStatus-Medium.otf"; }
|
|
|
|
property QtObject fontHexBold: FontLoader { id: _fontHexBold; source: "../../fonts/InterStatus/InterStatus-Bold.otf"; }
|
|
|
|
property QtObject fontHexLight: FontLoader { id: _fontHexLight; source: "../../fonts/InterStatus/InterStatus-Light.otf"; }
|
|
|
|
property QtObject fontHexRegular: FontLoader { id: _fontHexRegular; source: "../../fonts/InterStatus/InterStatus-Regular.otf"; }
|
|
|
|
|
2021-03-16 19:19:48 +00:00
|
|
|
property string name
|
|
|
|
|
2020-07-02 15:14:31 +00:00
|
|
|
property color white
|
|
|
|
property color white2
|
|
|
|
property color black
|
2021-03-26 17:57:30 +00:00
|
|
|
property color grey1
|
2020-07-02 15:14:31 +00:00
|
|
|
property color lightBlue
|
|
|
|
property color blue
|
2021-03-26 17:57:30 +00:00
|
|
|
property color translucentBlue
|
2020-07-02 15:14:31 +00:00
|
|
|
property color transparent
|
|
|
|
property color darkGrey
|
2020-11-17 19:01:50 +00:00
|
|
|
property color darkerGrey
|
|
|
|
property color evenDarkerGrey
|
2020-07-02 15:14:31 +00:00
|
|
|
property color lightBlueText
|
|
|
|
property color darkBlue
|
|
|
|
property color darkBlueBtn
|
|
|
|
property color red
|
2020-08-17 20:46:13 +00:00
|
|
|
property color purple: "#887AF9"
|
|
|
|
property color orange: "#FE8F59"
|
2020-07-02 15:14:31 +00:00
|
|
|
|
2020-07-13 18:45:54 +00:00
|
|
|
property color background
|
2021-01-25 20:50:42 +00:00
|
|
|
property color backgroundHover
|
2021-02-18 19:07:23 +00:00
|
|
|
property color backgroundHoverLight
|
2020-07-13 18:45:54 +00:00
|
|
|
property color border
|
|
|
|
property color textColor
|
2020-12-29 15:31:26 +00:00
|
|
|
property color secondaryText
|
2020-07-13 18:45:54 +00:00
|
|
|
property color currentUserTextColor
|
|
|
|
property color secondaryBackground
|
2021-03-26 17:57:30 +00:00
|
|
|
property color secondaryMenuBorder
|
|
|
|
property color menuBackgroundActive
|
|
|
|
property color menuBackgroundHover
|
2020-07-13 18:45:54 +00:00
|
|
|
property color modalBackground
|
2020-11-17 03:07:01 +00:00
|
|
|
property color codeBackground
|
2021-01-13 23:04:20 +00:00
|
|
|
property color primarySelectioncolor
|
2021-01-25 20:50:42 +00:00
|
|
|
property color emojiReactionBackground
|
|
|
|
property color emojiReactionBackgroundHovered
|
2021-02-02 16:54:29 +00:00
|
|
|
property color emojiReactionActiveBackgroundHovered
|
2021-02-01 18:40:55 +00:00
|
|
|
property color mentionColor
|
|
|
|
property color mentionBgColor
|
|
|
|
property color mentionMessageColor
|
|
|
|
property color mentionMessageHoverColor
|
2021-03-26 17:57:30 +00:00
|
|
|
property color mainMenuBackground
|
|
|
|
property color secondaryMenuBackground
|
|
|
|
property color tabButtonBg
|
2020-07-13 18:45:54 +00:00
|
|
|
|
2020-08-25 09:00:03 +00:00
|
|
|
property color buttonForegroundColor
|
|
|
|
property color buttonBackgroundColor
|
2021-03-26 17:57:30 +00:00
|
|
|
property color buttonBackgroundColorHover
|
2020-09-28 14:21:40 +00:00
|
|
|
property color buttonSecondaryColor
|
2020-08-25 09:00:03 +00:00
|
|
|
property color buttonDisabledForegroundColor
|
|
|
|
property color buttonDisabledBackgroundColor
|
2021-01-13 20:26:30 +00:00
|
|
|
property color buttonWarnBackgroundColor
|
2020-08-25 09:00:03 +00:00
|
|
|
property color roundedButtonForegroundColor
|
|
|
|
property color roundedButtonBackgroundColor
|
2020-08-25 11:15:18 +00:00
|
|
|
property color roundedButtonSecondaryBackgroundColor
|
2021-01-19 15:26:34 +00:00
|
|
|
property color tooltipBackgroundColor
|
|
|
|
property color tooltipForegroundColor
|
2020-08-25 09:00:03 +00:00
|
|
|
|
2020-07-02 15:14:31 +00:00
|
|
|
property int xlPadding: 32
|
|
|
|
property int bigPadding: 24
|
|
|
|
property int padding: 16
|
2020-08-17 20:46:13 +00:00
|
|
|
property int halfPadding: 8
|
2020-07-02 15:14:31 +00:00
|
|
|
property int smallPadding: 10
|
|
|
|
property int radius: 8
|
|
|
|
|
2021-04-14 15:13:34 +00:00
|
|
|
property int leftTabPreferredSize: 304
|
2020-11-25 10:46:18 +00:00
|
|
|
|
|
|
|
property int primaryTextFontSize: 15
|
|
|
|
property int secondaryTextFontSize: 14
|
|
|
|
property int tertiaryTextFontSize: 12
|
|
|
|
property int asideTextFontSize: 10
|
|
|
|
|
2021-03-16 19:19:48 +00:00
|
|
|
property var accountColors
|
|
|
|
|
2020-11-25 10:46:18 +00:00
|
|
|
function updateFontSize(fontSize) {
|
|
|
|
switch (fontSize) {
|
|
|
|
case Constants.fontSizeXS:
|
|
|
|
primaryTextFontSize = 13
|
|
|
|
secondaryTextFontSize = 12
|
|
|
|
tertiaryTextFontSize = 10
|
|
|
|
asideTextFontSize = 8
|
|
|
|
break;
|
|
|
|
|
|
|
|
case Constants.fontSizeS:
|
|
|
|
primaryTextFontSize = 14
|
|
|
|
secondaryTextFontSize = 13
|
|
|
|
tertiaryTextFontSize = 11
|
|
|
|
asideTextFontSize = 9
|
|
|
|
break;
|
|
|
|
|
|
|
|
case Constants.fontSizeM:
|
|
|
|
primaryTextFontSize = 15
|
|
|
|
secondaryTextFontSize = 14
|
|
|
|
tertiaryTextFontSize = 12
|
|
|
|
asideTextFontSize = 10
|
|
|
|
break;
|
|
|
|
|
|
|
|
case Constants.fontSizeL:
|
|
|
|
primaryTextFontSize = 16
|
|
|
|
secondaryTextFontSize = 15
|
|
|
|
tertiaryTextFontSize = 13
|
|
|
|
asideTextFontSize = 11
|
|
|
|
break;
|
|
|
|
|
|
|
|
case Constants.fontSizeXL:
|
|
|
|
primaryTextFontSize = 17
|
|
|
|
secondaryTextFontSize = 16
|
|
|
|
tertiaryTextFontSize = 14
|
|
|
|
asideTextFontSize = 12
|
|
|
|
break;
|
|
|
|
|
|
|
|
case Constants.fontSizeXXL:
|
|
|
|
primaryTextFontSize = 18
|
|
|
|
secondaryTextFontSize = 17
|
|
|
|
tertiaryTextFontSize = 15
|
|
|
|
asideTextFontSize = 13
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2020-07-02 15:14:31 +00:00
|
|
|
}
|