Skip to content

Commit

Permalink
fix: disabled lable and combobox opacity not changed
Browse files Browse the repository at this point in the history
set opacity of disabled item icon
  • Loading branch information
kegechen authored and deepin-bot[bot] committed Dec 17, 2024
1 parent 1f22466 commit 194a1da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/dde-control-center/frame/plugin/DccLabel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.15
import QtQuick.Controls 2.15
import org.deepin.dtk 1.0

Label {
id: root
Expand Down
2 changes: 1 addition & 1 deletion src/plugin-accounts/qml/AccountSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ DccObject {
displayName: qsTr("Acount type")
weight: 30
pageType: DccObject.Editor
enabled: dccData.isDeleteAble(settings.userId)
page: ComboBox {
flat: true
model: dccData.userTypes()
currentIndex: dccData.userType(settings.userId)
enabled: dccData.isDeleteAble(settings.userId)
onActivated: function (index) {
dccData.setUserType(settings.userId, index)
}
Expand Down
5 changes: 3 additions & 2 deletions src/plugin-accounts/qml/LoginMethod.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import org.deepin.dcc 1.0
import org.deepin.dtk 1.0 as D
import org.deepin.dtk 1.0

DccObject {
id: loginMethodTitle
Expand Down Expand Up @@ -100,8 +100,9 @@ DccObject {
Control {
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
Layout.rightMargin: 10
contentItem: D.IconLabel {
contentItem: IconLabel {
icon.name: "arrow_ordinary_right"
opacity: enabled ? 1 : 0.4
}
}
}
Expand Down

0 comments on commit 194a1da

Please sign in to comment.