Skip to content
Snippets Groups Projects
Commit 65871128 authored by Konstantin's avatar Konstantin
Browse files

[*]edit property

parent 266a6325
No related branches found
No related tags found
2 merge requests!11Bugs 2893,!10[+]add dapRadioButton
...@@ -3,33 +3,35 @@ import QtQuick.Controls 2.0 ...@@ -3,33 +3,35 @@ import QtQuick.Controls 2.0
Button { Button {
///@detalis heightButton Button height. ///@detalis heightButton Button height.
property int heightButton: 36 * pt property int heightButton
///@detalis widthButton Button width. ///@detalis widthButton Button width.
property int widthButton: 120 * pt property int widthButton
///@detalis normalImageButton The picture on the Button is in normal state. ///@detalis normalImageButton The picture on the Button is in normal state.
property string normalImageButton: "qrc:/res/icons/new-wallet_icon_dark.png" property string normalImageButton
///@detalis hoverImageButton The image on the Button is in the mouseover state. ///@detalis hoverImageButton The image on the Button is in the mouseover state.
property string hoverImageButton: "qrc:/res/icons/new-wallet_icon_dark_hover.png" property string hoverImageButton
///@detalis widthImageButton Image width. ///@detalis widthImageButton Image width.
property int widthImageButton: 28 * pt property int widthImageButton
///@detalis heightImageButton Image height. ///@detalis heightImageButton Image height.
property int heightImageButton: 28 * pt property int heightImageButton
///@detalis indentImageLeftButton: Indentation of the image from the left edge. ///@detalis indentImageLeftButton: Indentation of the image from the left edge.
property int indentImageLeftButton: 10 * pt property int indentImageLeftButton
///@detalis colorBackgroundNormal Button background color in normal state. ///@detalis colorBackgroundNormal Button background color in normal state.
property string colorBackgroundNormal:"#070023" property string colorBackgroundNormal
///@detalis colorBackgroundHover Button background color in hover state. ///@detalis colorBackgroundHover Button background color in hover state.
property string colorBackgroundHover: "#D51F5D" property string colorBackgroundHover
///@detalis textButton Text button. ///@detalis textButton Text button.
property string textButton: "New Wallet" property string textButton
///@detalis colorButtonTextNormal Button text color in normal state. ///@detalis colorButtonTextNormal Button text color in normal state.
property string colorButtonTextNormal: "#FFFFFF" property string colorButtonTextNormal
///@detalis colorButtonTextHover Button text color in hover state. ///@detalis colorButtonTextHover Button text color in hover state.
property string colorButtonTextHover: "#FFFFFF" property string colorButtonTextHover
///@detalis indentTextRight: Indentation of the text from the right edge. ///@detalis indentTextRight: Indentation of the text from the right edge.
property int indentTextRight: 20 * pt property int indentTextRight
///@detalis fontSizeButton Font size. ///@detalis fontSizeButton Font size.
property int fontSizeButton: 14 * pt property int fontSizeButton
///@detalis fontFamily Font family button.
property string fontFamily
///@detalis existenceImage Indicates the presence of an image. ///@detalis existenceImage Indicates the presence of an image.
property bool existenceImage:true property bool existenceImage:true
///@detalis horizontalAligmentText Horizontal alignment. ///@detalis horizontalAligmentText Horizontal alignment.
...@@ -39,9 +41,9 @@ Button { ...@@ -39,9 +41,9 @@ Button {
///@detalis colorTextButton This property overrides the color of the text. ///@detalis colorTextButton This property overrides the color of the text.
property alias colorTextButton: templateText.color property alias colorTextButton: templateText.color
///@detalis borderColorButton Sets the color of the border. ///@detalis borderColorButton Sets the color of the border.
property string borderColorButton: "#000000" property string borderColorButton
///@detalis borderWidthButton Sets the width of the border. ///@detalis borderWidthButton Sets the width of the border.
property int borderWidthButton: 0 property int borderWidthButton
id: dapButton id: dapButton
...@@ -61,7 +63,7 @@ Button { ...@@ -61,7 +63,7 @@ Button {
horizontalAlignment: Qt.AlignRight horizontalAlignment: Qt.AlignRight
anchors.rightMargin: indentTextRight anchors.rightMargin: indentTextRight
font.pixelSize: fontSizeButton font.pixelSize: fontSizeButton
font.family: "Roboto" font.family: fontFamily
font.weight: Font.Normal font.weight: Font.Normal
color: dapButton.hovered ? colorButtonTextHover : colorButtonTextNormal color: dapButton.hovered ? colorButtonTextHover : colorButtonTextNormal
text: qsTr(textButton) text: qsTr(textButton)
......
...@@ -27,7 +27,7 @@ DapComboBoxForm ...@@ -27,7 +27,7 @@ DapComboBoxForm
anchors.fill: parent anchors.fill: parent
anchors.topMargin: paddingTopItemDelegate anchors.topMargin: paddingTopItemDelegate
anchors.leftMargin: popup.visible ? sidePaddingActive : sidePaddingNormal anchors.leftMargin: popup.visible ? sidePaddingActive : sidePaddingNormal
font.family: "Roboto" font.family: fontFamily
font.pixelSize: fontSizeComboBox font.pixelSize: fontSizeComboBox
text: if(index != currentIndex) text: if(index != currentIndex)
return modelData; return modelData;
...@@ -40,12 +40,12 @@ DapComboBoxForm ...@@ -40,12 +40,12 @@ DapComboBoxForm
background: Rectangle { background: Rectangle {
anchors.fill: parent anchors.fill: parent
anchors.bottomMargin: { anchors.bottomMargin: {
if(index == countComboBox - 2) if(index == count - 2)
{ {
if(index+1 == currentIndex) return bottomIntervalListElement if(index+1 == currentIndex) return bottomIntervalListElement
else return intervalListElement else return intervalListElement
} }
if (index == countComboBox - 1) return bottomIntervalListElement if (index == count - 1) return bottomIntervalListElement
return intervalListElement return intervalListElement
} }
color: hovered ? hilightColor : normalColor color: hovered ? hilightColor : normalColor
......
...@@ -5,70 +5,70 @@ import QtGraphicalEffects 1.0 ...@@ -5,70 +5,70 @@ import QtGraphicalEffects 1.0
ComboBox { ComboBox {
///@detalis normalColorText Text color in normal state. ///@detalis normalColorText Text color in normal state.
property string normalColorText: "#070023" property string normalColorText
///@detalis hilightColorText Text color in selected state. ///@detalis hilightColorText Text color in selected state.
property string hilightColorText: "#FFFFFF" property string hilightColorText
///@detalis normalColorTopText Text color in the main line in normal state. ///@detalis normalColorTopText Text color in the main line in normal state.
property string normalColorTopText: normalColorText property string normalColorTopText
///@detalis hilightColorTopText Text color in the main line in active state. ///@detalis hilightColorTopText Text color in the main line in active state.
property string hilightColorTopText: normalColorText property string hilightColorTopText
///@detalis normalColor Item color in normal state. ///@detalis normalColor Item color in normal state.
property string normalColor: "#FFFFFF" property string normalColor
///@detalis hilightColor Item color in selected state. ///@detalis hilightColor Item color in selected state.
property string hilightColor: "#330F54" property string hilightColor
///@detalis normalTopColor Top string color in normal state. ///@detalis normalTopColor Top string color in normal state.
property string normalTopColor: normalColor property string normalTopColor
///@detalis hilightTopColor Top string color in selected state. ///@detalis hilightTopColor Top string color in selected state.
property string hilightTopColor: normalColor property string hilightTopColor
///@detalis fontSizeComboBox Font size for the entire widget. ///@detalis fontSizeComboBox Font size for the entire widget.
property int fontSizeComboBox: 16 * pt property int fontSizeComboBox
///@detalis fontFamely Font family ComboBox.
property string fontFamily
///@detalis widthPopupComboBoxNormal Width of the combo box in the normal state. ///@detalis widthPopupComboBoxNormal Width of the combo box in the normal state.
property int widthPopupComboBoxNormal: parent.width property int widthPopupComboBoxNormal
///@detalis widthPopupComboBoxActive Width of the ComboBox in the active state. ///@detalis widthPopupComboBoxActive Width of the ComboBox in the active state.
property int widthPopupComboBoxActive: widthPopupComboBoxNormal property int widthPopupComboBoxActive
///@detalis heightComboBoxNormal Height of the ComboBox in the normal state. ///@detalis heightComboBoxNormal Height of the ComboBox in the normal state.
property int heightComboBoxNormal: parent.height property int heightComboBoxNormal
///@detalis heightComboBoxActive Height of the ComboBox in the active state. ///@detalis heightComboBoxActive Height of the ComboBox in the active state.
property int heightComboBoxActive: heightComboBoxNormal property int heightComboBoxActive
///@detalis sidePaddingNormal: Sets the indent from the edge of the right and left edges of the parent in the normal state. ///@detalis sidePaddingNormal: Sets the indent from the edge of the right and left edges of the parent in the normal state.
property int sidePaddingNormal: 16 * pt property int sidePaddingNormal
///@detalis sidePaddingActive Sets the indent from the edge of the right and left edges of the parent in the active state. ///@detalis sidePaddingActive Sets the indent from the edge of the right and left edges of the parent in the active state.
property int sidePaddingActive: sidePaddingNormal property int sidePaddingActive
///@detalis topIndentNormal Sets the indent from the edge of the upper of the parent in the normal state. ///@detalis topIndentNormal Sets the indent from the edge of the upper of the parent in the normal state.
property int topIndentNormal: 12 * pt property int topIndentNormal
///@detalis topIndentActive Sets the indent from the edge of the upper of the parent in the active state. ///@detalis topIndentActive Sets the indent from the edge of the upper of the parent in the active state.
property int topIndentActive: topIndentNormal property int topIndentActive
///@detalis bottomIndentNormal Sets the indent from the edge of the lower of the parent in the normal state. ///@detalis bottomIndentNormal Sets the indent from the edge of the lower of the parent in the normal state.
property int bottomIndentNormal: 14 * pt property int bottomIndentNormal
///@detalis bottomIndentActive Sets the indent from the edge of the lower of the parent in the active state. ///@detalis bottomIndentActive Sets the indent from the edge of the lower of the parent in the active state.
property int bottomIndentActive: bottomIndentNormal property int bottomIndentActive
///@detalis paddingTopItemDelegate Indent above from item delegate. ///@detalis paddingTopItemDelegate Indent above from item delegate.
property int paddingTopItemDelegate: 8 * pt property int paddingTopItemDelegate
///@detalis paddingBottomItemDelegate Indent below from item delegate. ///@detalis paddingBottomItemDelegate Indent below from item delegate.
property int paddingBottomItemDelegate: paddingTopItemDelegate property int paddingBottomItemDelegate
///@detalis heightListElement List item height. ///@detalis heightListElement List item height.
property int heightListElement: 32 * pt property int heightListElement
///@detalis intervalListElement Spacing between items in a list. ///@detalis intervalListElement Spacing between items in a list.
property int intervalListElement: 10 * pt property int intervalListElement
///@detalis bottomIntervalListElement Spacing from bottom to bottom. ///@detalis bottomIntervalListElement Spacing from bottom to bottom.
property int bottomIntervalListElement: intervalListElement property int bottomIntervalListElement
///@detalis topEffect Using an effect for the top element. ///@detalis topEffect Using an effect for the top element.
property bool topEffect: true property bool topEffect
///@detalis indicatorImageNormal Indicator picture address for normal state. ///@detalis indicatorImageNormal Indicator picture address for normal state.
property string indicatorImageNormal: "qrc:/res/icons/ic_arrow_drop_down_dark_blue.png" property string indicatorImageNormal
///@detalis indicatorImageActive Indicator picture address for active state. ///@detalis indicatorImageActive Indicator picture address for active state.
property string indicatorImageActive: "qrc:/res/icons/ic_arrow_drop_up_dark_blue.png" property string indicatorImageActive
///@detalis indicatorWidth Indicator width. ///@detalis indicatorWidth Indicator width.
property int indicatorWidth: 24 * pt property int indicatorWidth
///@detalis indicatorHeight Indicator height. ///@detalis indicatorHeight Indicator height.
property int indicatorHeight: indicatorWidth property int indicatorHeight
/// colorTopNormalDropShadow Color of the shadow effect of the combo box when minimized. /// colorTopNormalDropShadow Color of the shadow effect of the combo box when minimized.
property string colorTopNormalDropShadow: "#00000000" property string colorTopNormalDropShadow
///@detalis colorDropShadow Unboxed shadow color in expanded state. ///@detalis colorDropShadow Unboxed shadow color in expanded state.
property string colorDropShadow: "#40ABABAB" property string colorDropShadow
///@detalis countComboBox this variable indicates the number of lines in the list for
///the delegate in the file DapComboBox.qml.
property int countComboBox: customComboBox.count
id: customComboBox id: customComboBox
width: popup.visible ? widthPopupComboBoxActive : widthPopupComboBoxNormal width: popup.visible ? widthPopupComboBoxActive : widthPopupComboBoxNormal
...@@ -97,7 +97,7 @@ ComboBox { ...@@ -97,7 +97,7 @@ ComboBox {
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: popup.visible ? sidePaddingActive : sidePaddingNormal anchors.leftMargin: popup.visible ? sidePaddingActive : sidePaddingNormal
text: parent.displayText text: parent.displayText
font.family: "Roboto" font.family: fontFamily
font.pixelSize: fontSizeComboBox font.pixelSize: fontSizeComboBox
color: popup.visible ? hilightColorTopText : normalColorTopText color: popup.visible ? hilightColorTopText : normalColorTopText
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
......
...@@ -16,19 +16,19 @@ RadioButton ...@@ -16,19 +16,19 @@ RadioButton
///@detalis backgroundColor RadioButton background color ///@detalis backgroundColor RadioButton background color
property alias backgroundColor:backgroundColor.color property alias backgroundColor:backgroundColor.color
///@detalis spaceIndicatorText The gap between the indicator and the text. ///@detalis spaceIndicatorText The gap between the indicator and the text.
property int spaceIndicatorText: 15 * pt property int spaceIndicatorText
///@detalis indicatorBorderColor Border color indicator. ///@detalis indicatorBorderColor Border color indicator.
property string indicatorBorderColor:"#3E3853" property string indicatorBorderColor
///@detalis indicatorBackgroundColor Background color indicator. ///@detalis indicatorBackgroundColor Background color indicator.
property string indicatorBackgroundColor:"transparent" property string indicatorBackgroundColor
///@detalis indicatorInnerColorActiv Color of the inner circle in checked condition. ///@detalis indicatorInnerColorActiv Color of the inner circle in checked condition.
property string indicatorInnerColorActiv:indicatorBorderColor property string indicatorInnerColorActiv
///@detalis indicatorInnerColorNormal Color of the inner circle in normal condition. ///@detalis indicatorInnerColorNormal Color of the inner circle in normal condition.
property string indicatorInnerColorNormal:indicatorBackgroundColor property string indicatorInnerColorNormal
///@detalis indicatorSize The size of the main circle of the indicator. ///@detalis indicatorSize The size of the main circle of the indicator.
property int indicatorSize: 25 * pt property int indicatorSize
///@detalis indicatorInnerSize The size of the inner circle of the indicator. ///@detalis indicatorInnerSize The size of the inner circle of the indicator.
property int indicatorInnerSize: 15 * pt property int indicatorInnerSize
id: customRadioButton id: customRadioButton
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment