forked from Blendman974/faceclaw
Add Border option to Settings>Customization
This commit is contained in:
1 parent
8b70585da8
commit
c6ce79ab70
7 files changed
+210
-50
No files matched your search
@@ -138,8 +138,9 @@ function settingsSections(): SettingsSection[] {
|
||||
},
|
||||
{
|
||||
label: "Customization",
|
||||
// Depth only applies (and only shows) with the app switcher at the
|
||||
// bottom; the panel re-reads the rows each paint.
|
||||
// Depth, the status bar's place and the border only apply (and only
|
||||
// show) with the app switcher at the bottom or a popup; the panel
|
||||
// re-reads the rows each paint.
|
||||
get items() {
|
||||
return customizationItems();
|
||||
},
|
||||
@@ -318,9 +319,12 @@ function customizationRows(): () => MenuItem[] {
|
||||
// resizes or moves windows on change.
|
||||
const statusBar = enumSettingMenuItem(statusBarPositionSetting);
|
||||
// Popup switcher only: whether the status bar shows only in the switcher
|
||||
// (windows then grow into its rows), and the foreground window's border.
|
||||
// (windows then grow into its rows).
|
||||
const statusBarVisibility = enumSettingMenuItem(statusBarVisibilitySetting);
|
||||
const windowBorder = toggleSettingMenuItem(windowBorderSetting);
|
||||
// The lines round the foreground window: a rounded border all around, only
|
||||
// the line between it and the status bar, or none; the dashboard
|
||||
// controller resizes windows when the border's rows come or go.
|
||||
const windowBorder = enumSettingMenuItem(windowBorderSetting);
|
||||
const rest = [
|
||||
// Submenu: top-bar battery indicator style plus per-device visibility.
|
||||
batteryIndicatorsMenuItem(),
|
||||
@@ -333,7 +337,7 @@ function customizationRows(): () => MenuItem[] {
|
||||
// Miles or kilometers: Weather's wind speed and Navigate's distances.
|
||||
enumSettingMenuItem(distanceUnitSetting),
|
||||
];
|
||||
const bottomRows = [font, position, depth, statusBar, ...rest];
|
||||
const bottomRows = [font, position, depth, statusBar, windowBorder, ...rest];
|
||||
const popupRows = [font, position, depth, statusBar, statusBarVisibility, windowBorder, ...rest];
|
||||
const sideRows = [font, position, ...rest];
|
||||
return () => {
|
||||
|
||||
Reference in new issue
Block a user