pragma Singleton import QtQml 2.2 import Units 1.0 import ColorsList 1.0 // ============================================================================= QtObject { property string sectionName : 'ChatFilePreview' property int height: 160 property QtObject filePreview: QtObject{ id: filePreviewObject property int heightMargins: 60 property real format: 16/9 property string name: 'filePreview' property string icon: 'menu_reply_custom' property color backgroundColor: ColorsList.add(sectionName+'_'+name+'_bg', 'e').color property color headerTextColor: ColorsList.add(sectionName+'_'+name+'_header_fg', 'i').color property color iconColor: ColorsList.add(sectionName+'_'+name+'_header_fg', 'i').color property color textColor: ColorsList.add(sectionName+'_'+name+'_fg', 'd').color property int pointSize: Units.dp * 9 property int headerPointSize: Units.dp * 9 property QtObject removeButton: QtObject{ property int iconSize: 30 property string name : 'remove' property string icon : 'close_custom' property color backgroundNormalColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_b_n', icon, 's_n_b_bg').color property color backgroundHoveredColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_b_h', icon, 's_h_b_bg').color property color backgroundPressedColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_b_p', icon, 's_p_b_bg').color property color foregroundNormalColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_f_n', icon, 's_n_b_fg').color property color foregroundHoveredColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_f_h', icon, 's_h_b_fg').color property color foregroundPressedColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_f_p', icon, 's_p_b_fg').color } property QtObject closeButton: QtObject{ property int iconSize: 30 property string name : 'close' property string icon : 'close_custom' property color backgroundNormalColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_b_n', icon, 'l_n_b_bg').color property color backgroundHoveredColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_b_h', icon, 'l_h_b_bg').color property color backgroundPressedColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_b_p', icon, 'l_p_b_bg').color property color foregroundNormalColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_f_n', icon, 'l_n_b_fg').color property color foregroundHoveredColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_f_h', icon, 'l_h_b_fg').color property color foregroundPressedColor : ColorsList.addImageColor(sectionName+'_'+filePreviewObject.name+'_'+name+'_f_p', icon, 'l_p_b_fg').color } } }