mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Project structure: moving stuff around
This commit is contained in:
@@ -2,11 +2,11 @@ import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import qs.Modules.ControlCenter.Cards
|
||||
import qs.Commons
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
import qs.Modules.ControlCenter.Extras
|
||||
import qs.Modules.ControlCenter
|
||||
import qs.Modules.ControlCenter.Cards
|
||||
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
@@ -5,7 +5,6 @@ import Quickshell
|
||||
import qs.Commons
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
import qs.Modules.Settings.Extras
|
||||
|
||||
ColumnLayout {
|
||||
id: root
|
||||
@@ -204,7 +203,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Left Section
|
||||
SectionEditor {
|
||||
NSectionEditor {
|
||||
sectionName: "Left"
|
||||
sectionId: "left"
|
||||
settingsDialogComponent: Qt.resolvedUrl(Quickshell.shellDir + "/Modules/Settings/Bar/BarWidgetSettingsDialog.qml")
|
||||
@@ -221,7 +220,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
// Center Section
|
||||
SectionEditor {
|
||||
NSectionEditor {
|
||||
sectionName: "Center"
|
||||
sectionId: "center"
|
||||
settingsDialogComponent: Qt.resolvedUrl(Quickshell.shellDir + "/Modules/Settings/Bar/BarWidgetSettingsDialog.qml")
|
||||
@@ -238,7 +237,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
// Right Section
|
||||
SectionEditor {
|
||||
NSectionEditor {
|
||||
sectionName: "Right"
|
||||
sectionId: "right"
|
||||
settingsDialogComponent: Qt.resolvedUrl(Quickshell.shellDir + "/Modules/Settings/Bar/BarWidgetSettingsDialog.qml")
|
||||
|
||||
@@ -5,7 +5,6 @@ import Quickshell
|
||||
import qs.Commons
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
import qs.Modules.Settings.Extras
|
||||
|
||||
ColumnLayout {
|
||||
id: root
|
||||
@@ -221,7 +220,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Left
|
||||
SectionEditor {
|
||||
NSectionEditor {
|
||||
sectionName: I18n.tr("settings.control-center.shortcuts.sectionLeft")
|
||||
sectionId: "left"
|
||||
settingsDialogComponent: ""
|
||||
@@ -240,7 +239,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
// Right
|
||||
SectionEditor {
|
||||
NSectionEditor {
|
||||
sectionName: I18n.tr("settings.control-center.shortcuts.sectionRight")
|
||||
sectionId: "right"
|
||||
settingsDialogComponent: ""
|
||||
|
||||
@@ -285,19 +285,19 @@ NBox {
|
||||
if (dialog) {
|
||||
dialog.open()
|
||||
} else {
|
||||
Logger.error("SectionEditor", "Failed to create settings dialog instance")
|
||||
Logger.error("NSectionEditor", "Failed to create settings dialog instance")
|
||||
}
|
||||
}
|
||||
if (component.status === Component.Ready) {
|
||||
instantiateAndOpen()
|
||||
} else if (component.status === Component.Error) {
|
||||
Logger.error("SectionEditor", component.errorString())
|
||||
Logger.error("NSectionEditor", component.errorString())
|
||||
} else {
|
||||
component.statusChanged.connect(function () {
|
||||
if (component.status === Component.Ready) {
|
||||
instantiateAndOpen()
|
||||
} else if (component.status === Component.Error) {
|
||||
Logger.error("SectionEditor", component.errorString())
|
||||
Logger.error("NSectionEditor", component.errorString())
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user