dark theme tweaks
This commit is contained in:
parent
b89a620f9b
commit
92809488a5
|
@ -22,7 +22,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<button type="submit" class="btn primary block" appBlurClick>
|
<button type="submit" class="btn primary block" appBlurClick>
|
||||||
<i class="fa fa-unlock-alt"></i> {{'unlock' | i18n}}
|
<i class="fa fa-unlock-alt"></i> <b>{{'unlock' | i18n}}</b>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn block" appBlurClick (click)="logOut()">
|
<button type="button" class="btn block" appBlurClick (click)="logOut()">
|
||||||
{{'logOut' | i18n}}
|
{{'logOut' | i18n}}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<form id="login-page" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
|
<form id="login-page" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<img src="../../images/logo@2x.png" alt="bitwarden">
|
<img class="logo-image" alt="Bitwarden">
|
||||||
<p class="lead">{{'loginOrCreateNewAccount' | i18n}}</p>
|
<p class="lead">{{'loginOrCreateNewAccount' | i18n}}</p>
|
||||||
<div class="box last">
|
<div class="box last">
|
||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<button type="submit" class="btn primary block" [disabled]="form.loading" appBlurClick>
|
<button type="submit" class="btn primary block" [disabled]="form.loading" appBlurClick>
|
||||||
<span [hidden]="form.loading"><i class="fa fa-sign-in"></i> {{'logIn' | i18n}}</span>
|
<b [hidden]="form.loading"><i class="fa fa-sign-in"></i> {{'logIn' | i18n}}</b>
|
||||||
<i class="fa fa-spinner fa-spin" [hidden]="!form.loading"></i>
|
<i class="fa fa-spinner fa-spin" [hidden]="!form.loading"></i>
|
||||||
</button>
|
</button>
|
||||||
<a routerLink="/register" class="btn block">
|
<a routerLink="/register" class="btn block">
|
||||||
|
|
|
@ -121,6 +121,7 @@ export class SettingsComponent implements OnInit {
|
||||||
async saveTheme() {
|
async saveTheme() {
|
||||||
await this.storageService.save(ConstantsService.themeKey, this.theme);
|
await this.storageService.save(ConstantsService.themeKey, this.theme);
|
||||||
this.analytics.eventTrack.next({ action: 'Set Theme ' + this.theme });
|
this.analytics.eventTrack.next({ action: 'Set Theme ' + this.theme });
|
||||||
|
window.setTimeout(() => window.location.reload(), 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
private callAnalytics(name: string, enabled: boolean) {
|
private callAnalytics(name: string, enabled: boolean) {
|
||||||
|
|
|
@ -105,7 +105,7 @@ const authService = new AuthService(cryptoService, apiService,
|
||||||
const exportService = new ExportService(folderService, cipherService);
|
const exportService = new ExportService(folderService, cipherService);
|
||||||
const auditService = new AuditService(cryptoFunctionService);
|
const auditService = new AuditService(cryptoFunctionService);
|
||||||
|
|
||||||
const analytics = new Analytics(window, () => isDev(), platformUtilsService, storageService, appIdService);
|
const analytics = new Analytics(window, () => false, platformUtilsService, storageService, appIdService);
|
||||||
containerService.attachToWindow(window);
|
containerService.attachToWindow(window);
|
||||||
environmentService.setUrlsFromStorage().then(() => {
|
environmentService.setUrlsFromStorage().then(() => {
|
||||||
return syncService.fullSync(true);
|
return syncService.fullSync(true);
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
<div id="logo" *ngIf="action !== 'add' && action !== 'edit' && action !== 'view'">
|
<div id="logo" *ngIf="action !== 'add' && action !== 'edit' && action !== 'view'">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="inner-content">
|
<div class="inner-content">
|
||||||
<img src="../../images/logo@2x.png" />
|
<img class="logo-image" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 9.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.0 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 8.2 KiB |
|
@ -792,7 +792,7 @@
|
||||||
"message": "Theme"
|
"message": "Theme"
|
||||||
},
|
},
|
||||||
"themeDesc": {
|
"themeDesc": {
|
||||||
"message": "Change the application's color theme. Restart is required."
|
"message": "Change the application's color theme."
|
||||||
},
|
},
|
||||||
"dark": {
|
"dark": {
|
||||||
"message": "Dark",
|
"message": "Dark",
|
||||||
|
|
|
@ -14,6 +14,9 @@ html, body {
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
color: $text-color;
|
||||||
|
background-color: $background-color-alt2;
|
||||||
|
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed('textColor');
|
color: themed('textColor');
|
||||||
background-color: themed('backgroundColorAlt2');
|
background-color: themed('backgroundColorAlt2');
|
||||||
|
|
|
@ -206,8 +206,15 @@ app-root > #loading {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
color: $text-muted;
|
||||||
|
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed('mutedColor');
|
color: themed('mutedColor');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo-image {
|
||||||
|
@include themify($themes) {
|
||||||
|
content: url('../images/logo-' + themed('logoSuffix') + '@2x.png');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
img {
|
img {
|
||||||
margin: 0 auto 15px;
|
margin: 0 auto 15px;
|
||||||
width: 282px;
|
width: 284px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,6 +79,7 @@ $themes: (
|
||||||
successColor: $brand-success,
|
successColor: $brand-success,
|
||||||
infoColor: $brand-info,
|
infoColor: $brand-info,
|
||||||
warningColor: $brand-warning,
|
warningColor: $brand-warning,
|
||||||
|
logoSuffix: 'dark',
|
||||||
),
|
),
|
||||||
dark: (
|
dark: (
|
||||||
textColor: #ffffff,
|
textColor: #ffffff,
|
||||||
|
@ -97,7 +98,7 @@ $themes: (
|
||||||
headerInputColor: #ffffff,
|
headerInputColor: #ffffff,
|
||||||
headerInputPlaceholderColor: #707070,
|
headerInputPlaceholderColor: #707070,
|
||||||
listItemBackgroundColor: #363636,
|
listItemBackgroundColor: #363636,
|
||||||
listItemBackgroundHoverColor: #464646,
|
listItemBackgroundHoverColor: #3c3c3c,
|
||||||
groupingsActiveColor: #292929,
|
groupingsActiveColor: #292929,
|
||||||
disabledIconColor: #c7c7cd,
|
disabledIconColor: #c7c7cd,
|
||||||
headingColor: #a3a3a3,
|
headingColor: #a3a3a3,
|
||||||
|
@ -113,7 +114,7 @@ $themes: (
|
||||||
inputPlaceholderColor: #707070,
|
inputPlaceholderColor: #707070,
|
||||||
buttonBackgroundColor: #363636,
|
buttonBackgroundColor: #363636,
|
||||||
buttonBorderColor: #1f1f1f,
|
buttonBorderColor: #1f1f1f,
|
||||||
buttonColor: #ffffff,
|
buttonColor: #e0e0e0,
|
||||||
buttonPrimaryColor: #46ace7,
|
buttonPrimaryColor: #46ace7,
|
||||||
buttonDangerColor: #ff3e24,
|
buttonDangerColor: #ff3e24,
|
||||||
primaryColor: #52bdfb,
|
primaryColor: #52bdfb,
|
||||||
|
@ -122,6 +123,7 @@ $themes: (
|
||||||
successColor: $brand-success,
|
successColor: $brand-success,
|
||||||
infoColor: $brand-info,
|
infoColor: $brand-info,
|
||||||
warningColor: $brand-warning,
|
warningColor: $brand-warning,
|
||||||
|
logoSuffix: 'white',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -214,7 +214,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 282px;
|
width: 284px;
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
transition: all 1s ease-in-out;
|
transition: all 1s ease-in-out;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue