nextcloud-desktop/src/gui/tray/HeaderButton.qml
Camila cfbd22b5e7
Use the icon color property to color the icons in the tray window header.
The icon color is set with APPLICATION_WIZARD_HEADER_TITLE_COLOR in the
theme.

Signed-off-by: Camila <hello@camila.codes>
2020-12-10 17:43:45 +01:00

31 lines
762 B
QML

import QtQml 2.1
import QtQml.Models 2.1
import QtQuick 2.9
import QtQuick.Window 2.3
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.2
import QtGraphicalEffects 1.0
// Custom qml modules are in /theme (and included by resources.qrc)
import Style 1.0
Button {
id: root
display: AbstractButton.IconOnly
flat: true
hoverEnabled: Style.hoverEffectsEnabled
icon.width: Style.headerButtonIconSize
icon.height: Style.headerButtonIconSize
icon.color: Style.ncTextColor
Layout.alignment: Qt.AlignRight
Layout.preferredWidth: Style.trayWindowHeaderHeight
Layout.preferredHeight: Style.trayWindowHeaderHeight
background: Rectangle {
color: root.hovered ? "white" : "transparent"
opacity: 0.2
}
}