This commit is contained in:
Eugene Pankov 2023-02-06 22:01:53 +01:00
parent faecb9b501
commit 4d86850bc7
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
6 changed files with 24 additions and 17 deletions

View File

@ -1,5 +1,3 @@
// TODO test toastr
app-root {
background: #1D272D;
}

View File

@ -8,6 +8,8 @@
box-shadow: 0 1px 0 rgba(0,0,0,.25);
padding: 7px 12px;
background-image: none;
display: block !important;
border: none !important;
width: auto;
flex-basis: auto;
border-radius: 0.5rem;
@ -15,10 +17,12 @@
&.toast-error {
background-color: #BD362F;
color: white !important;
}
&.toast-info {
background-color: #555;
color: #eee !important;
}
}
}

View File

@ -28,6 +28,7 @@ export class StartPageComponent {
return this.domSanitizer.bypassSecurityTrustHtml(icon ?? '')
}
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
buttonsTrackBy (_, btn: Command): any {
return btn.label + btn.icon
}

View File

@ -156,21 +156,21 @@ export class ProfilesService {
callback: () => resolve(p),
}))]
// TODO try {
// const { SettingsTabComponent } = window['nodeRequire']('tabby-settings')
// options.push({
// name: this.translate.instant('Manage profiles'),
// icon: 'fas fa-window-restore',
// weight: 10,
// callback: () => {
// this.app.openNewTabRaw({
// type: SettingsTabComponent,
// inputs: { activeTab: 'profiles' },
// })
// resolve(null)
// },
// })
// } catch { }
try {
const { SettingsTabComponent } = window['nodeRequire']('tabby-settings')
options.push({
name: this.translate.instant('Manage profiles'),
icon: 'fas fa-window-restore',
weight: 10,
callback: () => {
this.app.openNewTabRaw({
type: SettingsTabComponent,
inputs: { activeTab: 'profiles' },
})
resolve(null)
},
})
} catch { }
if (this.getProviders().some(x => x.supportsQuickConnect)) {
options.push({

View File

@ -7,6 +7,7 @@ $button-hover-bg: rgba(0, 0, 0, .25);
$button-active-bg: rgba(0, 0, 0, .5);
@import '~bootstrap/scss/bootstrap.scss';
@import "./theme.vendor.scss";
window-controls {
svg {

View File

@ -0,0 +1,3 @@
// $alert-border-radius: 0;
// @mixin border-radius ($r) {}
@import "../../node_modules/ngx-toastr/toastr-bs5-alert.scss";