Use the new FishUI API

This commit is contained in:
reionwong 2021-06-23 12:37:42 +08:00
parent eb78ab1cb6
commit c0a9b4bda9
3 changed files with 9 additions and 7 deletions

View file

@ -87,8 +87,8 @@ Item {
ColorOverlay {
anchors.fill: _icon
source: _icon
color: Qt.lighter(FishUI.Theme.highlightColor, 1.6)
opacity: FishUI.Theme.darkMode ? 0.4 : 0.6
color: "white"
opacity: FishUI.Theme.darkMode ? 0.3 : 0.4
visible: control.hovered && !control.selected
}
}
@ -121,8 +121,8 @@ Item {
ColorOverlay {
anchors.fill: _image
source: _image
color: Qt.lighter(FishUI.Theme.highlightColor, 1.6)
opacity: FishUI.Theme.darkMode ? 0.4 : 0.6
color: "white"
opacity: FishUI.Theme.darkMode ? 0.3 : 0.4
visible: control.hovered && !control.selected
}

View file

@ -64,6 +64,8 @@ GridView {
signal keyPress(var event)
cacheBuffer: Math.max(0, contentHeight)
onIconSizeChanged: {
//
positioner.reset()

View file

@ -34,8 +34,8 @@ FishUI.Window {
visible: true
title: qsTr("File Manager")
headerBarHeight: 35 + FishUI.Units.smallSpacing * 3
backgroundColor: FishUI.Theme.darkMode ? "#262626" : "#F3F4F9"
header.height: 35 + FishUI.Units.smallSpacing * 3
background.color: FishUI.Theme.darkMode ? "#262626" : "#F3F4F9"
property QtObject settings: GlobalSettings { }
@ -51,7 +51,7 @@ FishUI.Window {
id: optionsMenu
}
headerBar: Item {
headerItem: Item {
RowLayout {
anchors.fill: parent
anchors.leftMargin: FishUI.Units.smallSpacing * 1.5