Update changelog for v1.0.0-101pika9; optimize widget dimensions in ActiveWindow and NowPlaying for better fit on laptops
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 49s

This commit is contained in:
ferreo 2024-11-17 23:46:10 +00:00
parent d140e68443
commit 320851a086
4 changed files with 12 additions and 6 deletions

View File

@ -1 +1 @@
1
2

View File

@ -1,3 +1,9 @@
pikabar (1.0.0-101pika9) pika; urgency=medium
* Fit laptops better when scaled
-- ferrreo <harderthanfire@gmail.com> Sat, 01 Oct 2022 14:50:00 +0300
pikabar (1.0.0-101pika8) pika; urgency=medium
* Another round of icon fixes

View File

@ -38,7 +38,7 @@ Row {
font.pointSize: Globals.commonStyles.smallTextFontSize
font.family: Globals.commonStyles.fontFamily
elide: Text.ElideRight
width: Math.min(implicitWidth, 300)
width: Math.min(implicitWidth, 200)
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}

View File

@ -51,8 +51,8 @@ BarWidget {
property double measuredWidth: {
if (!root.player)
return 0;
let titleWidth = Math.min(titleText.width, 300);
let artistWidth = Math.min(artistText.width, 300);
let titleWidth = Math.min(titleText.width, 200);
let artistWidth = Math.min(artistText.width, 200);
return ((Math.max(titleWidth, artistWidth) / Screen.devicePixelRatio) + artContainer.width) * Screen.devicePixelRatio;
}
@ -166,7 +166,7 @@ BarWidget {
Text {
id: titleText
width: Math.min(implicitWidth, 300)
width: Math.min(implicitWidth, 200)
anchors.left: parent.left
anchors.bottom: parent.verticalCenter
anchors.bottomMargin: 2
@ -179,7 +179,7 @@ BarWidget {
Text {
id: artistText
width: Math.min(implicitWidth, 300)
width: Math.min(implicitWidth, 200)
anchors.left: parent.left
anchors.top: parent.verticalCenter
anchors.topMargin: 2