some random fixes to quickshell

This commit is contained in:
2026-07-06 12:44:32 +02:00
parent b51fcfd99c
commit d77e692e75
12 changed files with 39 additions and 22 deletions
+1 -2
View File
@@ -2,5 +2,4 @@ file:///home/kolkas/Videos Videos
file:///home/kolkas/Repositories Repositories file:///home/kolkas/Repositories Repositories
file:///home/kolkas/Pictures Pictures file:///home/kolkas/Pictures Pictures
file:///home/kolkas/Desktop Desktop file:///home/kolkas/Desktop Desktop
file:///home/kolkas/Public/GRA%20Proj Next file:///media/Media Media
file:///home/kolkas/Public/GRA%20Proj/
@@ -10,7 +10,7 @@ ScrollView {
property color handleHoverColor: handleColor property color handleHoverColor: handleColor
property color handlePressedColor: handleColor property color handlePressedColor: handleColor
property color trackColor: "transparent" property color trackColor: "transparent"
property real handleWidth: Math.round(6 * Style.uiScaleRatio) property real handleWidth: 6
property real handleRadius: Style.radiusM property real handleRadius: Style.radiusM
property int verticalPolicy: ScrollBar.AsNeeded property int verticalPolicy: ScrollBar.AsNeeded
property int horizontalPolicy: ScrollBar.AsNeeded property int horizontalPolicy: ScrollBar.AsNeeded
@@ -25,6 +25,7 @@ Rectangle {
clip: true clip: true
UText { UText {
width: parent.width
text: LyricsService.isFetchingLyrics ? "Fetching..." : (LyricsService.lyrics.get(LyricsService.currentIndex)?.line ?? "No lyrics available") text: LyricsService.isFetchingLyrics ? "Fetching..." : (LyricsService.lyrics.get(LyricsService.currentIndex)?.line ?? "No lyrics available")
family: Fonts.sans family: Fonts.sans
pointSize: Style.fontSizeM pointSize: Style.fontSizeM
@@ -628,14 +628,19 @@ Variants {
spacing: Style.marginS spacing: Style.marginS
// Header with urgency indicator // Header with urgency indicator
RowLayout { Row {
id: notificationHeaderRow
Layout.fillWidth: true Layout.fillWidth: true
Layout.rightMargin: Style.marginXL
spacing: Style.marginS spacing: Style.marginS
Rectangle { Rectangle {
Layout.preferredWidth: 6 id: urgencyDot
Layout.preferredHeight: 6
Layout.alignment: Qt.AlignVCenter width: 6
height: 6
anchors.verticalCenter: parent.verticalCenter
radius: Style.radiusXS radius: Style.radiusXS
color: model.urgency === 2 ? Colors.mError : model.urgency === 0 ? Colors.mOnSurface : Colors.mPrimary color: model.urgency === 2 ? Colors.mError : model.urgency === 0 ? Colors.mOnSurface : Colors.mPrimary
} }
@@ -645,18 +650,18 @@ Variants {
pointSize: Style.fontSizeXS pointSize: Style.fontSizeXS
font.weight: Style.fontWeightBold font.weight: Style.fontWeightBold
color: Colors.mPrimary color: Colors.mPrimary
elide: Text.ElideRight
width: Math.max(0, Math.min(implicitWidth, notificationHeaderRow.width - urgencyDot.width - notificationHeaderRow.spacing * 2 - notificationTimestampText.implicitWidth))
} }
UText { UText {
id: notificationTimestampText
textFormat: Text.PlainText textFormat: Text.PlainText
text: " " + Time.formatRelativeTime(model.timestamp) text: " " + Time.formatRelativeTime(model.timestamp)
pointSize: Style.fontSizeXXS pointSize: Style.fontSizeXXS
color: Colors.mOnSurfaceVariant color: Colors.mOnSurfaceVariant
Layout.alignment: Qt.AlignBottom anchors.bottom: parent.bottom
}
Item {
Layout.fillWidth: true
} }
} }
@@ -729,11 +729,15 @@ Rectangle {
// Header row with app name and timestamp // Header row with app name and timestamp
Row { Row {
id: notificationHeaderRow
width: parent.width width: parent.width
spacing: Style.marginS spacing: Style.marginS
// Urgency indicator // Urgency indicator
Rectangle { Rectangle {
id: urgencyIndicator
width: 6 width: 6
height: 6 height: 6
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@@ -754,9 +758,13 @@ Rectangle {
pointSize: Style.fontSizeXS pointSize: Style.fontSizeXS
font.weight: Style.fontWeightBold font.weight: Style.fontWeightBold
color: Colors.mPrimary color: Colors.mPrimary
elide: Text.ElideRight
width: Math.max(0, Math.min(implicitWidth, notificationHeaderRow.width - (urgencyIndicator.visible ? urgencyIndicator.width + notificationHeaderRow.spacing : 0) - notificationHeaderRow.spacing - notificationTimestampText.implicitWidth))
} }
UText { UText {
id: notificationTimestampText
textFormat: Text.PlainText textFormat: Text.PlainText
text: " " + Time.formatRelativeTime(model.timestamp) text: " " + Time.formatRelativeTime(model.timestamp)
pointSize: Style.fontSizeXXS pointSize: Style.fontSizeXXS
@@ -38,9 +38,11 @@ UBox {
} }
ColumnLayout { ColumnLayout {
Layout.fillWidth: true
spacing: Style.marginXS spacing: Style.marginXS
UText { UText {
Layout.fillWidth: true
text: `${HostService.username} @ ${HostService.hostname}` text: `${HostService.username} @ ${HostService.hostname}`
font.weight: Style.fontWeightBold font.weight: Style.fontWeightBold
font.pointSize: Style.fontSizeL font.pointSize: Style.fontSizeL
@@ -11,7 +11,7 @@ import qs.Utils
UBox { UBox {
id: root id: root
property int forecastDays: 6 property int forecastDays: 5
property bool showLocation: true property bool showLocation: true
property bool showEffects: true property bool showEffects: true
readonly property bool weatherReady: LocationService.data.weather !== null readonly property bool weatherReady: LocationService.data.weather !== null
+2 -2
View File
@@ -1,11 +1,11 @@
[[plugin.deps]] [[plugin.deps]]
use = "yazi-rs/plugins:git" use = "yazi-rs/plugins:git"
rev = "38efe09" rev = "5d461d8"
hash = "88e56a64b7ce7c4314427452343fef17" hash = "88e56a64b7ce7c4314427452343fef17"
[[plugin.deps]] [[plugin.deps]]
use = "yazi-rs/plugins:smart-enter" use = "yazi-rs/plugins:smart-enter"
rev = "38efe09" rev = "5d461d8"
hash = "187cc58ba7ac3befd49c342129e6f1b6" hash = "187cc58ba7ac3befd49c342129e6f1b6"
[[plugin.deps]] [[plugin.deps]]
+6 -4
View File
@@ -255,6 +255,7 @@ intel-ucode
inxi inxi
iperf3 iperf3
jdk-openjdk jdk-openjdk
jdk17-graalvm-ee-bin
jdk21-graalvm-ee-bin jdk21-graalvm-ee-bin
jetbrains-toolbox jetbrains-toolbox
jp2a jp2a
@@ -294,7 +295,10 @@ libvips
lightdm lightdm
linux-cachyos linux-cachyos
linux-cachyos-headers linux-cachyos-headers
linux-firmware linux-firmware-intel
linux-firmware-other
linux-firmware-realtek
linux-firmware-whence
linuxqq-nt linuxqq-nt
llama.cpp-cuda-git llama.cpp-cuda-git
lldb lldb
@@ -312,7 +316,6 @@ mangohud
matugen matugen
mesa mesa
meson meson
mixtapes-git
mkvtoolnix-cli mkvtoolnix-cli
modprobed-db modprobed-db
moonlight-qt moonlight-qt
@@ -495,7 +498,7 @@ ttf-comic-shanns-nerd
ttf-jetbrains-mono-nerd ttf-jetbrains-mono-nerd
ttf-lxgw-wenkai ttf-lxgw-wenkai
ttf-lxgw-wenkai-tc ttf-lxgw-wenkai-tc
ttf-maplemono-nf-cn-unhinted ttf-maplemono-nf-cn
ttf-meslo-nerd ttf-meslo-nerd
ttf-ms-fonts ttf-ms-fonts
ttf-noto-sans-cjk-vf ttf-noto-sans-cjk-vf
@@ -587,7 +590,6 @@ yad
yay yay
yazi yazi
yt-dlp yt-dlp
ytmdesktop-bin
zellij zellij
zen-browser-bin zen-browser-bin
zenity zenity