generated from wm-packages/pika-hyprland-settings
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
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 36s
This commit is contained in:
parent
3bc4f51c0d
commit
e05e6d5c46
2
.github/release-nest-v3
vendored
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
|||||||
2
|
1
|
@ -1,4 +1,4 @@
|
|||||||
pikabar (1.0.0-101pika3) pika; urgency=medium
|
pikabar (1.0.0-101pika4) pika; urgency=medium
|
||||||
|
|
||||||
* Font fixes
|
* Font fixes
|
||||||
|
|
||||||
|
@ -2,18 +2,28 @@ import QtQuick
|
|||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
|
import "root:/"
|
||||||
|
|
||||||
RowLayout {
|
Row {
|
||||||
|
|
||||||
spacing: 10
|
spacing: 10
|
||||||
|
|
||||||
SimpleImage {
|
SimpleImage {
|
||||||
|
height: 42
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
implicitWidth: parent.height / 2
|
implicitWidth: parent.height / 2
|
||||||
source: ToplevelManager.activeToplevel ? Quickshell.iconPath(ToplevelManager.activeToplevel.appId) : ""
|
source: ToplevelManager.activeToplevel ? Quickshell.iconPath(ToplevelManager.activeToplevel.appId) : ""
|
||||||
}
|
}
|
||||||
|
|
||||||
WidgetText {
|
Text {
|
||||||
id: text
|
id: text
|
||||||
|
height: 42
|
||||||
text: ToplevelManager.activeToplevel?.title ?? ""
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user