2019-07-23 17:14:02 +10:00
|
|
|
// vim: syntax=qml
|
|
|
|
|
2019-07-25 04:58:16 +10:00
|
|
|
// Base variables
|
|
|
|
|
2020-09-02 04:19:40 +10:00
|
|
|
real uiScale: window.settings.zoom
|
2019-07-23 17:14:02 +10:00
|
|
|
|
2019-07-24 16:14:34 +10:00
|
|
|
int minimumSupportedWidth: 240 * uiScale
|
|
|
|
int minimumSupportedHeight: 120 * uiScale
|
2019-09-10 01:35:46 +10:00
|
|
|
int contentIsWideAbove: 472 * uiScale
|
2019-07-23 17:14:02 +10:00
|
|
|
|
2019-08-21 08:31:20 +10:00
|
|
|
int baseElementsHeight: 36 * uiScale
|
|
|
|
int spacing: 12 * uiScale
|
2020-03-16 05:27:10 +11:00
|
|
|
int radius: 4 * uiScale
|
2019-08-21 08:31:20 +10:00
|
|
|
int animationDuration: 100
|
2019-08-28 04:21:10 +10:00
|
|
|
real loadingElementsOpacity: 0.8
|
2019-08-21 08:31:20 +10:00
|
|
|
real disabledElementsOpacity: 0.3
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
fontSize:
|
2019-12-05 00:08:38 +11:00
|
|
|
int smaller: 13 * uiScale
|
|
|
|
int small: 13 * uiScale
|
|
|
|
int normal: 16 * uiScale
|
2020-09-23 11:04:05 +10:00
|
|
|
int big: 20 * uiScale
|
2019-12-05 00:08:38 +11:00
|
|
|
int bigger: 32 * uiScale
|
|
|
|
int biggest: 48 * uiScale
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
fontFamily:
|
2020-03-16 10:06:48 +11:00
|
|
|
string sans: "Roboto"
|
|
|
|
string mono: "Hack"
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
colors:
|
2020-03-13 16:09:04 +11:00
|
|
|
int hue: 240
|
2020-03-10 23:58:14 +11:00
|
|
|
|
2020-04-03 04:54:06 +11:00
|
|
|
real intensity: 1.0
|
|
|
|
real coloredTextIntensity: intensity * 71
|
|
|
|
real dimColoredTextIntensity: intensity * 60
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2020-04-03 04:54:06 +11:00
|
|
|
int saturation: 60
|
|
|
|
int bgSaturation: saturation
|
|
|
|
int coloredTextSaturation: saturation + 20
|
|
|
|
int dimColoredTextSaturation: saturation
|
2019-08-18 17:27:00 +10:00
|
|
|
|
2020-03-19 17:35:50 +11:00
|
|
|
real opacity: 0.7
|
2020-03-10 23:58:14 +11:00
|
|
|
|
2020-03-18 08:59:57 +11:00
|
|
|
color weakBackground:
|
2020-05-13 22:24:53 +10:00
|
|
|
hsluv(hue, bgSaturation, intensity * 2.5, opacity)
|
2020-03-18 08:59:57 +11:00
|
|
|
color mediumBackground:
|
2020-05-13 22:24:53 +10:00
|
|
|
hsluv(hue, bgSaturation, intensity * 7, opacity)
|
2020-03-18 08:59:57 +11:00
|
|
|
color strongBackground:
|
2020-03-19 17:35:50 +11:00
|
|
|
hsluv(hue, bgSaturation * 2, intensity, opacity)
|
2020-03-13 16:09:04 +11:00
|
|
|
|
2020-03-27 12:01:36 +11:00
|
|
|
color accentBackground: hsluv(hue, saturation, intensity * 40, 1)
|
2020-03-13 16:09:04 +11:00
|
|
|
color accentElement: hsluv(hue, saturation * 1.5, intensity * 52, 1)
|
|
|
|
color strongAccentElement: hsluv(hue, saturation * 1.5, intensity * 72, 1)
|
2019-08-29 06:41:58 +10:00
|
|
|
|
|
|
|
color positiveBackground:
|
2020-07-11 03:27:35 +10:00
|
|
|
hsluv(155, saturation * 1.5, intensity * 65, 1)
|
2019-08-29 06:41:58 +10:00
|
|
|
|
2019-09-10 02:57:40 +10:00
|
|
|
color middleBackground:
|
2020-07-11 03:27:35 +10:00
|
|
|
hsluv(60, saturation * 1.5, intensity * 65, 1)
|
2019-09-10 02:57:40 +10:00
|
|
|
|
2019-08-29 06:41:58 +10:00
|
|
|
color negativeBackground:
|
2020-07-11 03:27:35 +10:00
|
|
|
hsluv(0, saturation * 1.5, intensity * 54, 1)
|
2019-08-18 17:27:00 +10:00
|
|
|
|
2020-03-10 23:58:14 +11:00
|
|
|
color alertBackground: negativeBackground
|
2019-08-29 08:21:13 +10:00
|
|
|
|
2019-08-17 02:07:22 +10:00
|
|
|
color brightText: hsluv(0, 0, intensity * 100)
|
2020-03-10 23:58:14 +11:00
|
|
|
color text: hsluv(0, 0, intensity * 85)
|
|
|
|
color halfDimText: hsluv(0, 0, intensity * 72)
|
|
|
|
color dimText: hsluv(0, 0, intensity * 60)
|
2019-08-17 06:30:18 +10:00
|
|
|
|
2020-06-25 22:32:08 +10:00
|
|
|
color positiveText: hsluv(155, coloredTextSaturation, coloredTextIntensity)
|
|
|
|
color warningText: hsluv(60, coloredTextSaturation, coloredTextIntensity)
|
|
|
|
color errorText: hsluv(0, coloredTextSaturation, coloredTextIntensity)
|
|
|
|
color accentText: hsluv(hue, coloredTextSaturation, coloredTextIntensity)
|
2020-03-13 16:09:04 +11:00
|
|
|
|
|
|
|
color link: hsluv(hue, coloredTextSaturation, coloredTextIntensity)
|
|
|
|
color code: hsluv(hue + 10, coloredTextSaturation, coloredTextIntensity)
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2019-07-25 08:09:28 +10:00
|
|
|
// Example of an animation, set running: true to enable
|
|
|
|
NumberAnimation on hue
|
2019-08-16 02:06:51 +10:00
|
|
|
running: false
|
|
|
|
from: 0
|
|
|
|
to: 360
|
2019-07-25 08:09:28 +10:00
|
|
|
duration: 10000
|
2019-08-16 02:06:51 +10:00
|
|
|
loops: Animation.Infinite
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2019-08-29 06:41:58 +10:00
|
|
|
icons:
|
|
|
|
string preferredPack: "thin"
|
2019-08-29 08:32:16 +10:00
|
|
|
|
|
|
|
// "transparent" to disable colorizing
|
2019-08-31 10:30:39 +10:00
|
|
|
color colorize: hsluv(0, 0, colors.intensity * 90)
|
2019-08-29 08:32:16 +10:00
|
|
|
color disabledColorize: "white"
|
2019-08-29 06:41:58 +10:00
|
|
|
|
2019-12-05 00:08:38 +11:00
|
|
|
int smallDimension: 16 * uiScale
|
|
|
|
int dimension: 22 * uiScale
|
|
|
|
|
2019-07-23 17:14:02 +10:00
|
|
|
|
2019-07-25 04:58:16 +10:00
|
|
|
// Generic UI controls
|
|
|
|
|
2019-07-23 17:14:02 +10:00
|
|
|
controls:
|
2020-06-26 22:21:24 +10:00
|
|
|
scrollBar:
|
2020-06-23 03:48:55 +10:00
|
|
|
int width: theme.spacing
|
|
|
|
|
|
|
|
color track: colors.strongBackground
|
|
|
|
|
|
|
|
color slider: colors.accentElement
|
|
|
|
color hoveredSlider: colors.accentElement
|
|
|
|
color pressedSlider: colors.strongAccentElement
|
|
|
|
|
|
|
|
int sliderPadding: 2
|
|
|
|
int sliderRadius: theme.radius
|
|
|
|
|
2019-07-24 16:14:34 +10:00
|
|
|
box:
|
2019-12-20 10:04:07 +11:00
|
|
|
int defaultWidth: minimumSupportedWidth
|
2020-03-10 23:58:14 +11:00
|
|
|
color background: colors.mediumBackground
|
2019-07-24 16:14:34 +10:00
|
|
|
int radius: theme.radius
|
|
|
|
|
2019-07-25 16:43:52 +10:00
|
|
|
popup:
|
2020-03-16 09:01:56 +11:00
|
|
|
int defaultWidth: minimumSupportedWidth * 1.75
|
|
|
|
color background: colors.mediumBackground
|
|
|
|
color windowOverlay: hsluv(0, 0, 0, 0.7)
|
2019-07-25 16:43:52 +10:00
|
|
|
|
2019-07-24 16:14:34 +10:00
|
|
|
header:
|
2020-03-20 11:33:46 +11:00
|
|
|
color background: colors.strongBackground
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2019-07-23 17:14:02 +10:00
|
|
|
button:
|
2020-06-23 23:09:30 +10:00
|
|
|
color background: colors.strongBackground
|
|
|
|
color text: colors.text
|
|
|
|
color focusedBorder: colors.accentElement
|
2020-06-26 20:56:29 +10:00
|
|
|
int focusedBorderWidth: 2
|
2019-08-21 07:41:24 +10:00
|
|
|
|
2019-08-29 09:44:52 +10:00
|
|
|
color hoveredOverlay: hsluv(0, 0, 50, 0.2)
|
|
|
|
color pressedOverlay: hsluv(0, 0, 50, 0.5)
|
2019-08-21 07:41:24 +10:00
|
|
|
color checkedOverlay: colors.accentBackground
|
2019-07-23 17:14:02 +10:00
|
|
|
|
2019-11-08 02:23:47 +11:00
|
|
|
tab:
|
|
|
|
color text: controls.button.text
|
|
|
|
color background: controls.button.background
|
|
|
|
color alternateBackground: hsluv(
|
|
|
|
colors.hue,
|
|
|
|
colors.bgSaturation * 1.25,
|
|
|
|
colors.intensity * 4,
|
|
|
|
Math.max(0.6, colors.opacity)
|
|
|
|
)
|
2020-06-23 23:09:30 +10:00
|
|
|
|
|
|
|
color bottomLine: background
|
|
|
|
color focusedBorder: colors.accentElement
|
|
|
|
int focusedBorderWidth: 1
|
2019-11-08 02:23:47 +11:00
|
|
|
|
|
|
|
color hoveredOverlay: controls.button.hoveredOverlay
|
|
|
|
color pressedOverlay: controls.button.pressedOverlay
|
|
|
|
color checkedOverlay: controls.button.checkedOverlay
|
|
|
|
|
2019-08-22 06:23:22 +10:00
|
|
|
menu:
|
2020-07-17 16:59:37 +10:00
|
|
|
color background: hsluv(
|
|
|
|
colors.hue,
|
|
|
|
colors.bgSaturation * 2,
|
|
|
|
colors.intensity,
|
|
|
|
Math.max(0.9, colors.opacity),
|
|
|
|
)
|
2019-09-07 06:11:25 +10:00
|
|
|
color border: "black"
|
2019-08-22 06:23:22 +10:00
|
|
|
real borderWidth: 2
|
|
|
|
|
2019-08-22 05:45:13 +10:00
|
|
|
menuItem:
|
2019-09-07 06:11:25 +10:00
|
|
|
color background: "transparent"
|
2019-08-22 05:45:13 +10:00
|
|
|
color text: controls.button.text
|
|
|
|
|
|
|
|
color hoveredOverlay: controls.button.hoveredOverlay
|
|
|
|
color pressedOverlay: controls.button.hoveredOverlay
|
|
|
|
color checkedOverlay: controls.button.hoveredOverlay
|
|
|
|
|
2019-08-21 08:31:20 +10:00
|
|
|
checkBox:
|
2020-03-10 23:58:14 +11:00
|
|
|
color checkIconColorize: colors.accentElement
|
2019-08-29 06:30:48 +10:00
|
|
|
color boxBackground: controls.button.background
|
2019-12-08 00:38:36 +11:00
|
|
|
int boxSize: 24 * uiScale
|
2019-08-21 08:31:20 +10:00
|
|
|
|
2020-03-10 23:58:14 +11:00
|
|
|
color boxBorder: "black"
|
|
|
|
color boxHoveredBorder: colors.accentElement
|
|
|
|
color boxPressedBorder: colors.strongAccentElement
|
2019-08-21 08:31:20 +10:00
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
color text: controls.button.text
|
2019-11-08 00:50:59 +11:00
|
|
|
color subtitle: colors.dimText
|
2019-08-21 08:31:20 +10:00
|
|
|
|
2019-08-21 18:58:34 +10:00
|
|
|
listView:
|
2020-03-13 16:09:04 +11:00
|
|
|
color highlight: hsluv(
|
|
|
|
colors.hue,
|
|
|
|
colors.bgSaturation * 2,
|
2020-03-19 17:35:50 +11:00
|
|
|
colors.intensity * 1,
|
|
|
|
colors.opacity / 1.5,
|
2020-03-13 16:09:04 +11:00
|
|
|
)
|
2020-08-19 21:17:21 +10:00
|
|
|
color highlightBorder: colors.strongAccentElement
|
|
|
|
int highlightBorderThickness: 1
|
2019-08-21 18:58:34 +10:00
|
|
|
|
2019-07-23 17:14:02 +10:00
|
|
|
textField:
|
2020-03-10 23:58:14 +11:00
|
|
|
color background: colors.strongBackground
|
2019-07-23 17:14:02 +10:00
|
|
|
color focusedBackground: background
|
2019-07-24 16:14:34 +10:00
|
|
|
|
|
|
|
int borderWidth: 1
|
|
|
|
color border: "transparent"
|
2020-03-10 23:58:14 +11:00
|
|
|
color focusedBorder: colors.accentElement
|
2019-08-29 06:41:58 +10:00
|
|
|
color errorBorder: colors.negativeBackground
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2019-09-08 07:00:12 +10:00
|
|
|
color text: colors.text
|
|
|
|
color focusedText: colors.text
|
|
|
|
color placeholderText: colors.dimText
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
textArea:
|
2020-06-07 11:54:13 +10:00
|
|
|
color background: colors.strongBackground
|
|
|
|
|
|
|
|
int borderWidth: 1
|
|
|
|
color border: "transparent"
|
|
|
|
color focusedBorder: colors.accentElement
|
|
|
|
color errorBorder: colors.negativeBackground
|
|
|
|
|
2019-09-08 07:00:12 +10:00
|
|
|
color text: colors.text
|
|
|
|
color placeholderText: controls.textField.placeholderText
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2019-08-22 23:27:26 +10:00
|
|
|
toolTip:
|
|
|
|
int delay: 500
|
2020-03-10 23:58:14 +11:00
|
|
|
color background: colors.strongBackground
|
2019-08-22 23:27:26 +10:00
|
|
|
color text: colors.text
|
|
|
|
color border: "black"
|
|
|
|
int borderWidth: 2
|
|
|
|
|
2019-08-29 04:28:20 +10:00
|
|
|
progressBar:
|
2019-12-06 01:51:57 +11:00
|
|
|
int height: Math.max(2, spacing / 2)
|
2020-03-10 23:58:14 +11:00
|
|
|
color background: colors.strongBackground
|
|
|
|
color foreground: colors.accentElement
|
2019-12-06 01:51:57 +11:00
|
|
|
color pausedForeground: colors.middleBackground
|
|
|
|
color errorForeground: colors.negativeBackground
|
2019-08-29 04:28:20 +10:00
|
|
|
|
2019-11-07 04:49:48 +11:00
|
|
|
circleProgressBar:
|
|
|
|
int thickness: Math.max(2, spacing / 2)
|
2020-03-10 23:58:14 +11:00
|
|
|
color background: colors.strongBackground
|
|
|
|
color foreground: colors.accentElement
|
2019-12-02 17:57:47 +11:00
|
|
|
color errorForeground: colors.negativeBackground
|
2019-11-07 04:49:48 +11:00
|
|
|
color text: colors.text
|
2019-11-07 05:29:32 +11:00
|
|
|
real indeterminateSpan: 0.5 // 0-1
|
2019-11-07 04:49:48 +11:00
|
|
|
|
2019-09-18 06:30:04 +10:00
|
|
|
slider:
|
|
|
|
int radius: 2
|
|
|
|
int height: controls.progressBar.height
|
|
|
|
color background: controls.progressBar.background
|
|
|
|
color foreground: controls.progressBar.foreground
|
|
|
|
|
|
|
|
handle:
|
|
|
|
int size: 20
|
|
|
|
color inside: hsluv(0, 0, 90)
|
|
|
|
color pressedInside: "white"
|
|
|
|
color border: "black"
|
2020-03-10 23:58:14 +11:00
|
|
|
color pressedBorder: colors.strongAccentElement
|
2019-09-18 06:30:04 +10:00
|
|
|
|
2019-07-24 16:14:34 +10:00
|
|
|
avatar:
|
2019-09-07 06:14:39 +10:00
|
|
|
int size: baseElementsHeight
|
2020-03-23 03:50:10 +11:00
|
|
|
int compactSize: baseElementsHeight / 2
|
2019-09-07 06:14:39 +10:00
|
|
|
int radius: theme.radius
|
2019-09-13 10:04:46 +10:00
|
|
|
|
|
|
|
hoveredImage:
|
|
|
|
int size: 192
|
|
|
|
color background: hsluv(0, 0, 0, 0.4)
|
2019-07-24 16:14:34 +10:00
|
|
|
|
|
|
|
background:
|
2020-03-10 23:58:14 +11:00
|
|
|
int saturation: colors.saturation
|
2020-03-19 17:35:50 +11:00
|
|
|
int lightness: Math.min(50, colors.intensity * 25)
|
2019-07-24 16:14:34 +10:00
|
|
|
real opacity: 1.0
|
|
|
|
|
|
|
|
letter:
|
2020-03-10 23:58:14 +11:00
|
|
|
int saturation: colors.saturation + 20
|
2019-07-24 16:14:34 +10:00
|
|
|
int lightness: colors.intensity * 60
|
|
|
|
real opacity: 1.0
|
|
|
|
|
|
|
|
displayName:
|
2020-04-03 04:54:06 +11:00
|
|
|
int saturation: colors.coloredTextSaturation
|
|
|
|
int lightness: colors.coloredTextIntensity
|
|
|
|
int dimSaturation: colors.dimColoredTextSaturation
|
|
|
|
int dimLightness: colors.dimColoredTextIntensity
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2020-06-30 12:20:37 +10:00
|
|
|
presence:
|
2020-07-11 03:27:35 +10:00
|
|
|
color online: colors.positiveBackground
|
|
|
|
color unavailable: colors.middleBackground
|
|
|
|
color offline: hsluv(0, 0, 60, 1)
|
2020-06-30 12:20:37 +10:00
|
|
|
color border: "black"
|
2020-07-11 03:38:18 +10:00
|
|
|
int borderWidth: 2 * uiScale
|
2020-06-30 12:20:37 +10:00
|
|
|
real opacity: 1.0
|
2020-07-11 00:59:26 +10:00
|
|
|
real radius: 6.0 * uiScale
|
2020-06-30 12:20:37 +10:00
|
|
|
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2020-03-11 03:28:22 +11:00
|
|
|
// Specific interface parts
|
2019-07-25 04:58:16 +10:00
|
|
|
|
2019-07-24 16:14:34 +10:00
|
|
|
ui:
|
2020-03-11 03:28:22 +11:00
|
|
|
// The background image can be an URL or local file path
|
|
|
|
// (in the form file://<path>, e.g. file:///home/user/images/foo.png).
|
2019-08-29 09:34:50 +10:00
|
|
|
// If not specified, the gradient will be shown instead.
|
2020-03-19 17:35:50 +11:00
|
|
|
url image: "../../images/midnight.jpg"
|
2019-08-29 09:34:50 +10:00
|
|
|
|
2019-08-31 09:21:51 +10:00
|
|
|
point gradientStart: Qt.point(0, 0)
|
|
|
|
point gradientEnd: Qt.point(window.width, window.height)
|
|
|
|
|
|
|
|
color gradientStartColor:
|
2020-03-19 17:35:50 +11:00
|
|
|
hsluv(colors.hue, 100, colors.intensity * 8)
|
2019-08-31 09:21:51 +10:00
|
|
|
color gradientEndColor:
|
2020-03-19 17:35:50 +11:00
|
|
|
hsluv(colors.hue + 50, 30, colors.intensity * 22)
|
2019-08-29 09:34:50 +10:00
|
|
|
|
|
|
|
// To have a solid color instead,
|
2019-08-31 09:21:51 +10:00
|
|
|
// set gradientStartColor and gradientEndColor to the same value, e.g.:
|
2020-03-13 16:09:04 +11:00
|
|
|
// color gradientStartColor: hsluv(0, 0, 0, 0.5)
|
|
|
|
// color gradientEndColor: hsluv(0, 0, 0, 0.5)
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2019-07-23 17:14:02 +10:00
|
|
|
|
2020-05-13 22:24:53 +10:00
|
|
|
mainPane:
|
2020-05-21 14:42:23 +10:00
|
|
|
int minimumSize: 144 * uiScale
|
2020-05-13 22:24:53 +10:00
|
|
|
color background: "transparent"
|
2019-07-23 17:14:02 +10:00
|
|
|
|
2020-05-13 22:24:53 +10:00
|
|
|
topBar:
|
|
|
|
color background: colors.strongBackground
|
|
|
|
color nameVersionLabel: colors.text
|
|
|
|
|
|
|
|
accountBar:
|
2020-05-13 21:37:39 +10:00
|
|
|
color background: colors.mediumBackground
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
account:
|
2020-05-14 11:44:15 +10:00
|
|
|
color selectedBackground: colors.accentBackground
|
2020-04-29 04:21:15 +10:00
|
|
|
real selectedBackgroundOpacity: 0.3
|
2020-05-14 11:44:15 +10:00
|
|
|
color selectedBorder: colors.strongAccentElement
|
2020-05-14 17:54:43 +10:00
|
|
|
int selectedBorderSize: 1
|
2020-04-29 04:21:15 +10:00
|
|
|
|
2020-05-13 22:24:53 +10:00
|
|
|
unreadIndicator:
|
|
|
|
color background: colors.accentBackground
|
|
|
|
color mentionBackground: colors.alertBackground
|
2020-04-28 13:49:36 +10:00
|
|
|
|
2020-05-13 22:24:53 +10:00
|
|
|
listView:
|
2020-07-10 06:06:14 +10:00
|
|
|
color background: colors.mediumBackground
|
|
|
|
real offlineOpacity: 0.5
|
2020-04-28 13:49:36 +10:00
|
|
|
|
2020-05-13 22:24:53 +10:00
|
|
|
account:
|
|
|
|
real collapsedOpacity: 0.3
|
|
|
|
color background: "transparent"
|
|
|
|
color name: colors.text
|
2020-05-01 18:50:00 +10:00
|
|
|
|
2020-05-13 22:24:53 +10:00
|
|
|
int avatarRadius: controls.avatar.radius
|
|
|
|
int collapsedAvatarRadius: controls.avatar.size / 2
|
2019-08-17 03:04:54 +10:00
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
room:
|
|
|
|
real leftRoomOpacity: 0.65
|
2019-07-23 17:14:02 +10:00
|
|
|
|
2020-03-16 06:01:09 +11:00
|
|
|
color background: "transparent"
|
|
|
|
color name: colors.text
|
2020-06-26 19:43:49 +10:00
|
|
|
color unreadName: colors.brightText
|
2020-03-16 06:01:09 +11:00
|
|
|
color lastEventDate: colors.halfDimText
|
2019-09-07 04:12:32 +10:00
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
color subtitle: colors.dimText
|
|
|
|
color subtitleQuote: chat.message.quote
|
2019-07-23 17:14:02 +10:00
|
|
|
|
2020-05-13 22:24:53 +10:00
|
|
|
int avatarRadius: controls.avatar.radius
|
|
|
|
int collapsedAvatarRadius: controls.avatar.radius
|
2020-03-16 06:01:09 +11:00
|
|
|
|
2020-04-17 03:44:52 +10:00
|
|
|
unreadIndicator:
|
|
|
|
color background: colors.accentBackground
|
|
|
|
color mentionBackground: colors.alertBackground
|
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
bottomBar:
|
2020-05-13 22:24:53 +10:00
|
|
|
color background: "transparent"
|
|
|
|
color settingsButtonBackground: colors.strongBackground
|
|
|
|
color filterFieldBackground: colors.strongBackground
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
|
2019-07-24 16:14:34 +10:00
|
|
|
chat:
|
2019-07-23 17:14:02 +10:00
|
|
|
roomHeader:
|
2020-03-20 11:33:46 +11:00
|
|
|
color background: controls.header.background
|
2019-07-24 16:14:34 +10:00
|
|
|
color name: colors.text
|
|
|
|
color topic: colors.dimText
|
|
|
|
|
2019-12-11 05:57:54 +11:00
|
|
|
roomPane:
|
2020-03-13 16:09:04 +11:00
|
|
|
color background: "transparent"
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
topBar:
|
|
|
|
color background: colors.strongBackground
|
2019-12-18 00:46:18 +11:00
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
listView:
|
|
|
|
color background: colors.mediumBackground
|
2019-12-18 00:46:18 +11:00
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
member:
|
|
|
|
real invitedOpacity: 0.5
|
2019-08-22 19:42:48 +10:00
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
color background: "transparent"
|
|
|
|
color name: colors.text
|
|
|
|
color subtitle: colors.dimText
|
|
|
|
|
|
|
|
color adminIcon: hsluv(60, colors.saturation * 2.25, 60)
|
|
|
|
color moderatorIcon: adminIcon
|
|
|
|
color invitedIcon: hsluv(0, colors.saturation * 2.25, 60)
|
2019-08-22 23:27:26 +10:00
|
|
|
|
2020-03-16 06:17:44 +11:00
|
|
|
roomSettings:
|
|
|
|
color background: colors.mediumBackground
|
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
bottomBar:
|
2020-03-10 23:58:14 +11:00
|
|
|
color background: colors.strongBackground
|
2019-08-22 23:27:26 +10:00
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
inviteButton:
|
|
|
|
color background: "transparent"
|
|
|
|
|
|
|
|
filterMembers:
|
|
|
|
color background: "transparent"
|
|
|
|
|
2019-07-23 17:14:02 +10:00
|
|
|
eventList:
|
2020-05-17 04:36:00 +10:00
|
|
|
color background: "transparent"
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
message:
|
2020-03-17 08:21:17 +11:00
|
|
|
int avatarSize: 56 * uiScale
|
|
|
|
int collapsedAvatarSize: 32 * uiScale
|
2020-03-16 06:01:09 +11:00
|
|
|
int avatarRadius: controls.avatar.radius
|
|
|
|
|
|
|
|
int radius: theme.radius
|
|
|
|
int horizontalSpacing: theme.spacing / 1.25
|
|
|
|
int verticalSpacing: theme.spacing / 1.75
|
2019-12-05 00:08:38 +11:00
|
|
|
|
2020-03-27 20:09:49 +11:00
|
|
|
color focusedHighlight: colors.accentBackground
|
|
|
|
real focusedHighlightOpacity: 0.4
|
|
|
|
|
2020-05-13 22:24:53 +10:00
|
|
|
color background: colors.weakBackground
|
|
|
|
color ownBackground: colors.mediumBackground
|
2020-03-27 12:01:36 +11:00
|
|
|
color checkedBackground: colors.accentBackground
|
2019-07-25 14:10:07 +10:00
|
|
|
|
2020-09-16 04:55:03 +10:00
|
|
|
color body: colors.text
|
|
|
|
color date: colors.dimText
|
2020-09-16 20:40:21 +10:00
|
|
|
color localEcho: colors.dimText
|
|
|
|
color readCounter: colors.accentText
|
2019-07-23 17:14:02 +10:00
|
|
|
|
2020-04-03 04:54:06 +11:00
|
|
|
color redactedBody: colors.dimText
|
2020-04-02 06:15:49 +11:00
|
|
|
|
2019-11-30 22:10:48 +11:00
|
|
|
color noticeBody: colors.halfDimText
|
2020-03-16 06:29:57 +11:00
|
|
|
int noticeLineWidth: 1 * uiScale
|
2019-11-30 22:10:48 +11:00
|
|
|
|
2020-03-13 16:09:04 +11:00
|
|
|
color quote: hsluv(
|
|
|
|
135, colors.coloredTextSaturation, colors.coloredTextIntensity,
|
|
|
|
)
|
2019-08-31 02:10:45 +10:00
|
|
|
color link: colors.link
|
|
|
|
color code: colors.code
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
string styleSheet:
|
2019-09-08 04:34:14 +10:00
|
|
|
"* { white-space: pre-wrap }" +
|
2019-07-23 17:14:02 +10:00
|
|
|
"a { color: " + link + " }" +
|
2019-09-20 05:49:29 +10:00
|
|
|
"p { margin-top: 0 }" +
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
"code { font-family: " + fontFamily.mono + "; " +
|
|
|
|
"color: " + code + " }" +
|
|
|
|
|
2019-07-24 16:14:34 +10:00
|
|
|
"h1, h2, h3 { font-weight: normal }" +
|
|
|
|
"h1 { font-size: " + fontSize.biggest + "px }" +
|
|
|
|
"h2 { font-size: " + fontSize.bigger + "px }" +
|
|
|
|
"h3 { font-size: " + fontSize.big + "px }" +
|
|
|
|
"h4 { font-size: " + fontSize.normal + "px }" +
|
|
|
|
"h5 { font-size: " + fontSize.small + "px }" +
|
|
|
|
"h6 { font-size: " + fontSize.smaller + "px }" +
|
2019-07-23 17:14:02 +10:00
|
|
|
|
2020-07-14 13:36:55 +10:00
|
|
|
"table { margin-top: " + theme.spacing + "px; " +
|
|
|
|
" margin-bottom: " + theme.spacing + "px }" +
|
|
|
|
|
|
|
|
"td { padding-left: " + theme.spacing / 2 + "px; " +
|
|
|
|
" padding-right: " + theme.spacing / 2 + "px; " +
|
|
|
|
" padding-top: " + theme.spacing / 4 + "px; " +
|
|
|
|
" padding-bottom: " + theme.spacing / 4 + "px } " +
|
|
|
|
|
2020-08-28 23:27:59 +10:00
|
|
|
"li { margin-top: " + theme.spacing / 2 + "px; " +
|
2020-09-02 03:38:30 +10:00
|
|
|
" margin-bottom: " + theme.spacing / 2 + "px; }" +
|
2020-08-28 23:27:59 +10:00
|
|
|
|
2019-09-20 05:49:29 +10:00
|
|
|
".sender { margin-bottom: " + spacing / 2 + " }" +
|
2020-03-24 04:30:40 +11:00
|
|
|
".quote { color: " + quote + " }" +
|
|
|
|
|
2020-03-24 07:53:11 +11:00
|
|
|
".mention { text-decoration: none; }" +
|
|
|
|
".room-id-mention, .room-alias-mention { font-weight: bold; }"
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
string styleInclude:
|
|
|
|
'<style type"text/css">\n' + styleSheet + '\n</style>\n'
|
|
|
|
|
2019-11-11 20:43:17 +11:00
|
|
|
// Prefered minimum width of file messages
|
2019-12-06 01:51:57 +11:00
|
|
|
int fileMinWidth: 256 * uiScale
|
2019-11-11 20:43:17 +11:00
|
|
|
|
|
|
|
// Don't scale down thumbnails below this size in pixels, if
|
|
|
|
// the becomes too small to show it at normal size.
|
2019-12-20 23:32:57 +11:00
|
|
|
size thumbnailMinSize: Qt.size(256 * uiScale, 256 * uiScale)
|
2019-11-11 20:43:17 +11:00
|
|
|
|
|
|
|
// How much of the chat height thumbnails can take at most,
|
2019-12-20 23:32:57 +11:00
|
|
|
// by default 0.4 for 40%.
|
|
|
|
real thumbnailMaxHeightRatio: 0.4 * Math.min(1, uiScale)
|
2019-09-07 07:46:48 +10:00
|
|
|
|
2020-03-27 12:01:36 +11:00
|
|
|
real thumbnailCheckedOverlayOpacity: 0.4
|
|
|
|
|
2019-07-23 17:14:02 +10:00
|
|
|
daybreak:
|
2020-03-10 23:58:14 +11:00
|
|
|
color background: colors.mediumBackground
|
2019-07-24 16:14:34 +10:00
|
|
|
color text: colors.text
|
|
|
|
int radius: theme.radius
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
inviteBanner:
|
2019-07-24 16:14:34 +10:00
|
|
|
color background: colors.mediumBackground
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
leftBanner:
|
2019-07-24 16:14:34 +10:00
|
|
|
color background: colors.mediumBackground
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
unknownDevices:
|
2019-07-24 16:14:34 +10:00
|
|
|
color background: colors.mediumBackground
|
2019-07-23 17:14:02 +10:00
|
|
|
|
|
|
|
typingMembers:
|
2019-09-08 06:55:07 +10:00
|
|
|
color background: hsluv(
|
|
|
|
colors.hue, colors.saturation, colors.intensity * 9, 0.52
|
|
|
|
)
|
2019-07-23 17:14:02 +10:00
|
|
|
|
2020-05-20 19:19:06 +10:00
|
|
|
replyBar:
|
|
|
|
color background: chat.typingMembers.background
|
|
|
|
|
2019-12-07 00:22:38 +11:00
|
|
|
fileTransfer:
|
2019-11-07 07:14:48 +11:00
|
|
|
color background: chat.typingMembers.background
|
|
|
|
|
2020-08-22 01:35:03 +10:00
|
|
|
userAutoCompletion:
|
|
|
|
color background: chat.typingMembers.background
|
|
|
|
int avatarsRadius: controls.avatar.radius
|
|
|
|
color displayNames: colors.text
|
|
|
|
color userIds: colors.dimText
|
|
|
|
|
2019-08-28 13:03:52 +10:00
|
|
|
composer:
|
2019-07-24 16:14:34 +10:00
|
|
|
color background: colors.strongBackground
|
2019-09-18 06:30:04 +10:00
|
|
|
|
2019-10-28 06:12:57 +11:00
|
|
|
uploadButton:
|
|
|
|
color background: "transparent"
|
|
|
|
|
2019-09-18 06:30:04 +10:00
|
|
|
|
|
|
|
mediaPlayer:
|
2019-09-18 06:39:45 +10:00
|
|
|
hoverPreview:
|
|
|
|
int maxHeight: 192
|
|
|
|
|
2019-09-18 06:30:04 +10:00
|
|
|
progress:
|
|
|
|
int height: 8
|
|
|
|
color background: hsluv(0, 0, 0, 0.5)
|
|
|
|
|
|
|
|
controls:
|
2019-12-05 00:08:38 +11:00
|
|
|
int iconSize: icons.dimension
|
2019-09-18 06:30:04 +10:00
|
|
|
int volumeSliderWidth: 100
|
|
|
|
int speedSliderWidth: 100
|
|
|
|
color background: hsluv(
|
|
|
|
colors.hue, colors.saturation * 1.25, colors.intensity * 2, 0.85,
|
|
|
|
)
|