mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-20 04:41:51 +03:00
cfbd22b5e7
The icon color is set with APPLICATION_WIZARD_HEADER_TITLE_COLOR in the theme. Signed-off-by: Camila <hello@camila.codes>
31 lines
762 B
QML
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
|
|
}
|
|
}
|