Use the new FishUI API
This commit is contained in:
parent
eb78ab1cb6
commit
c0a9b4bda9
3 changed files with 9 additions and 7 deletions
|
@ -87,8 +87,8 @@ Item {
|
||||||
ColorOverlay {
|
ColorOverlay {
|
||||||
anchors.fill: _icon
|
anchors.fill: _icon
|
||||||
source: _icon
|
source: _icon
|
||||||
color: Qt.lighter(FishUI.Theme.highlightColor, 1.6)
|
color: "white"
|
||||||
opacity: FishUI.Theme.darkMode ? 0.4 : 0.6
|
opacity: FishUI.Theme.darkMode ? 0.3 : 0.4
|
||||||
visible: control.hovered && !control.selected
|
visible: control.hovered && !control.selected
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -121,8 +121,8 @@ Item {
|
||||||
ColorOverlay {
|
ColorOverlay {
|
||||||
anchors.fill: _image
|
anchors.fill: _image
|
||||||
source: _image
|
source: _image
|
||||||
color: Qt.lighter(FishUI.Theme.highlightColor, 1.6)
|
color: "white"
|
||||||
opacity: FishUI.Theme.darkMode ? 0.4 : 0.6
|
opacity: FishUI.Theme.darkMode ? 0.3 : 0.4
|
||||||
visible: control.hovered && !control.selected
|
visible: control.hovered && !control.selected
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,8 @@ GridView {
|
||||||
|
|
||||||
signal keyPress(var event)
|
signal keyPress(var event)
|
||||||
|
|
||||||
|
cacheBuffer: Math.max(0, contentHeight)
|
||||||
|
|
||||||
onIconSizeChanged: {
|
onIconSizeChanged: {
|
||||||
// 图标大小改变时需要重置状态,否则选中定位不准确
|
// 图标大小改变时需要重置状态,否则选中定位不准确
|
||||||
positioner.reset()
|
positioner.reset()
|
||||||
|
|
|
@ -34,8 +34,8 @@ FishUI.Window {
|
||||||
visible: true
|
visible: true
|
||||||
title: qsTr("File Manager")
|
title: qsTr("File Manager")
|
||||||
|
|
||||||
headerBarHeight: 35 + FishUI.Units.smallSpacing * 3
|
header.height: 35 + FishUI.Units.smallSpacing * 3
|
||||||
backgroundColor: FishUI.Theme.darkMode ? "#262626" : "#F3F4F9"
|
background.color: FishUI.Theme.darkMode ? "#262626" : "#F3F4F9"
|
||||||
|
|
||||||
property QtObject settings: GlobalSettings { }
|
property QtObject settings: GlobalSettings { }
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ FishUI.Window {
|
||||||
id: optionsMenu
|
id: optionsMenu
|
||||||
}
|
}
|
||||||
|
|
||||||
headerBar: Item {
|
headerItem: Item {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.leftMargin: FishUI.Units.smallSpacing * 1.5
|
anchors.leftMargin: FishUI.Units.smallSpacing * 1.5
|
||||||
|
|
Loading…
Reference in a new issue