mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #8676 from mike0609king/issue8221
fix(activityItemContent): make text color light on activityItem activeFocus
This commit is contained in:
commit
7ec126ff78
@ -41,6 +41,8 @@ ItemDelegate {
|
||||
ActivityItemContent {
|
||||
id: activityContent
|
||||
|
||||
adaptiveTextColor: root.activeFocus ? palette.highlightedText : palette.text
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.minimumHeight: Style.minActivityHeight
|
||||
Layout.preferredWidth: parent.width
|
||||
|
||||
@ -14,6 +14,8 @@ import com.nextcloud.desktopclient
|
||||
RowLayout {
|
||||
id: root
|
||||
|
||||
required property color adaptiveTextColor
|
||||
|
||||
property variant activityData: {{}}
|
||||
|
||||
property variant activity: {{}}
|
||||
@ -141,6 +143,7 @@ RowLayout {
|
||||
maximumLineCount: 2
|
||||
font.pixelSize: Style.topLinePixelSize
|
||||
visible: text !== ""
|
||||
color: root.adaptiveTextColor
|
||||
}
|
||||
|
||||
Item {
|
||||
@ -157,6 +160,7 @@ RowLayout {
|
||||
text: root.activityData.dateTime
|
||||
font.pixelSize: Style.subLinePixelSize
|
||||
visible: text !== ""
|
||||
color: root.adaptiveTextColor
|
||||
}
|
||||
|
||||
Row {
|
||||
@ -228,6 +232,7 @@ RowLayout {
|
||||
maximumLineCount: 2
|
||||
font.pixelSize: Style.subLinePixelSize
|
||||
visible: text !== ""
|
||||
color: root.adaptiveTextColor
|
||||
}
|
||||
|
||||
Item {
|
||||
@ -248,6 +253,7 @@ RowLayout {
|
||||
maximumLineCount: 2
|
||||
font.pixelSize: Style.topLinePixelSize
|
||||
visible: text !== ""
|
||||
color: root.adaptiveTextColor
|
||||
}
|
||||
|
||||
ActivityItemActions {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user