Advertisement
Dmitriiiiiqiq

TableStakeControlsPanel.qml

Mar 3rd, 2023
2,157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 2.36 KB | None | 0 0
  1. import QtQuick
  2. import "../../../../../base_qml/common/forms/table/components"
  3. import "../../../../../qml/common/controls"
  4.  
  5. TableStakeControlsPanel_skin1 {
  6.     useStakeFieldFormattedValueCurrencyUnit: false
  7.  
  8.     defaultWidth: 364.0
  9.     defaultHeight: 28.0
  10.  
  11.     defaultSliderHeight: 24
  12.  
  13.     defaultRightOffset: 8.0
  14.     defaultBottomOffset: 40.0
  15.  
  16.     defaultStakeTextFieldWidth: 52.0
  17.     defaultStakeTextFieldHeight: 22.0
  18.     defaultStakeTextFieldBackgroundRadius: 4.0
  19.  
  20.     defaultSliderTopOffset: 0.0
  21.  
  22.     stakeControlsFormBackground.source: ""
  23.  
  24.     sliderBgImage.source: Qt.resolvedUrl( "../controls/images/slider-bg.svg" )
  25.  
  26.     sliderHandleImage.source: Qt.resolvedUrl( "../controls/images/slider-handle.png" )
  27.  
  28.     sliderProgressBarImage.source: Qt.resolvedUrl( "../controls/images/slider-progress-bar.svg" )
  29.     sliderProgressBarImage.anchors.bottom: undefined
  30.  
  31.     sliderProgressBarAllInImage.source: Qt.resolvedUrl( "../controls/images/slider-progress-bar-all-in.svg" )
  32.     sliderProgressBarAllInImage.anchors.bottom: undefined
  33.  
  34.     stakeTextField.anchors.horizontalCenter: undefined
  35.     stakeTextField.anchors.right: stakeSlider.left
  36.     stakeTextField.anchors.rightMargin: Math.floor(4.0 * scaleFactor)
  37.  
  38.     stakeTextField.backgroundColor: Qt.alpha( "#FFFFFF", 0.1 )
  39.     stakeTextField.backgroundBorderColor: "#D4A800"
  40.     stakeTextField.backgroundBorderColorActiveFocus: "#D4A800"
  41.     stakeTextField.cursorDelegateColor: "#D4A800"
  42.     stakeTextField.backgroundBorderWidth: Math.floor( 1.0 * scaleFactor )
  43.     stakeTextField.backgroundRadius: Math.floor( 4.0 * scaleFactor )
  44.  
  45.     stakeTextField.leftPadding: stakeTextField.rz.sw( stakeTextField.sizeStyles.textFieldLeftPadding / 2 )
  46.     stakeTextField.rightPadding: stakeTextField.rz.sw( stakeTextField.sizeStyles.textFieldRightPadding / 2 )
  47.  
  48.     stakeSlider.anchors.horizontalCenter: undefined
  49.  
  50.     stakeSlider.wheelEnabled: true
  51.  
  52.     changeCashButtonsPanelLoader.anchors.left: changeCashButtonsPanelLoader.parent.left
  53.     onChangeCashButtonsPanelChanged: {
  54.         if( changeCashButtonsPanel )
  55.         {
  56.             changeCashButtonsPanel.changeCashButtonsLayout.rows = 1;
  57.             changeCashButtonsPanel.changeCashButtonsLayout.columns =
  58.                 Qt.binding( function() { return changeCashButtonsPanel ? changeCashButtonsPanel.changeCashButtonRepeater.model : 1; } );
  59.         }
  60.     }
  61. }
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement