From 14ee6567f27deb005f96c05e293615e1c452bbcf Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Thu, 12 Sep 2024 20:54:09 +0200 Subject: [PATCH] Fix the color of the tab icons in the files details page. Signed-off-by: Camila Ayres --- src/gui/filedetails/FileDetailsPage.qml | 2 -- src/gui/filedetails/NCTabButton.qml | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gui/filedetails/FileDetailsPage.qml b/src/gui/filedetails/FileDetailsPage.qml index 231d4fc9e1eff..2c495bf6004c6 100644 --- a/src/gui/filedetails/FileDetailsPage.qml +++ b/src/gui/filedetails/FileDetailsPage.qml @@ -224,7 +224,6 @@ Page { NCTabButton { svgCustomColorSource: "image://svgimage-custom-color/activity.svg" text: qsTr("Activity") - accentColor: root.accentColor checked: swipeView.currentIndex === fileActivityView.swipeIndex onClicked: swipeView.currentIndex = fileActivityView.swipeIndex } @@ -234,7 +233,6 @@ Page { height: visible ? implicitHeight : 0 svgCustomColorSource: "image://svgimage-custom-color/share.svg" text: qsTr("Sharing") - accentColor: root.accentColor checked: swipeView.currentIndex === shareViewLoader.swipeIndex onClicked: swipeView.currentIndex = shareViewLoader.swipeIndex visible: root.fileDetails.sharingAvailable diff --git a/src/gui/filedetails/NCTabButton.qml b/src/gui/filedetails/NCTabButton.qml index c06f73ff233a2..2f53254489e05 100644 --- a/src/gui/filedetails/NCTabButton.qml +++ b/src/gui/filedetails/NCTabButton.qml @@ -25,7 +25,6 @@ TabButton { id: tabButton property string svgCustomColorSource: "" - property color accentColor: Style.ncBlue padding: Style.smallSpacing background: Rectangle { @@ -36,7 +35,7 @@ TabButton { contentItem: ColumnLayout { id: tabButtonLayout - property var elementColors: tabButton.checked || tabButton.hovered ? palette.buttonText : palette.midlight + property var elementColors: tabButton.checked || tabButton.hovered ? palette.buttonText : palette.windowText // We'd like to just set the height of the Image, but this causes crashing. // So we use a wrapping Item and use anchors to adjust the size. @@ -82,7 +81,7 @@ TabButton { implicitWidth: textWidth + Style.standardSpacing * 2 implicitHeight: 2 - color: tabButton.checked ? tabButton.accentColor : tabButton.hovered ? palette.highlight : palette.base + color: tabButton.checked || tabButton.hovered ? palette.highlight : palette.base } } }