Small fix of minimized player getting covered by 1 pixel

This commit is contained in:
Bart De Vries 2021-11-05 11:51:26 +01:00
parent 8c8a3a91d6
commit eb13598dd4
2 changed files with 4 additions and 4 deletions

View File

@ -16,10 +16,10 @@ import org.kde.kirigami 2.12 as Kirigami
import org.kde.kasts 1.0
Item {
property int miniplayerheight: Math.round(Kirigami.Units.gridUnit * 3)
property int miniplayerheight: Kirigami.Units.gridUnit * 3
property int progressbarheight: Kirigami.Units.gridUnit / 6
property int buttonsize: Kirigami.Units.gridUnit * 1.5
height: miniplayerheight
height: miniplayerheight + progressbarheight
visible: AudioManager.entry

View File

@ -22,7 +22,7 @@ Kirigami.ApplicationWindow {
minimumWidth: Kirigami.Units.gridUnit * 17
minimumHeight: Kirigami.Units.gridUnit * 20
property var miniplayerSize: Math.round(Kirigami.Units.gridUnit * 3) + Kirigami.Units.gridUnit / 6
property var miniplayerSize: Kirigami.Units.gridUnit * 3 + Kirigami.Units.gridUnit / 6
property int bottomMessageSpacing: {
if (Kirigami.Settings.isMobile) {
return Kirigami.Units.largeSpacing + ( AudioManager.entry ? ( footerLoader.item.contentY == 0 ? miniplayerSize : 0 ) : 0 )
@ -198,7 +198,7 @@ Kirigami.ApplicationWindow {
// create space at the bottom to show miniplayer without it hiding stuff
// underneath
pageStack.anchors.bottomMargin: (AudioManager.entry && Kirigami.Settings.isMobile) ? miniplayerSize : 0
pageStack.anchors.bottomMargin: (AudioManager.entry && Kirigami.Settings.isMobile) ? miniplayerSize + 1 : 0
Loader {
id: footerLoader