mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 14:26:34 +00:00
417194e7b4
Add keyboard shortcuts according to https://notes.status.im/02cfVf1KQLeQU2SqrIi9tw fix: update chat message bubbles - Align emojis to middle of text - Add line-height as per design - Properly support RTL languages (right-aligned) and LTR languages (left-aligned) - Remove unneeded non-breaking space at the beginning of current user messages - Properly support markdown for bold, strikethrough, and italic - Fix text being removed when in between strikethrough markdown (~~) fix: emoji resolution update for high resolution monitors - Emojis now use the 72x72 original set, but are down-scaled to 20x20 (in chat bubbles) or 22x22 in other places, effectively tripling their pixel density feat: handle new lines in blockquote Handle new lines in blockquote so that messages display correctly. Also, add functionality when a new line is entered in to the chat input, if it's inside a blockquote, a new ">" will be added automatically. This is also handled when backspace is entered. feat: update xss to support full qt html4 table and table-cell attributes
111 lines
3.9 KiB
QML
111 lines
3.9 KiB
QML
import QtQuick 2.13
|
|
import "../"
|
|
|
|
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"; }
|
|
|
|
property color white
|
|
property color white2
|
|
property color black
|
|
property color grey
|
|
property color lightBlue
|
|
property color blue
|
|
property color transparent
|
|
property color darkGrey
|
|
property color darkerGrey
|
|
property color evenDarkerGrey
|
|
property color lightBlueText
|
|
property color darkBlue
|
|
property color darkBlueBtn
|
|
property color red
|
|
property color purple: "#887AF9"
|
|
property color orange: "#FE8F59"
|
|
|
|
property color background
|
|
property color border
|
|
property color textColor
|
|
property color currentUserTextColor
|
|
property color secondaryBackground
|
|
property color modalBackground
|
|
property color codeBackground
|
|
|
|
property color buttonForegroundColor
|
|
property color buttonBackgroundColor
|
|
property color buttonSecondaryColor
|
|
property color buttonDisabledForegroundColor
|
|
property color buttonDisabledBackgroundColor
|
|
property color roundedButtonForegroundColor
|
|
property color roundedButtonBackgroundColor
|
|
property color roundedButtonSecondaryBackgroundColor
|
|
|
|
property int xlPadding: 32
|
|
property int bigPadding: 24
|
|
property int padding: 16
|
|
property int halfPadding: 8
|
|
property int smallPadding: 10
|
|
property int radius: 8
|
|
|
|
property int leftTabPrefferedSize: 340
|
|
property int leftTabMinimumWidth: 300
|
|
property int leftTabMaximumWidth: 500
|
|
|
|
property int primaryTextFontSize: 15
|
|
property int secondaryTextFontSize: 14
|
|
property int tertiaryTextFontSize: 12
|
|
property int asideTextFontSize: 10
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|