Topic area, power level text: fix disabled opacity

This commit is contained in:
miruka 2020-07-17 05:29:25 -04:00
parent 504f917b40
commit 7f478efc40
6 changed files with 11 additions and 6 deletions

View File

@ -2,8 +2,6 @@
- global presence control
- fix HLabeledItem disabled opacity
(visible for the topic area in room settings)
- fix members not synced bug
- fix local unread counters order
- fix power level control button layout when apply button is loading

View File

@ -7,6 +7,7 @@ HColumnLayout {
default property alias insideData: itemHolder.data
property bool loading: false
property real elementsOpacity: item.opacity
readonly property Item item: itemHolder.children[0]
readonly property alias label: label
@ -21,7 +22,7 @@ HColumnLayout {
HLabel {
id: label
opacity: item.opacity
opacity: elementsOpacity
wrapMode: HLabel.Wrap
Layout.fillWidth: true
@ -29,7 +30,7 @@ HColumnLayout {
HIcon {
svgName: "field-tooltip-available"
opacity: item.opacity
opacity: elementsOpacity
visible: toolTip.text
Binding on colorize {
@ -75,7 +76,7 @@ HColumnLayout {
HLabel {
id: errorLabel
opacity: item.opacity
opacity: elementsOpacity
visible: Layout.maximumHeight > 0
wrapMode: HLabel.Wrap
color: theme.colors.errorText

View File

@ -56,6 +56,7 @@ TextArea {
id: textAreaBackground
radius: theme.radius
color: theme.controls.textArea.background
opacity: textArea.opacity
border.width: bordered ? theme.controls.textArea.borderWidth : 0
border.color: borderColor

View File

@ -18,6 +18,8 @@ AutoDirectionLayout {
readonly property bool fieldOverMaximum:
parseInt(field.text || "0", 10) > maximumLevel
readonly property alias field: field
signal accepted()
function reset() { field.reset() }

View File

@ -163,6 +163,8 @@ HListView {
HLabeledItem {
id: powerLevel
elementsOpacity: item.field.opacity
Component.onCompleted: mainUI.debugConsole.toggle(this )
enabled:
root.canSetPowerLevels &&
(

View File

@ -109,6 +109,8 @@ HFlickableColumnPage {
HLabeledItem {
id: topicArea
elementsOpacity: topicAreaIn.opacity
enabled: chat.roomInfo.can_set_topic
label.text: qsTr("Topic:")
Layout.fillWidth: true
@ -125,7 +127,6 @@ HFlickableColumnPage {
id: topicAreaIn
placeholderText: qsTr("This room is about...")
defaultText: chat.roomInfo.plain_topic
enabled: chat.roomInfo.can_set_topic
focusItemOnTab:
encryptCheckBox.checked ?