mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 12:54:30 +00:00
CheckBox: add enabled property
This commit is contained in:
parent
585fb2810d
commit
a810bf3eb7
2 changed files with 4 additions and 1 deletions
|
@ -74,7 +74,7 @@ Item {
|
||||||
visible: checkBox.border
|
visible: checkBox.border
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: 3
|
radius: 3
|
||||||
color: "transparent"
|
color: checkBox.enabled ? "transparent" : MoneroComponents.Style.inputBoxBackgroundDisabled
|
||||||
border.color:
|
border.color:
|
||||||
if(checkBox.checked){
|
if(checkBox.checked){
|
||||||
return MoneroComponents.Style.inputBorderColorActive;
|
return MoneroComponents.Style.inputBorderColorActive;
|
||||||
|
|
|
@ -29,6 +29,7 @@ QtObject {
|
||||||
property string textSelectedColor: blackTheme ? _b_textSelectedColor : _w_textSelectedColor
|
property string textSelectedColor: blackTheme ? _b_textSelectedColor : _w_textSelectedColor
|
||||||
|
|
||||||
property string inputBoxBackground: blackTheme ? _b_inputBoxBackground : _w_inputBoxBackground
|
property string inputBoxBackground: blackTheme ? _b_inputBoxBackground : _w_inputBoxBackground
|
||||||
|
property string inputBoxBackgroundDisabled: blackTheme ? _b_inputBoxBackgroundDisabled : _w_inputBoxBackgroundDisabled
|
||||||
property string inputBoxBackgroundError: blackTheme ? _b_inputBoxBackgroundError : _w_inputBoxBackgroundError
|
property string inputBoxBackgroundError: blackTheme ? _b_inputBoxBackgroundError : _w_inputBoxBackgroundError
|
||||||
property string inputBoxColor: blackTheme ? _b_inputBoxColor : _w_inputBoxColor
|
property string inputBoxColor: blackTheme ? _b_inputBoxColor : _w_inputBoxColor
|
||||||
property string legacy_placeholderFontColor: blackTheme ? _b_legacy_placeholderFontColor : _w_legacy_placeholderFontColor
|
property string legacy_placeholderFontColor: blackTheme ? _b_legacy_placeholderFontColor : _w_legacy_placeholderFontColor
|
||||||
|
@ -88,6 +89,7 @@ QtObject {
|
||||||
property string _b_textSelectedColor: "white"
|
property string _b_textSelectedColor: "white"
|
||||||
|
|
||||||
property string _b_inputBoxBackground: "black"
|
property string _b_inputBoxBackground: "black"
|
||||||
|
property string _b_inputBoxBackgroundDisabled: Qt.rgba(255, 255, 255, 0.10)
|
||||||
property string _b_inputBoxBackgroundError: "#FFDDDD"
|
property string _b_inputBoxBackgroundError: "#FFDDDD"
|
||||||
property string _b_inputBoxColor: "white"
|
property string _b_inputBoxColor: "white"
|
||||||
property string _b_legacy_placeholderFontColor: "#BABABA"
|
property string _b_legacy_placeholderFontColor: "#BABABA"
|
||||||
|
@ -144,6 +146,7 @@ QtObject {
|
||||||
property string _w_textSelectedColor: "black"
|
property string _w_textSelectedColor: "black"
|
||||||
|
|
||||||
property string _w_inputBoxBackground: "white"
|
property string _w_inputBoxBackground: "white"
|
||||||
|
property string _w_inputBoxBackgroundDisabled: Qt.rgba(0, 0, 0, 0.20)
|
||||||
property string _w_inputBoxBackgroundError: "#FFDDDD"
|
property string _w_inputBoxBackgroundError: "#FFDDDD"
|
||||||
property string _w_inputBoxColor: "black"
|
property string _w_inputBoxColor: "black"
|
||||||
property string _w_legacy_placeholderFontColor: "#BABABA"
|
property string _w_legacy_placeholderFontColor: "#BABABA"
|
||||||
|
|
Loading…
Reference in a new issue