mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-24 07:08:07 +00:00
194 lines
6.1 KiB
QML
194 lines
6.1 KiB
QML
pragma Singleton
|
|
import QtQml 2.2
|
|
import QtQuick 2.3
|
|
|
|
import Units 1.0
|
|
import ColorsList 1.0
|
|
|
|
// =============================================================================
|
|
|
|
QtObject {
|
|
property string sectionName: 'MenuItem'
|
|
|
|
property QtObject speaker: QtObject {
|
|
property int iconSize: 30
|
|
property string icon : 'speaker_on_custom'
|
|
}
|
|
property QtObject copy: QtObject {
|
|
property int iconSize: 30
|
|
property string icon : 'menu_copy_text_custom'
|
|
}
|
|
property QtObject reply: QtObject {
|
|
property int iconSize: 30
|
|
property string icon : 'menu_reply_custom'
|
|
}
|
|
property QtObject forward: QtObject {
|
|
property int iconSize: 30
|
|
property string icon : 'menu_forward_custom'
|
|
}
|
|
property QtObject imdn: QtObject {
|
|
property int iconSize: 30
|
|
property string icon : 'menu_imdn_info_custom'
|
|
}
|
|
property QtObject deleteEntry: QtObject {
|
|
property int iconSize: 30
|
|
property string icon : 'delete_custom'
|
|
}
|
|
property QtObject info: QtObject {
|
|
property int iconSize: 20
|
|
property string icon : 'menu_info_custom'
|
|
}
|
|
property QtObject devices: QtObject {
|
|
property string icon : 'menu_devices_custom'
|
|
}
|
|
property QtObject ephemeral: QtObject {
|
|
property string icon : 'menu_ephemeral_custom'
|
|
}
|
|
property QtObject scheduleMeeting: QtObject {
|
|
property string icon : 'meetings_custom'
|
|
}
|
|
property QtObject notifications: QtObject {
|
|
property string off : 'notifications_off_custom'
|
|
property string on : 'notifications_on_custom'
|
|
}
|
|
property QtObject contact: QtObject {
|
|
property string add : 'contact_add_custom'
|
|
property string view : 'contact_view_custom'
|
|
}
|
|
|
|
property QtObject entry: QtObject{
|
|
property int iconSize: 30
|
|
}
|
|
|
|
|
|
property QtObject normal : QtObject{
|
|
property int leftMargin: 5
|
|
property int rightMargin: 5
|
|
|
|
property QtObject background: QtObject {
|
|
property int height: 30
|
|
|
|
property QtObject color: QtObject {
|
|
property var hovered: ColorsList.add(sectionName+'_normal_bg_h', 'o')
|
|
property var normal: ColorsList.add(sectionName+'_normal_bg_n', 'q')
|
|
property var pressed: ColorsList.add(sectionName+'_normal_bg_p', 'o')
|
|
}
|
|
}
|
|
|
|
property QtObject text: QtObject {
|
|
property int pointSize: Units.dp * 10
|
|
property int weight : Font.Bold
|
|
|
|
property QtObject color: QtObject {
|
|
property var hovered: ColorsList.add(sectionName+'_n_text_h', 'j')
|
|
property var normal: ColorsList.add(sectionName+'_n_text_n', 'j')
|
|
property var pressed: ColorsList.add(sectionName+'_n_text_p', 'j')
|
|
property var disabled: ColorsList.add(sectionName+'_n_text_d', 'l50')
|
|
}
|
|
}
|
|
}
|
|
property QtObject aux : QtObject{
|
|
property int leftMargin: 10
|
|
property int rightMargin: 10
|
|
|
|
property QtObject background: QtObject {
|
|
property int height: 40
|
|
|
|
property QtObject color: QtObject {
|
|
property var hovered: ColorsList.add(sectionName+'_aux_bg_h', 'v')
|
|
property var normal: ColorsList.add(sectionName+'_aux_bg_n', 'a')
|
|
property var pressed: ColorsList.add(sectionName+'_aux_bg_p', 'v')
|
|
}
|
|
}
|
|
|
|
property QtObject text: QtObject {
|
|
property int pointSize: Units.dp * 10
|
|
property int weight : Font.Normal
|
|
|
|
property QtObject color: QtObject {
|
|
property var hovered: ColorsList.add(sectionName+'_aux_text_h', 'j')
|
|
property var normal: ColorsList.add(sectionName+'_aux_text_n', 'j')
|
|
property var pressed: ColorsList.add(sectionName+'_aux_text_p', 'j')
|
|
property var disabled: ColorsList.add(sectionName+'_aux_text_d', 'l50')
|
|
}
|
|
}
|
|
}
|
|
property QtObject auxError : QtObject{
|
|
property int leftMargin: 10
|
|
property int rightMargin: 10
|
|
|
|
property QtObject background: QtObject {
|
|
property int height: 40
|
|
|
|
property QtObject color: QtObject {
|
|
property var hovered: ColorsList.add(sectionName+'_auxRed_bg_h', 'v')
|
|
property var normal: ColorsList.add(sectionName+'_auxRed_bg_n', 'a')
|
|
property var pressed: ColorsList.add(sectionName+'_auxRed_bg_p', 'v')
|
|
}
|
|
}
|
|
|
|
property QtObject text: QtObject {
|
|
property int pointSize: Units.dp * 10
|
|
property int weight : Font.Normal
|
|
|
|
property QtObject color: QtObject {
|
|
property var hovered: ColorsList.add(sectionName+'_auxError_text_h', 'error')
|
|
property var normal: ColorsList.add(sectionName+'_auxError_text_n', 'error')
|
|
property var pressed: ColorsList.add(sectionName+'_auxError_text_p', 'error')
|
|
property var disabled: ColorsList.add(sectionName+'_auxError_text_d', 'l50')
|
|
}
|
|
}
|
|
}
|
|
property QtObject aux2 : QtObject{
|
|
property int leftMargin: 10
|
|
property int rightMargin: 10
|
|
|
|
property QtObject background: QtObject {
|
|
property int height: 50
|
|
|
|
property QtObject color: QtObject {
|
|
property var hovered: ColorsList.add(sectionName+'_aux2_bg_h', 'w')
|
|
property var normal: ColorsList.add(sectionName+'_aux2_bg_n', 'w')
|
|
property var pressed: ColorsList.add(sectionName+'_aux2_bg_p', 'v')
|
|
}
|
|
}
|
|
|
|
property QtObject text: QtObject {
|
|
property int pointSize: Units.dp * 11
|
|
property int weight : Font.Normal
|
|
|
|
property QtObject color: QtObject {
|
|
property var hovered: ColorsList.add(sectionName+'_aux2_text_h', 'm')
|
|
property var normal: ColorsList.add(sectionName+'_aux2_text_n', 'j')
|
|
property var pressed: ColorsList.add(sectionName+'_aux2_text_p', 'm')
|
|
property var disabled: ColorsList.add(sectionName+'_aux2_text_d', 'l50')
|
|
}
|
|
}
|
|
}
|
|
property QtObject aux2Error : QtObject{
|
|
property int leftMargin: 10
|
|
property int rightMargin: 10
|
|
|
|
property QtObject background: QtObject {
|
|
property int height: 50
|
|
|
|
property QtObject color: QtObject {
|
|
property var hovered: ColorsList.add(sectionName+'_aux2Error_bg_h', 'w')
|
|
property var normal: ColorsList.add(sectionName+'_aux2Error_bg_n', 'w')
|
|
property var pressed: ColorsList.add(sectionName+'_aux2Error_bg_p', 'v')
|
|
}
|
|
}
|
|
|
|
property QtObject text: QtObject {
|
|
property int pointSize: Units.dp * 11
|
|
property int weight : Font.Normal
|
|
|
|
property QtObject color: QtObject {
|
|
property var hovered: ColorsList.add(sectionName+'_aux2Error_text_h', 'error')
|
|
property var normal: ColorsList.add(sectionName+'_aux2Error_text_n', 'error')
|
|
property var pressed: ColorsList.add(sectionName+'_aux2Error_text_p', 'error')
|
|
property var disabled: ColorsList.add(sectionName+'_aux2Error_text_d', 'l50')
|
|
}
|
|
}
|
|
}
|
|
}
|