mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
improve unencrypted conversations warning indicator #LINQT-2061 allow user to choose an address for sending message when multiple addresses in contact #LINQT-2054 verify friend has a core to avoid crash in liblinphone #LINQT-1933 wait for window to be active before calling markAsRead (fix #LINQT-2048) fix button text color (fix #LINQT-1832) change format for mkv #LINQT-2056 Registration : check phone number format #LINQT-2044 fix window closing even if a new call is started #LINQT-2055 display popup to delete meetings on right click in meeting list item (allow to delete canceled meetings which cannot be displayed in the right panel)
75 lines
2.6 KiB
QML
75 lines
2.6 KiB
QML
pragma Singleton
|
|
import QtQuick
|
|
import Linphone
|
|
import SettingsCpp
|
|
|
|
QtObject {
|
|
|
|
property var currentTheme: Themes.themes.hasOwnProperty(SettingsCpp.themeMainColor)
|
|
? Themes.themes[SettingsCpp.themeMainColor]
|
|
: Themes.themes["orange"]
|
|
property color main1_100: currentTheme.main100
|
|
property color main1_200: currentTheme.main200
|
|
property color main1_300: currentTheme.main300
|
|
property color main1_500_main: currentTheme.main500
|
|
property color main1_600: currentTheme.main600
|
|
property color main1_700: currentTheme.main700
|
|
|
|
property color main2_0: "#FAFEFF"
|
|
property color main2_100: "#EEF6F8"
|
|
property color main2_200: "#DFECF2"
|
|
property color main2_300: "#C0D1D9"
|
|
property color main2_400: "#9AABB5"
|
|
property color main2_500_main: "#6C7A87"
|
|
property color main2_600: "#4E6074"
|
|
property color main2_700: "#364860"
|
|
property color main2_800: "#22334D"
|
|
property color main2_900: "#2D3648"
|
|
|
|
property color grey_0: "#FFFFFF"
|
|
property color grey_100: "#F9F9F9"
|
|
property color grey_200: "#EDEDED"
|
|
property color grey_300: "#C9C9C9"
|
|
property color grey_400: "#949494"
|
|
property color grey_500: "#4E4E4E"
|
|
property color grey_600: "#2E3030"
|
|
property color grey_850: "#D9D9D9"
|
|
property color grey_900: "#070707"
|
|
property color grey_1000: "#000000"
|
|
|
|
property color warning_600: "#DBB820"
|
|
property color warning_700: "#AF9308"
|
|
property color danger_500_main: "#DD5F5F"
|
|
property color warning_500_main: "#FFDC2E"
|
|
property color danger_700: "#9E3548"
|
|
property color danger_900: "#723333"
|
|
property color success_500_main: "#4FAE80"
|
|
property color success_700: "#377d71"
|
|
property color success_900: "#1E4C53"
|
|
property color info_500_main: "#4AA8FF"
|
|
|
|
property color vue_meter_light_green: "#6FF88D"
|
|
property color vue_meter_dark_green: "#00D916"
|
|
|
|
property real defaultHeight: 1080.0
|
|
property real defaultWidth: 1920.0
|
|
property real maxDp: 0.98
|
|
property real dp: Math.min((Screen.width/Screen.height)/(defaultWidth/defaultHeight), maxDp)
|
|
|
|
onDpChanged: {
|
|
console.log("Screen ratio changed", dp)
|
|
AppCpp.setScreenRatio(dp)
|
|
}
|
|
|
|
// Warning: Qt 6.8.1 (current version) and previous versions, Qt only support COLRv0 fonts. Don't try to use v1.
|
|
property string emojiFont: "Noto Color Emoji"
|
|
property string flagFont: "Noto Color Emoji"
|
|
property string defaultFont: "Noto Sans"
|
|
|
|
property color numericPadPressedButtonColor: "#EEF7F8"
|
|
|
|
property color groupCallButtonColor: "#EEF7F8"
|
|
|
|
property color placeholders: '#CACACA' // No name in design
|
|
|
|
}
|