Topic area, power level text: fix disabled opacity
This commit is contained in:
		
							
								
								
									
										2
									
								
								TODO.md
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								TODO.md
									
									
									
									
									
								
							@@ -2,8 +2,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- global presence control
 | 
					- global presence control
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- fix HLabeledItem disabled opacity
 | 
					 | 
				
			||||||
  (visible for the topic area in room settings)
 | 
					 | 
				
			||||||
- fix members not synced bug
 | 
					- fix members not synced bug
 | 
				
			||||||
- fix local unread counters order
 | 
					- fix local unread counters order
 | 
				
			||||||
- fix power level control button layout when apply button is loading
 | 
					- fix power level control button layout when apply button is loading
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,6 +7,7 @@ HColumnLayout {
 | 
				
			|||||||
    default property alias insideData: itemHolder.data
 | 
					    default property alias insideData: itemHolder.data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    property bool loading: false
 | 
					    property bool loading: false
 | 
				
			||||||
 | 
					    property real elementsOpacity: item.opacity
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    readonly property Item item: itemHolder.children[0]
 | 
					    readonly property Item item: itemHolder.children[0]
 | 
				
			||||||
    readonly property alias label: label
 | 
					    readonly property alias label: label
 | 
				
			||||||
@@ -21,7 +22,7 @@ HColumnLayout {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        HLabel {
 | 
					        HLabel {
 | 
				
			||||||
            id: label
 | 
					            id: label
 | 
				
			||||||
            opacity: item.opacity
 | 
					            opacity: elementsOpacity
 | 
				
			||||||
            wrapMode: HLabel.Wrap
 | 
					            wrapMode: HLabel.Wrap
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Layout.fillWidth: true
 | 
					            Layout.fillWidth: true
 | 
				
			||||||
@@ -29,7 +30,7 @@ HColumnLayout {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        HIcon {
 | 
					        HIcon {
 | 
				
			||||||
            svgName: "field-tooltip-available"
 | 
					            svgName: "field-tooltip-available"
 | 
				
			||||||
            opacity: item.opacity
 | 
					            opacity: elementsOpacity
 | 
				
			||||||
            visible: toolTip.text
 | 
					            visible: toolTip.text
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Binding on colorize {
 | 
					            Binding on colorize {
 | 
				
			||||||
@@ -75,7 +76,7 @@ HColumnLayout {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    HLabel {
 | 
					    HLabel {
 | 
				
			||||||
        id: errorLabel
 | 
					        id: errorLabel
 | 
				
			||||||
        opacity: item.opacity
 | 
					        opacity: elementsOpacity
 | 
				
			||||||
        visible: Layout.maximumHeight > 0
 | 
					        visible: Layout.maximumHeight > 0
 | 
				
			||||||
        wrapMode: HLabel.Wrap
 | 
					        wrapMode: HLabel.Wrap
 | 
				
			||||||
        color: theme.colors.errorText
 | 
					        color: theme.colors.errorText
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -56,6 +56,7 @@ TextArea {
 | 
				
			|||||||
        id: textAreaBackground
 | 
					        id: textAreaBackground
 | 
				
			||||||
        radius: theme.radius
 | 
					        radius: theme.radius
 | 
				
			||||||
        color: theme.controls.textArea.background
 | 
					        color: theme.controls.textArea.background
 | 
				
			||||||
 | 
					        opacity: textArea.opacity
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        border.width: bordered ? theme.controls.textArea.borderWidth : 0
 | 
					        border.width: bordered ? theme.controls.textArea.borderWidth : 0
 | 
				
			||||||
        border.color: borderColor
 | 
					        border.color: borderColor
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,6 +18,8 @@ AutoDirectionLayout {
 | 
				
			|||||||
    readonly property bool fieldOverMaximum:
 | 
					    readonly property bool fieldOverMaximum:
 | 
				
			||||||
        parseInt(field.text || "0", 10) > maximumLevel
 | 
					        parseInt(field.text || "0", 10) > maximumLevel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    readonly property alias field: field
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    signal accepted()
 | 
					    signal accepted()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function reset() { field.reset() }
 | 
					    function reset() { field.reset() }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -163,6 +163,8 @@ HListView {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        HLabeledItem {
 | 
					        HLabeledItem {
 | 
				
			||||||
            id: powerLevel
 | 
					            id: powerLevel
 | 
				
			||||||
 | 
					            elementsOpacity: item.field.opacity
 | 
				
			||||||
 | 
					            Component.onCompleted: mainUI.debugConsole.toggle(this )
 | 
				
			||||||
            enabled:
 | 
					            enabled:
 | 
				
			||||||
                root.canSetPowerLevels &&
 | 
					                root.canSetPowerLevels &&
 | 
				
			||||||
                (
 | 
					                (
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -109,6 +109,8 @@ HFlickableColumnPage {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    HLabeledItem {
 | 
					    HLabeledItem {
 | 
				
			||||||
        id: topicArea
 | 
					        id: topicArea
 | 
				
			||||||
 | 
					        elementsOpacity: topicAreaIn.opacity
 | 
				
			||||||
 | 
					                enabled: chat.roomInfo.can_set_topic
 | 
				
			||||||
        label.text: qsTr("Topic:")
 | 
					        label.text: qsTr("Topic:")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Layout.fillWidth: true
 | 
					        Layout.fillWidth: true
 | 
				
			||||||
@@ -125,7 +127,6 @@ HFlickableColumnPage {
 | 
				
			|||||||
                id: topicAreaIn
 | 
					                id: topicAreaIn
 | 
				
			||||||
                placeholderText: qsTr("This room is about...")
 | 
					                placeholderText: qsTr("This room is about...")
 | 
				
			||||||
                defaultText: chat.roomInfo.plain_topic
 | 
					                defaultText: chat.roomInfo.plain_topic
 | 
				
			||||||
                enabled: chat.roomInfo.can_set_topic
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                focusItemOnTab:
 | 
					                focusItemOnTab:
 | 
				
			||||||
                    encryptCheckBox.checked ?
 | 
					                    encryptCheckBox.checked ?
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user