From 3249febb0f3c444b1253615be85ba92323791e23 Mon Sep 17 00:00:00 2001 From: lysec Date: Sat, 18 Oct 2025 19:04:20 +0200 Subject: [PATCH] Matugen: fix hex_stripped for predefined color schemes NSearchableComboBox: fix warning --- Services/AppThemeService.qml | 10 +++++++++- Widgets/NSearchableComboBox.qml | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Services/AppThemeService.qml b/Services/AppThemeService.qml index fc1f01d0..8b6a8b38 100644 --- a/Services/AppThemeService.qml +++ b/Services/AppThemeService.qml @@ -162,7 +162,8 @@ Singleton { function generatePalette(primaryColor, secondaryColor, tertiaryColor, errorColor, backgroundColor, outlineColor, isDarkMode) { const c = hex => ({ "default": { - "hex": hex + "hex": hex, + "hex_stripped": hex.replace(/^#/, "") } }) @@ -383,6 +384,13 @@ Singleton { id: generateProcess workingDirectory: Quickshell.shellDir running: false + stdout: StdioCollector { + onStreamFinished: { + if (this.text) { + Logger.i("AppThemeService", "GenerateProcess stdout:", this.text) + } + } + } stderr: StdioCollector { onStreamFinished: { if (this.text) { diff --git a/Widgets/NSearchableComboBox.qml b/Widgets/NSearchableComboBox.qml index ffb4f4cc..a9a578f4 100644 --- a/Widgets/NSearchableComboBox.qml +++ b/Widgets/NSearchableComboBox.qml @@ -233,7 +233,7 @@ RowLayout { Layout.alignment: Qt.AlignRight Repeater { - model: badgeLocations + model: typeof badgeLocations !== 'undefined' ? badgeLocations : [] delegate: NBox { width: Style.baseWidgetSize * 0.7