mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
ControlCenter: toggle to hide/show volume sliders + getting ready for more modularity soon
This commit is contained in:
@@ -70,44 +70,19 @@ ColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("settings.control-center.audio-controls.label")
|
||||
description: I18n.tr("settings.control-center.audio-controls.description")
|
||||
checked: Settings.data.controlCenter.audioControlsEnabled
|
||||
onToggled: checked => Settings.data.controlCenter.audioControlsEnabled = checked
|
||||
}
|
||||
|
||||
NDivider {
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: Style.marginXL
|
||||
Layout.bottomMargin: Style.marginXL
|
||||
}
|
||||
|
||||
// // Quick Settings Style Section
|
||||
// ColumnLayout {
|
||||
// spacing: Style.marginL
|
||||
// Layout.fillWidth: true
|
||||
|
||||
// NHeader {
|
||||
// label: I18n.tr("settings.control-center.quickSettingsStyle.section.label")
|
||||
// description: I18n.tr("settings.control-center.quickSettingsStyle.section.description")
|
||||
// }
|
||||
|
||||
// NComboBox {
|
||||
// id: quickSettingsStyle
|
||||
// label: I18n.tr("settings.control-center.quickSettingsStyle.style.label")
|
||||
// description: I18n.tr("settings.control-center.quickSettingsStyle.style.description")
|
||||
// Layout.fillWidth: true
|
||||
// model: [{
|
||||
// "key": "compact",
|
||||
// "name": I18n.tr("options.control-center.quickSettingsStyle.compact")
|
||||
// }, {
|
||||
// "key": "classic",
|
||||
// "name": I18n.tr("options.control-center.quickSettingsStyle.classic")
|
||||
// }, {
|
||||
// "key": "modern",
|
||||
// "name": I18n.tr("options.control-center.quickSettingsStyle.modern")
|
||||
// }]
|
||||
// currentKey: Settings.data.controlCenter.quickSettingsStyle || "compact"
|
||||
// onSelected: function (key) {
|
||||
// Settings.data.controlCenter.quickSettingsStyle = key
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// NDivider {
|
||||
// Layout.fillWidth: true
|
||||
// Layout.topMargin: Style.marginXL
|
||||
@@ -120,24 +95,41 @@ ColumnLayout {
|
||||
// Layout.fillWidth: true
|
||||
|
||||
// NHeader {
|
||||
// label: I18n.tr("settings.control-center.widgets.section.label")
|
||||
// description: I18n.tr("settings.control-center.widgets.section.description")
|
||||
// label: I18n.tr("settings.control-center.quickSettings.section.label")
|
||||
// description: I18n.tr("settings.control-center.quickSettings.section.description")
|
||||
// }
|
||||
|
||||
// // Bar Sections
|
||||
// // Sections
|
||||
// ColumnLayout {
|
||||
// Layout.fillWidth: true
|
||||
// Layout.fillHeight: true
|
||||
// Layout.topMargin: Style.marginM
|
||||
// spacing: Style.marginM
|
||||
|
||||
// // Quick Settings
|
||||
// // Left
|
||||
// SectionEditor {
|
||||
// sectionName: I18n.tr("settings.control-center.quickSettings.sectionName")
|
||||
// sectionId: "quickSettings"
|
||||
// sectionName: I18n.tr("settings.control-center.quickSettings.sectionLeft")
|
||||
// sectionId: "left"
|
||||
// settingsDialogComponent: ""
|
||||
// widgetRegistry: ControlCenterWidgetRegistry
|
||||
// widgetModel: Settings.data.controlCenter.widgets["quickSettings"]
|
||||
// widgetModel: Settings.data.controlCenter.widgets["left"]
|
||||
// availableWidgets: availableWidgets
|
||||
// enableMoveBetweenSections: false
|
||||
// onAddWidget: (widgetId, section) => _addWidgetToSection(widgetId, section)
|
||||
// onRemoveWidget: (section, index) => _removeWidgetFromSection(section, index)
|
||||
// onReorderWidget: (section, fromIndex, toIndex) => _reorderWidgetInSection(section, fromIndex, toIndex)
|
||||
// onUpdateWidgetSettings: (section, index, settings) => _updateWidgetSettingsInSection(section, index, settings)
|
||||
// onDragPotentialStarted: root.handleDragStart()
|
||||
// onDragPotentialEnded: root.handleDragEnd()
|
||||
// }
|
||||
|
||||
// // Right
|
||||
// SectionEditor {
|
||||
// sectionName: I18n.tr("settings.control-center.quickSettings.sectionRight")
|
||||
// sectionId: "right"
|
||||
// settingsDialogComponent: ""
|
||||
// widgetRegistry: ControlCenterWidgetRegistry
|
||||
// widgetModel: Settings.data.controlCenter.widgets["right"]
|
||||
// availableWidgets: availableWidgets
|
||||
// enableMoveBetweenSections: false
|
||||
// onAddWidget: (widgetId, section) => _addWidgetToSection(widgetId, section)
|
||||
|
||||
Reference in New Issue
Block a user