mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Settings: edit default bar & quick access
Autoformat
This commit is contained in:
@@ -11,7 +11,7 @@ NPanel {
|
||||
id: root
|
||||
|
||||
preferredWidth: 440
|
||||
preferredHeight: topHeight + bottomHeight + Math.round(Style.marginL * scaling * 3)
|
||||
preferredHeight: topHeight + bottomHeight + Math.round(Style.marginL * scaling * 3)
|
||||
panelKeyboardFocus: true
|
||||
|
||||
readonly property int bottomHeight: Math.round(Math.max(196 * scaling))
|
||||
@@ -19,14 +19,12 @@ NPanel {
|
||||
const columns = (Settings.data.controlCenter.quickSettingsStyle === "compact") ? 4 : 3
|
||||
const rowsCount = Math.ceil(Settings.data.controlCenter.widgets.quickSettings.length / columns)
|
||||
|
||||
var buttonHeight;
|
||||
var buttonHeight
|
||||
if (Settings.data.controlCenter.quickSettingsStyle === "classic") {
|
||||
buttonHeight = Style.baseWidgetSize
|
||||
}
|
||||
else if (Settings.data.controlCenter.quickSettingsStyle === "compact") {
|
||||
} else if (Settings.data.controlCenter.quickSettingsStyle === "compact") {
|
||||
buttonHeight = Style.baseWidgetSize * 0.8 // Smaller for compact
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
buttonHeight = 56
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ ColumnLayout {
|
||||
"key": "compact",
|
||||
"name": I18n.tr("options.control-center.quickSettingsStyle.compact")
|
||||
}]
|
||||
currentKey: Settings.data.controlCenter.quickSettingsStyle || "modern"
|
||||
currentKey: Settings.data.controlCenter.quickSettingsStyle || "compact"
|
||||
onSelected: function (key) {
|
||||
Settings.data.controlCenter.quickSettingsStyle = key
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user