Skip to content

Commit

Permalink
Remove more color customizations from Window and TrayFoldersMenuButton.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Sep 3, 2024
1 parent 5ab462b commit 3d8e26e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
10 changes: 4 additions & 6 deletions src/gui/tray/TrayFoldersMenuButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ HeaderButton {
width: Style.folderStateIndicatorSize + Style.trayFolderStatusIndicatorSizeOffset
height: width
anchors.centerIn: parent
color: Style.currentUserHeaderColor
radius: width * Style.trayFolderStatusIndicatorRadiusFactor
z: -2
}
Expand All @@ -101,7 +100,6 @@ HeaderButton {
width: Style.folderStateIndicatorSize + Style.trayFolderStatusIndicatorSizeOffset
height: width
anchors.centerIn: parent
color: root.hovered ? Style.currentUserHeaderTextColor : palette.window
opacity: Style.trayFolderStatusIndicatorMouseHoverOpacityFactor
radius: width * Style.trayFolderStatusIndicatorRadiusFactor
z: -1
Expand All @@ -116,7 +114,7 @@ HeaderButton {

cache: true

source: "image://svgimage-custom-color/folder.svg/" + Style.currentUserHeaderTextColor
source: "image://svgimage-custom-color/folder.svg/"
sourceSize {
width: imageWidth
height: imageHeight
Expand Down Expand Up @@ -146,7 +144,7 @@ HeaderButton {

cache: true

source: "image://svgimage-custom-color/caret-down.svg/" + Style.currentUserHeaderTextColor
source: "image://svgimage-custom-color/caret-down.svg/"
sourceSize {
width: openLocalFolderButtonCaretIconLoader.imageWidth
height: openLocalFolderButtonCaretIconLoader.imageHeight
Expand Down Expand Up @@ -210,9 +208,9 @@ HeaderButton {
subline: model.modelData.parentPath
width: foldersMenuListView.width
height: Style.standardPrimaryButtonHeight
backgroundIconSource: "image://svgimage-custom-color/folder.svg/" + palette.buttonText
backgroundIconSource: "image://svgimage-custom-color/folder.svg/"
iconSource: isGroupFolder
? "image://svgimage-custom-color/account-group.svg/" + palette.brightText
? "image://svgimage-custom-color/account-group.svg/"
: ""

onTriggered: {
Expand Down
19 changes: 2 additions & 17 deletions src/gui/tray/Window.qml
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,6 @@ ApplicationWindow {

ColorOverlay {
cached: true
color: Style.currentUserHeaderTextColor
width: source.width
height: source.height
source: Image {
Expand Down Expand Up @@ -535,7 +534,6 @@ ApplicationWindow {
visible: currentUser.hasLocalFolder
currentUser: UserModel.currentUser


onClicked: openLocalFolderButton.userHasGroupFolders ? openLocalFolderButton.toggleMenuOpen() : UserModel.openCurrentAccountLocalFolder()

onFolderEntryTriggered: isGroupFolder ? UserModel.openCurrentAccountFolderFromTrayInfo(fullFolderPath) : UserModel.openCurrentAccountLocalFolder()
Expand All @@ -552,7 +550,7 @@ ApplicationWindow {
HeaderButton {
id: trayWindowFeaturedAppButton
visible: UserModel.currentUser.isFeaturedAppEnabled
icon.source: UserModel.currentUser.featuredAppIcon + "/" + Style.currentUserHeaderTextColor
icon.source: UserModel.currentUser.featuredAppIcon + "/"
onClicked: UserModel.openCurrentAccountFeaturedApp()

Accessible.role: Accessible.Button
Expand All @@ -566,7 +564,7 @@ ApplicationWindow {

HeaderButton {
id: trayWindowAppsButton
icon.source: "image://svgimage-custom-color/more-apps.svg" + "/" + Style.currentUserHeaderTextColor
icon.source: "image://svgimage-custom-color/more-apps.svg/"

onClicked: {
if(appsMenuListView.count <= 0) {
Expand Down Expand Up @@ -614,24 +612,11 @@ ApplicationWindow {
id: appEntry
anchors.left: parent.left
anchors.right: parent.right

text: model.appName
font.pixelSize: Style.topLinePixelSize
icon.source: model.appIconUrl
icon.color: palette.buttonText
onTriggered: UserAppsModel.openAppUrl(appUrl)
hoverEnabled: true

// background: Item {
// height: parent.height
// width: parent.width
// Rectangle {
// anchors.fill: parent
// anchors.margins: 1
// color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.window
// }
// }

Accessible.role: Accessible.MenuItem
Accessible.name: qsTr("Open %1 in browser").arg(model.appName)
Accessible.onPressAction: appEntry.triggered()
Expand Down

0 comments on commit 3d8e26e

Please sign in to comment.