2023-04-23 09:42:35 -04:00
|
|
|
import QtCore
|
|
|
|
import QtQuick
|
2023-04-23 23:56:33 -04:00
|
|
|
import QtQuick.Controls.Basic
|
2023-07-26 15:42:07 -04:00
|
|
|
import mysettings
|
2023-04-23 09:42:35 -04:00
|
|
|
|
|
|
|
QtObject {
|
2024-01-22 14:41:47 -05:00
|
|
|
// black and white
|
|
|
|
property color black: Qt.hsla(231/360, 0.15, 0.19)
|
|
|
|
property color white: Qt.hsla(0, 0, 1)
|
|
|
|
|
|
|
|
// dark mode black and white
|
|
|
|
property color darkwhite: Qt.hsla(0, 0, 0.85)
|
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
// gray // FIXME: These are slightly less red than what atlas uses. should resolve diff
|
2024-01-22 14:41:47 -05:00
|
|
|
property color gray0: white
|
|
|
|
property color gray50: Qt.hsla(25/360, 0.05, 0.97)
|
|
|
|
property color gray100: Qt.hsla(25/360,0.05, 0.95)
|
|
|
|
property color gray200: Qt.hsla(25/360, 0.05, 0.89)
|
|
|
|
property color gray300: Qt.hsla(25/360, 0.05, 0.82)
|
|
|
|
property color gray400: Qt.hsla(25/360, 0.05, 0.71)
|
|
|
|
property color gray500: Qt.hsla(25/360, 0.05, 0.60)
|
|
|
|
property color gray600: Qt.hsla(25/360, 0.05, 0.51)
|
|
|
|
property color gray700: Qt.hsla(25/360, 0.05, 0.42)
|
|
|
|
property color gray800: Qt.hsla(25/360, 0.05, 0.35)
|
|
|
|
property color gray900: Qt.hsla(25/360, 0.05, 0.31)
|
|
|
|
property color gray950: Qt.hsla(25/360, 0.05, 0.15)
|
|
|
|
|
2024-06-24 18:49:23 -04:00
|
|
|
property color grayRed0: Qt.hsla(0/360, 0.108, 0.89)
|
|
|
|
property color grayRed50: Qt.hsla(0/360, 0.108, 0.85)
|
|
|
|
property color grayRed100: Qt.hsla(0/360, 0.108, 0.80)
|
|
|
|
property color grayRed200: Qt.hsla(0/360, 0.108, 0.76)
|
|
|
|
property color grayRed300: Qt.hsla(0/360, 0.108, 0.72)
|
|
|
|
property color grayRed400: Qt.hsla(0/360, 0.108, 0.68)
|
|
|
|
property color grayRed500: Qt.hsla(0/360, 0.108, 0.60)
|
|
|
|
property color grayRed600: Qt.hsla(0/360, 0.108, 0.56)
|
|
|
|
property color grayRed700: Qt.hsla(0/360, 0.108, 0.52)
|
|
|
|
property color grayRed800: Qt.hsla(0/360, 0.108, 0.48)
|
|
|
|
property color grayRed900: Qt.hsla(0/360, 0.108, 0.42)
|
|
|
|
|
2024-01-22 14:41:47 -05:00
|
|
|
// darkmode
|
|
|
|
property color darkgray0: Qt.hsla(25/360, 0.05, 0.23)
|
|
|
|
property color darkgray50: Qt.hsla(25/360, 0.05, 0.21)
|
|
|
|
property color darkgray100: Qt.hsla(25/360, 0.05, 0.19)
|
|
|
|
property color darkgray200: Qt.hsla(25/360, 0.05, 0.17)
|
|
|
|
property color darkgray300: Qt.hsla(25/360, 0.05, 0.15)
|
|
|
|
property color darkgray400: Qt.hsla(25/360, 0.05, 0.13)
|
|
|
|
property color darkgray500: Qt.hsla(25/360, 0.05, 0.11)
|
|
|
|
property color darkgray600: Qt.hsla(25/360, 0.05, 0.09)
|
|
|
|
property color darkgray700: Qt.hsla(25/360, 0.05, 0.07)
|
|
|
|
property color darkgray800: Qt.hsla(25/360, 0.05, 0.05)
|
|
|
|
property color darkgray900: Qt.hsla(25/360, 0.05, 0.03)
|
|
|
|
property color darkgray950: Qt.hsla(25/360, 0.05, 0.01)
|
|
|
|
|
|
|
|
// green
|
|
|
|
property color green50: Qt.hsla(120/360, 0.18, 0.97)
|
|
|
|
property color green100: Qt.hsla(120/360, 0.21, 0.93)
|
|
|
|
property color green200: Qt.hsla(124/360, 0.21, 0.85)
|
|
|
|
property color green300: Qt.hsla(122/360, 0.20, 0.73)
|
|
|
|
property color green400: Qt.hsla(122/360, 0.19, 0.58)
|
|
|
|
property color green500: Qt.hsla(121/360, 0.19, 0.45)
|
|
|
|
property color green600: Qt.hsla(122/360, 0.20, 0.33)
|
|
|
|
property color green700: Qt.hsla(122/360, 0.19, 0.29)
|
|
|
|
property color green800: Qt.hsla(123/360, 0.17, 0.24)
|
|
|
|
property color green900: Qt.hsla(124/360, 0.17, 0.20)
|
|
|
|
property color green950: Qt.hsla(125/360, 0.22, 0.10)
|
|
|
|
|
|
|
|
// yellow
|
2024-06-26 13:48:02 -04:00
|
|
|
property color yellow0: Qt.hsla(47/360, 0.90, 0.99)
|
2024-06-24 18:49:23 -04:00
|
|
|
property color yellow25: Qt.hsla(47/360, 0.90, 0.98)
|
2024-01-22 14:41:47 -05:00
|
|
|
property color yellow50: Qt.hsla(47/360, 0.90, 0.96)
|
|
|
|
property color yellow100: Qt.hsla(46/360, 0.89, 0.89)
|
|
|
|
property color yellow200: Qt.hsla(45/360, 0.90, 0.77)
|
|
|
|
property color yellow300: Qt.hsla(44/360, 0.90, 0.66)
|
|
|
|
property color yellow400: Qt.hsla(41/360, 0.89, 0.56)
|
|
|
|
property color yellow500: Qt.hsla(36/360, 0.85, 0.50)
|
|
|
|
property color yellow600: Qt.hsla(30/360, 0.87, 0.44)
|
|
|
|
property color yellow700: Qt.hsla(24/360, 0.84, 0.37)
|
|
|
|
property color yellow800: Qt.hsla(21/360, 0.76, 0.31)
|
|
|
|
property color yellow900: Qt.hsla(20/360, 0.72, 0.26)
|
|
|
|
property color yellow950: Qt.hsla(19/360, 0.86, 0.14)
|
|
|
|
|
|
|
|
// red
|
|
|
|
property color red50: Qt.hsla(0, 0.71, 0.97)
|
|
|
|
property color red100: Qt.hsla(0, 0.87, 0.94)
|
|
|
|
property color red200: Qt.hsla(0, 0.89, 0.89)
|
|
|
|
property color red300: Qt.hsla(0, 0.85, 0.77)
|
|
|
|
property color red400: Qt.hsla(0, 0.83, 0.71)
|
|
|
|
property color red500: Qt.hsla(0, 0.76, 0.60)
|
|
|
|
property color red600: Qt.hsla(0, 0.65, 0.51)
|
|
|
|
property color red700: Qt.hsla(0, 0.67, 0.42)
|
|
|
|
property color red800: Qt.hsla(0, 0.63, 0.35)
|
|
|
|
property color red900: Qt.hsla(0, 0.56, 0.31)
|
|
|
|
property color red950: Qt.hsla(0, 0.67, 0.15)
|
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
// purple // FIXME: These are slightly more uniform than what atlas uses. should resolve diff
|
|
|
|
property color purple50: Qt.hsla(279/360, 1.0, 0.98)
|
|
|
|
property color purple100: Qt.hsla(279/360, 1.0, 0.95)
|
|
|
|
property color purple200: Qt.hsla(279/360, 1.0, 0.91)
|
|
|
|
property color purple300: Qt.hsla(279/360, 1.0, 0.84)
|
2024-01-22 14:41:47 -05:00
|
|
|
property color purple400: Qt.hsla(279/360, 1.0, 0.73)
|
|
|
|
property color purple500: Qt.hsla(279/360, 1.0, 0.63)
|
|
|
|
property color purple600: Qt.hsla(279/360, 1.0, 0.53)
|
2024-01-29 11:12:12 -05:00
|
|
|
property color purple700: Qt.hsla(279/360, 1.0, 0.47)
|
|
|
|
property color purple800: Qt.hsla(279/360, 1.0, 0.39)
|
|
|
|
property color purple900: Qt.hsla(279/360, 1.0, 0.32)
|
|
|
|
property color purple950: Qt.hsla(279/360, 1.0, 0.22)
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color blue0: "#d0d5db"
|
|
|
|
property color blue100: "#8e8ea0"
|
|
|
|
property color blue200: "#7d7d8e"
|
|
|
|
property color blue400: "#444654"
|
|
|
|
property color blue500: "#343541"
|
|
|
|
property color blue600: "#2c2d37"
|
2024-06-24 18:49:23 -04:00
|
|
|
property color blue700: "#26272f"
|
2024-01-29 11:12:12 -05:00
|
|
|
property color blue800: "#232628"
|
|
|
|
property color blue900: "#222527"
|
|
|
|
property color blue950: "#1c1f21"
|
|
|
|
property color blue1000: "#0e1011"
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color accentColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue200
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return yellow300
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return yellow300
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-07-10 10:36:20 -04:00
|
|
|
/*
|
|
|
|
These nolonger apply to anything (remove this?)
|
|
|
|
Replaced by menuHighlightColor & menuBackgroundColor now using different colors.
|
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color darkContrast: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue950
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray300
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray100
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color lightContrast: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue400
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray0
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray0
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-07-10 10:36:20 -04:00
|
|
|
*/
|
2024-01-29 11:12:12 -05:00
|
|
|
property color controlBorder: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue800
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray0
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray300
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color controlBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue950
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray300
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray100
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color disabledControlBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue950
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray200
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray200
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-06-24 18:49:23 -04:00
|
|
|
property color dividerColor: {
|
2024-01-29 11:12:12 -05:00
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue950
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray200
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return grayRed0
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color conversationDivider: {
|
2024-07-04 19:25:29 -04:00
|
|
|
return dividerColor
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
property color settingsDivider: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
return dividerColor
|
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray400
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return grayRed500
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color viewBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue600
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray100
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray50
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-07-10 10:36:20 -04:00
|
|
|
/*
|
|
|
|
These nolonger apply to anything (remove this?)
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color containerForeground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue950
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray300
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray300
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-07-10 10:36:20 -04:00
|
|
|
*/
|
2024-01-29 11:12:12 -05:00
|
|
|
property color containerBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue900
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray200
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray100
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color viewBarBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue950
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray400
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray100
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color progressForeground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return purple400
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green600
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color progressBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue900
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green600
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green100
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-06-24 18:49:23 -04:00
|
|
|
property color altProgressForeground: {
|
2024-02-06 09:34:38 -05:00
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return progressForeground
|
2024-02-06 09:34:38 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#fcf0c9"
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color altProgressBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return progressBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#fff9d2"
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color altProgressText: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return textColor
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#d16f0e"
|
2024-02-06 09:34:38 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color checkboxBorder: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray200
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray600
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color checkboxForeground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green300
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green600
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color buttonBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue950
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray300
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green600
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color buttonBackgroundHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue900
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray400
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green500
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-24 18:49:23 -04:00
|
|
|
property color lightButtonText: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return textColor
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return textColor
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green600
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color lightButtonMutedText: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return mutedTextColor
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return mutedTextColor
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green300
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color lightButtonBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green100
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color lightButtonBackgroundHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackgroundHovered
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackgroundHovered
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green200
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color darkButtonText: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return textColor
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return textColor
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return red600
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color darkButtonMutedText: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return mutedTextColor
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return mutedTextColor
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return red300
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color darkButtonBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return red200
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color darkButtonBackgroundHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackgroundHovered
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackgroundHovered
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return red300
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color lighterButtonForeground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return textColor
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return textColor
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green600
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color lighterButtonBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green100
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color lighterButtonBackgroundHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackgroundHovered
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackgroundHovered
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green50
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-28 17:11:12 -04:00
|
|
|
property color lighterButtonBackgroundHoveredRed: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackgroundHovered
|
2024-06-28 17:11:12 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackgroundHovered
|
2024-06-28 17:11:12 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return red50
|
2024-06-28 17:11:12 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-24 18:49:23 -04:00
|
|
|
property color sourcesBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return lighterButtonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return lighterButtonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray100
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color sourcesBackgroundHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return lighterButtonBackgroundHovered
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return lighterButtonBackgroundHovered
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray200
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color buttonBorder: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return controlBorder
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return yellow200
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-10 15:23:35 -04:00
|
|
|
property color conversationInputButtonBackground: {
|
2024-01-29 11:12:12 -05:00
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return black
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-10 15:23:35 -04:00
|
|
|
property color conversationInputButtonBackgroundHovered: {
|
2024-01-29 11:12:12 -05:00
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue0
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkwhite
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-24 18:49:23 -04:00
|
|
|
property color selectedBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue700
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray200
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray0
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color conversationButtonBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue500
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray100
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray0
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-06-24 18:49:23 -04:00
|
|
|
property color conversationBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue500
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray50
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return white
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color conversationProgress: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return purple400
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green400
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green400
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
2024-01-29 11:12:12 -05:00
|
|
|
|
|
|
|
property color conversationButtonBackgroundHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue400
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray0
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray100
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color conversationButtonBorder: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return yellow200
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return yellow200
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-24 18:49:23 -04:00
|
|
|
property color conversationHeader: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return purple400
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green400
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green500
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color collectionsButtonText: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return black
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return black
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return white
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color collectionsButtonProgress: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return purple400
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
|
|
|
return darkgray400
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green400
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color collectionsButtonForeground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return purple400
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green300
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green600
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color collectionsButtonBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return lighterButtonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color collectionsButtonBackgroundHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return lighterButtonBackgroundHovered
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color welcomeButtonBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return lighterButtonBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color welcomeButtonBorder: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBorder
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return buttonBorder
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green300
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color welcomeButtonBorderHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return purple200
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray100
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green400
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color welcomeButtonText: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
return textColor
|
|
|
|
case "Dark":
|
|
|
|
return textColor
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green700
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color welcomeButtonTextHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
return purple200
|
|
|
|
case "Dark":
|
|
|
|
return gray400
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green800
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color fancyLinkText: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
return textColor
|
|
|
|
case "Dark":
|
|
|
|
return textColor
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return grayRed900
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color fancyLinkTextHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
return mutedTextColor
|
|
|
|
case "Dark":
|
|
|
|
return mutedTextColor
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return textColor
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color iconBackgroundDark: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue200
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green400
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return black
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color iconBackgroundLight: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue200
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkwhite
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray500
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color iconBackgroundHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue0
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray400
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-24 18:49:23 -04:00
|
|
|
property color iconBackgroundViewBar: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return iconBackgroundLight
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return iconBackgroundLight
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green500
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color iconBackgroundViewBarToggled: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return iconBackgroundLight
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray50
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green200
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color iconBackgroundViewBarHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return iconBackgroundHovered
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return iconBackgroundHovered
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green600
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color slugBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue600
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray300
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray100
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color textColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue0
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkwhite
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return black
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-24 18:49:23 -04:00
|
|
|
// lighter contrast
|
|
|
|
property color mutedLighterTextColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray300
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// light contrast
|
|
|
|
property color mutedLightTextColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray400
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// normal contrast
|
2024-01-29 11:12:12 -05:00
|
|
|
property color mutedTextColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue200
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray400
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray500
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// dark contrast
|
|
|
|
property color mutedDarkTextColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return mutedTextColor
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return mutedTextColor
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return grayRed500
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// dark contrast hovered
|
|
|
|
property color mutedDarkTextColorHovered: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue400
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return grayRed900
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color oppositeTextColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return white
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkwhite
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return white
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color oppositeMutedTextColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return white
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkwhite
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return white
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color textAccent: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color textErrorColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return red400
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return red400
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return red400
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color settingsTitleTextColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue100
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green200
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return black
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color titleTextColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return purple400
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green300
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green700
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-24 18:49:23 -04:00
|
|
|
property color titleTextColor2: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkwhite
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green200
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green700
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color titleInfoTextColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue200
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray400
|
2024-06-24 18:49:23 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray600
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color styledTextColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
return purple100
|
|
|
|
case "Dark":
|
|
|
|
return yellow25
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return grayRed900
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color styledTextColor2: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue0
|
2024-06-24 18:49:23 -04:00
|
|
|
case "Dark":
|
|
|
|
return yellow50
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green500
|
2024-06-24 18:49:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-26 13:48:02 -04:00
|
|
|
property color chatDrawerSectionHeader: {
|
2024-07-04 19:25:29 -04:00
|
|
|
switch (MySettings.chatTheme) {
|
2024-06-26 13:48:02 -04:00
|
|
|
case "LegacyDark":
|
|
|
|
return purple50
|
|
|
|
case "Dark":
|
|
|
|
return yellow0
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return grayRed800
|
2024-06-26 13:48:02 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-29 11:12:12 -05:00
|
|
|
property color dialogBorder: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray0
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return darkgray0
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color linkColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return yellow600
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return yellow600
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return yellow600
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color mainHeader: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue900
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green600
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green600
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color mainComboBackground: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return "transparent"
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color sendGlow: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue1000
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green950
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green300
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color userColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return blue800
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return green700
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green700
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color assistantColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return purple400
|
2024-01-29 11:12:12 -05:00
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return accentColor
|
2024-01-29 11:12:12 -05:00
|
|
|
}
|
|
|
|
}
|
2024-01-22 14:41:47 -05:00
|
|
|
|
2024-06-30 19:15:01 -04:00
|
|
|
property color codeDefaultColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
case "Dark":
|
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return textColor
|
2024-06-30 19:15:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color codeKeywordColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#2e95d3" // blue
|
2024-06-30 19:15:01 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#195273" // dark blue
|
2024-06-30 19:15:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color codeFunctionColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return"#f22c3d" // red
|
2024-06-30 19:15:01 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return"#7d1721" // dark red
|
2024-06-30 19:15:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color codeFunctionCallColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#e9950c" // orange
|
2024-06-30 19:15:01 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#815207" // dark orange
|
2024-06-30 19:15:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color codeCommentColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#808080" // gray
|
2024-06-30 19:15:01 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#474747" // dark gray
|
2024-06-30 19:15:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color codeStringColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#00a37d" // green
|
2024-06-30 19:15:01 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#004a39" // dark green
|
2024-06-30 19:15:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color codeNumberColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#df3079" // fuchsia
|
2024-06-30 19:15:01 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return "#761942" // dark fuchsia
|
2024-06-30 19:15:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color codeHeaderColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return containerBackground
|
2024-06-30 19:15:01 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return green50
|
2024-06-30 19:15:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color codeBackgroundColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return controlBackground
|
2024-06-30 19:15:01 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray100
|
2024-06-30 19:15:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-01 18:24:04 -04:00
|
|
|
property color chatNameEditBgColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
case "Dark":
|
2024-07-04 19:25:29 -04:00
|
|
|
return controlBackground
|
2024-07-01 18:24:04 -04:00
|
|
|
default:
|
2024-07-04 19:25:29 -04:00
|
|
|
return gray100
|
2024-07-01 18:24:04 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-10 10:36:20 -04:00
|
|
|
property color menuBackgroundColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
return blue700
|
|
|
|
case "Dark":
|
|
|
|
return darkgray200
|
|
|
|
default:
|
|
|
|
return gray50
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color menuHighlightColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
return blue400
|
|
|
|
case "Dark":
|
|
|
|
return darkgray0
|
|
|
|
default:
|
|
|
|
return green100
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property color menuBorderColor: {
|
|
|
|
switch (MySettings.chatTheme) {
|
|
|
|
case "LegacyDark":
|
|
|
|
return blue400
|
|
|
|
case "Dark":
|
|
|
|
return gray800
|
|
|
|
default:
|
|
|
|
return gray300
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-28 12:57:57 -04:00
|
|
|
property real fontScale: MySettings.fontSize === "Small" ? 1 :
|
|
|
|
MySettings.fontSize === "Medium" ? 1.3 :
|
|
|
|
/* "Large" */ 1.8
|
|
|
|
|
|
|
|
property real fontSizeSmallest: 8 * fontScale
|
|
|
|
property real fontSizeSmaller: 9 * fontScale
|
|
|
|
property real fontSizeSmall: 10 * fontScale
|
|
|
|
property real fontSizeMedium: 11 * fontScale
|
|
|
|
property real fontSizeLarge: 12 * fontScale
|
|
|
|
property real fontSizeLarger: 14 * fontScale
|
|
|
|
property real fontSizeLargest: 18 * fontScale
|
|
|
|
property real fontSizeBannerSmall: 24 * fontScale**.8
|
|
|
|
property real fontSizeBanner: 48 * fontScale**.8
|
2024-01-22 14:41:47 -05:00
|
|
|
}
|