Refactor ActiveWindow and replace WidgetText with Text; updated changelog for v1.0.0-101pika4 and adjusted UI elements
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 36s

This commit is contained in:
ferreo 2024-11-17 19:34:26 +00:00
parent 3bc4f51c0d
commit e05e6d5c46
4 changed files with 16 additions and 25 deletions

View File

@ -1 +1 @@
2
1

View File

@ -1,4 +1,4 @@
pikabar (1.0.0-101pika3) pika; urgency=medium
pikabar (1.0.0-101pika4) pika; urgency=medium
* Font fixes

View File

@ -2,18 +2,28 @@ import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Wayland
import "root:/"
RowLayout {
Row {
spacing: 10
SimpleImage {
height: 42
Layout.fillHeight: true
implicitWidth: parent.height / 2
source: ToplevelManager.activeToplevel ? Quickshell.iconPath(ToplevelManager.activeToplevel.appId) : ""
}
WidgetText {
Text {
id: text
height: 42
text: ToplevelManager.activeToplevel?.title ?? ""
color: Globals.commonStyles.textColor
font.pointSize: Globals.commonStyles.smallTextFontSize
font.family: Globals.commonStyles.fontFamily
elide: Text.ElideRight
width: Math.min(implicitWidth, 300)
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
}
}

View File

@ -1,19 +0,0 @@
import QtQuick
import "root:/"
Rectangle {
implicitWidth: children[0].implicitWidth
implicitHeight: children[0].implicitHeight
color: "transparent"
property alias text: t.text
property alias family: t.font.family
Text {
id: t
anchors.fill: parent
color: Globals.commonStyles.textColor
font.pointSize: 13
font.family: Globals.commonStyles.fontFamily
}
}