Merge branch 'noctalia-dev:main' into pr/networking-refactor-pt2

This commit is contained in:
Turann_
2026-03-15 01:38:15 +03:00
committed by GitHub
10 changed files with 45 additions and 185 deletions
+6 -1
View File
@@ -175,7 +175,12 @@ Item {
PanelService.closeContextMenu(screen);
if (action === "sysmon-settings") {
SettingsPanelService.openToTab(SettingsPanel.Tab.System, 0, screen);
let monitorCmd = Settings.data.systemMonitor.externalMonitor;
if (monitorCmd && monitorCmd.trim() !== "") {
openExternalMonitor();
} else {
SettingsPanelService.openToTab(SettingsPanel.Tab.System, 0, screen);
}
} else if (action === "widget-settings") {
BarService.openWidgetSettings(screen, section, sectionWidgetIndex, widgetId, widgetSettings);
}
+8 -5
View File
@@ -692,9 +692,9 @@ Loader {
}
}
// PEEK WINDOW
// PEEK WINDOW — only needed when dock can auto-hide or is in attached mode
Loader {
active: (barIsReady || !hasBar) && modelData && (Settings.data.dock.monitors.length === 0 || Settings.data.dock.monitors.includes(modelData.name))
active: (autoHide || isAttachedMode) && (barIsReady || !hasBar) && modelData && (Settings.data.dock.monitors.length === 0 || Settings.data.dock.monitors.includes(modelData.name))
sourceComponent: PanelWindow {
id: peekWindow
@@ -754,9 +754,9 @@ Loader {
}
}
// DOCK INDICATOR WINDOW
// DOCK INDICATOR WINDOW — only needed when dock can auto-hide/attach and indicator is enabled
Loader {
active: (barIsReady || !hasBar) && modelData && (Settings.data.dock.monitors.length === 0 || Settings.data.dock.monitors.includes(modelData.name))
active: (autoHide || isAttachedMode) && Settings.data.dock.showDockIndicator && (barIsReady || !hasBar) && modelData && (Settings.data.dock.monitors.length === 0 || Settings.data.dock.monitors.includes(modelData.name))
sourceComponent: PanelWindow {
id: dockIndicatorWindow
@@ -780,13 +780,16 @@ Loader {
implicitHeight: isVertical ? peekEdgeLength : indicatorThickness
implicitWidth: isVertical ? indicatorThickness : peekEdgeLength
// Hide the window surface when indicator is not visible, so the compositor
// can skip compositing this layer-shell surface entirely (saves GPU on NVIDIA)
visible: indicatorRect.opacity > 0 || indicatorVisible
Rectangle {
id: indicatorRect
anchors.fill: parent
radius: indicatorThickness
color: Qt.alpha(Color.resolveColorKey(indicatorColorKey), indicatorOpacity)
opacity: indicatorVisible ? 1 : 0
visible: opacity > 0
Behavior on opacity {
NumberAnimation {
@@ -135,7 +135,7 @@ ColumnLayout {
property bool selected: false
signal clicked
radius: height * 0.5
radius: Style.iRadiusS
color: selected ? Color.mPrimary : Color.mSurfaceVariant
implicitHeight: Math.max(Style.baseWidgetSize * 0.55, 24)
implicitWidth: chipLabel.implicitWidth + Style.marginM * 1.5