diff --git a/Modules/DemoPanel/DemoPanel.qml b/Modules/DemoPanel/DemoPanel.qml index e66541d..183291d 100644 --- a/Modules/DemoPanel/DemoPanel.qml +++ b/Modules/DemoPanel/DemoPanel.qml @@ -16,16 +16,19 @@ NLoader { readonly property real scaling: Scaling.scale(screen) // Ensure panel shows itself once created - Component.onCompleted: show() + Component.onCompleted: { + console.log("[DemoPanel] Component completed, showing panel...") + show() + } Rectangle { id: bgRect color: Colors.backgroundPrimary radius: Style.radiusMedium * scaling - border.color: Colors.backgroundTertiary - border.width: Math.max(1, Style.borderMedium * scaling) - width: 600 * scaling - height: 600 * scaling + border.color: Colors.accentPrimary + border.width: 2 + width: 500 * scaling + height: 700 * scaling anchors.centerIn: parent // Prevent closing when clicking in the panel bg @@ -33,10 +36,21 @@ NLoader { anchors.fill: parent } + // Debug: Add a simple text to see if content is visible + NText { + text: "DemoPanel is working!" + color: Colors.accentPrimary + font.pointSize: Style.fontSizeLarge * scaling + anchors.top: parent.top + anchors.horizontalCenter: parent.horizontalCenter + anchors.topMargin: 20 * scaling + } + ColumnLayout { anchors.fill: parent - anchors.margins: Style.marginXL * scaling - spacing: Style.marginSmall * scaling + anchors.margins: Style.marginMedium * scaling + anchors.topMargin: (Style.marginMedium + 40) * scaling + spacing: Style.marginMedium * scaling // NSlider ColumnLayout { diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index 324387a..1a67b03 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -143,7 +143,7 @@ PanelWindow { NText { text: (model.appName || model.desktopEntry) || "Unknown App" color: Colors.accentSecondary - font.pointSize: Style.fontSizeSmall + font.pointSize: Style.fontSizeSmall * scaling } Rectangle { width: 6 * scaling @@ -158,13 +158,13 @@ PanelWindow { NText { text: notificationService.formatTimestamp(model.timestamp) color: Colors.textSecondary - font.pointSize: Style.fontSizeSmall + font.pointSize: Style.fontSizeSmall * scaling } } NText { text: model.summary || "No summary" - font.pointSize: Style.fontSizeLarge + font.pointSize: Style.fontSizeLarge * scaling font.weight: Style.fontWeightBold color: Colors.textPrimary wrapMode: Text.Wrap @@ -175,7 +175,7 @@ PanelWindow { NText { text: model.body || "" - font.pointSize: Style.fontSizeSmall + font.pointSize: Style.fontSizeSmall * scaling color: Colors.textSecondary wrapMode: Text.Wrap width: 300 * scaling diff --git a/Widgets/NPill.qml b/Widgets/NPill.qml index ff819f3..3a6ac0e 100644 --- a/Widgets/NPill.qml +++ b/Widgets/NPill.qml @@ -56,7 +56,7 @@ Item { id: textItem anchors.centerIn: parent text: root.text - font.pointSize: Colors.fontSizeSmall * scaling + font.pointSize: Style.fontSizeSmall * scaling font.weight: Style.fontWeightBold color: textColor visible: showPill @@ -97,7 +97,7 @@ Item { Text { anchors.centerIn: parent font.family: showPill ? "Material Symbols Rounded" : "Material Symbols Outlined" - font.pointSize: Colors.fontSizeSmall * scaling + font.pointSize: Style.fontSizeMedium * scaling text: root.icon color: showPill ? iconTextColor : collapsedIconColor }