diff --git a/app/package.json b/app/package.json index 4518530e..bfaffc7a 100644 --- a/app/package.json +++ b/app/package.json @@ -31,11 +31,13 @@ "ngx-toastr": "^8.7.3", "path": "0.12.7", "rxjs": "^6.1.0", - "windows-blurbehind": "^1.0.0", - "windows-swca": "^1.1.1", "yargs": "^12.0.1", "zone.js": "~0.8.26" }, + "optionalDependencies": { + "windows-blurbehind": "^1.0.0", + "windows-swca": "^1.1.1" + }, "devDependencies": { "@types/mz": "0.0.31" } diff --git a/terminus-settings/src/components/settingsTab.component.pug b/terminus-settings/src/components/settingsTab.component.pug index ca217fb8..86281157 100644 --- a/terminus-settings/src/components/settingsTab.component.pug +++ b/terminus-settings/src/components/settingsTab.component.pug @@ -63,26 +63,11 @@ ngb-tabset.vertical(type='pills', [activeId]='activeTab') .header .title Vibrancy .description Gives the window a blurred transparent background - - .btn-group( + + toggle( [(ngModel)]='config.store.appearance.vibrancy', - (ngModelChange)='config.save(); (hostApp.platform === Platform.Windows && config.requestRestart())', - ngbRadioGroup + (ngModelChange)='config.save(); (hostApp.platform === Platform.Windows && config.requestRestart())' ) - label.btn.btn-secondary(ngbButtonLabel) - input( - type='radio', - ngbButton, - [value]='true' - ) - | Enable - label.btn.btn-secondary(ngbButtonLabel) - input( - type='radio', - ngbButton, - [value]='false' - ) - | Disable .form-line(*ngIf='hostApp.platform !== Platform.Linux') .header