From 6a17cd12a50ff7044f722e3c388eb2479de7db22 Mon Sep 17 00:00:00 2001 From: rubikscraft Date: Sun, 25 Dec 2022 22:28:53 +0100 Subject: [PATCH] Fix many more graphical bugs --- .../copy-field/copy-field.component.html | 2 +- .../copy-field/copy-field.component.ts | 5 +++++ .../app/components/fab/normal/fab.component.ts | 2 +- .../speed-dial/speed-dial-option.directive.ts | 2 +- .../fab/speed-dial/speed-dial.component.ts | 2 +- .../picsur-img/picsur-img.component.html | 1 - .../pref-option/pref-option.component.html | 13 +++++++++++-- .../pref-option/pref-option.component.scss | 7 +------ .../values-picker/values-picker.component.html | 6 +++--- .../app/routes/images/images.component.scss | 8 +++++++- .../processing/processing.component.html | 2 +- .../apikey-editor/apikey-editor.component.html | 2 +- .../apikeys/settings-apikeys.component.html | 1 - .../settings-roles-edit.component.html | 8 ++++---- .../roles/settings-roles.component.html | 1 - .../sharex/settings-sharex.component.html | 18 +++++------------- .../settings-users-edit.component.html | 10 +++++----- .../users/settings-users.component.html | 1 - .../app/routes/user/login/login.component.html | 8 ++++---- .../user/register/register.component.html | 10 +++++----- .../customize-dialog.component.html | 12 ++++++------ .../edit-dialog/edit-dialog.component.html | 8 +++++--- .../src/app/routes/view/view.component.html | 2 +- .../download-dialog.component.html | 3 ++- frontend/src/scss/material/material-theme.scss | 14 ++++++-------- 25 files changed, 76 insertions(+), 72 deletions(-) diff --git a/frontend/src/app/components/copy-field/copy-field.component.html b/frontend/src/app/components/copy-field/copy-field.component.html index d8a0dca..307ed78 100644 --- a/frontend/src/app/components/copy-field/copy-field.component.html +++ b/frontend/src/app/components/copy-field/copy-field.component.html @@ -1,4 +1,4 @@ - + {{ label }} (); @Output('hide') onHide = new EventEmitter(); diff --git a/frontend/src/app/components/fab/normal/fab.component.ts b/frontend/src/app/components/fab/normal/fab.component.ts index ef53700..3264bd2 100644 --- a/frontend/src/app/components/fab/normal/fab.component.ts +++ b/frontend/src/app/components/fab/normal/fab.component.ts @@ -7,7 +7,7 @@ import { Component, Input } from '@angular/core'; export class FabComponent { @Input('aria-label') ariaLabel: string = 'Floating Action Button'; @Input() icon: string = 'add'; - @Input() color: string = 'accent'; + @Input() color: string = 'primary'; @Input('tooltip') tooltip: string; @Input() onClick: () => void = () => {}; diff --git a/frontend/src/app/components/fab/speed-dial/speed-dial-option.directive.ts b/frontend/src/app/components/fab/speed-dial/speed-dial-option.directive.ts index 96622b4..8f03bff 100644 --- a/frontend/src/app/components/fab/speed-dial/speed-dial-option.directive.ts +++ b/frontend/src/app/components/fab/speed-dial/speed-dial-option.directive.ts @@ -11,6 +11,6 @@ export class SpeedDialOptionDirective { @Host() @Optional() button?: MatMiniFabButton, ) { if (tooltip) tooltip.position = 'left'; - if (button) button.color = 'primary'; + if (button) button.color = 'accent'; } } diff --git a/frontend/src/app/components/fab/speed-dial/speed-dial.component.ts b/frontend/src/app/components/fab/speed-dial/speed-dial.component.ts index 8cbc90e..3623762 100644 --- a/frontend/src/app/components/fab/speed-dial/speed-dial.component.ts +++ b/frontend/src/app/components/fab/speed-dial/speed-dial.component.ts @@ -13,7 +13,7 @@ export class SpeedDialComponent { @Input('icon') icon: string = 'add'; @Input('icon-hover') iconHover: string = 'close'; - @Input('color') color: string = 'accent'; + @Input('color') color: string = 'primary'; @Input('open-on-hover') openOnHover: boolean = false; @Input('tooltip') tooltip: string; diff --git a/frontend/src/app/components/picsur-img/picsur-img.component.html b/frontend/src/app/components/picsur-img/picsur-img.component.html index 07db18f..b5adce0 100644 --- a/frontend/src/app/components/picsur-img/picsur-img.component.html +++ b/frontend/src/app/components/picsur-img/picsur-img.component.html @@ -17,5 +17,4 @@ (nguiInview)="onInview($event)" (nguiOutview)="onOutview($event)" *ngIf="state === 'loading'" - color="accent" > diff --git a/frontend/src/app/components/pref-option/pref-option.component.html b/frontend/src/app/components/pref-option/pref-option.component.html index 4d13079..cddf787 100644 --- a/frontend/src/app/components/pref-option/pref-option.component.html +++ b/frontend/src/app/components/pref-option/pref-option.component.html @@ -4,7 +4,11 @@

{{ name }}

- + {{ name }}
- +
+ {{ nameCapMul }} - cancel - + :not(:first-of-type) { + margin-left: 1em; +} diff --git a/frontend/src/app/routes/processing/processing.component.html b/frontend/src/app/routes/processing/processing.component.html index 2432ba6..67ef4ee 100644 --- a/frontend/src/app/routes/processing/processing.component.html +++ b/frontend/src/app/routes/processing/processing.component.html @@ -1,6 +1,6 @@

Processing

- +
diff --git a/frontend/src/app/routes/settings/apikeys/apikey-editor/apikey-editor.component.html b/frontend/src/app/routes/settings/apikeys/apikey-editor/apikey-editor.component.html index 6438aba..dba6810 100644 --- a/frontend/src/app/routes/settings/apikeys/apikey-editor/apikey-editor.component.html +++ b/frontend/src/app/routes/settings/apikeys/apikey-editor/apikey-editor.component.html @@ -1,4 +1,4 @@ - + Name {{ getErrorMessage() }} diff --git a/frontend/src/app/routes/settings/apikeys/settings-apikeys.component.html b/frontend/src/app/routes/settings/apikeys/settings-apikeys.component.html index 27d8eae..18e6aaa 100644 --- a/frontend/src/app/routes/settings/apikeys/settings-apikeys.component.html +++ b/frontend/src/app/routes/settings/apikeys/settings-apikeys.component.html @@ -54,7 +54,6 @@ -

Editing {{ model.rolenameValue }}

+

Editing role "{{ model.rolenameValue }}"

Add new role

@@ -8,7 +8,7 @@
- + Role name
-

Loading

- +
diff --git a/frontend/src/app/routes/settings/users/settings-users-edit/settings-users-edit.component.html b/frontend/src/app/routes/settings/users/settings-users-edit/settings-users-edit.component.html index 553b8ac..8686ddb 100644 --- a/frontend/src/app/routes/settings/users/settings-users-edit/settings-users-edit.component.html +++ b/frontend/src/app/routes/settings/users/settings-users-edit/settings-users-edit.component.html @@ -1,5 +1,5 @@ -

Editing {{ model.usernameValue }}

+

Editing user "{{ model.usernameValue }}"

Add new user

@@ -8,7 +8,7 @@
- + Username
- + {{ editing ? 'New Password' : 'Password' }}
-
- + Format @@ -15,7 +15,7 @@
- + Height Width @@ -39,7 +39,7 @@
- + Rotation @@ -50,7 +50,7 @@
- + Quality % @@ -87,7 +87,7 @@
- +
diff --git a/frontend/src/app/routes/view/edit-dialog/edit-dialog.component.html b/frontend/src/app/routes/view/edit-dialog/edit-dialog.component.html index bc9fe45..b59c7bb 100644 --- a/frontend/src/app/routes/view/edit-dialog/edit-dialog.component.html +++ b/frontend/src/app/routes/view/edit-dialog/edit-dialog.component.html @@ -5,7 +5,7 @@

Edit Image

- + Title
- - + +
diff --git a/frontend/src/app/routes/view/view.component.html b/frontend/src/app/routes/view/view.component.html index a9a1b16..75aa2ec 100644 --- a/frontend/src/app/routes/view/view.component.html +++ b/frontend/src/app/routes/view/view.component.html @@ -26,7 +26,7 @@
- + Image Format diff --git a/frontend/src/app/util/dialog-manager/download-dialog/download-dialog.component.html b/frontend/src/app/util/dialog-manager/download-dialog/download-dialog.component.html index 85e65a4..85784de 100644 --- a/frontend/src/app/util/dialog-manager/download-dialog/download-dialog.component.html +++ b/frontend/src/app/util/dialog-manager/download-dialog/download-dialog.component.html @@ -1,4 +1,5 @@

Downloading {{ data.name }}...

- +
+
diff --git a/frontend/src/scss/material/material-theme.scss b/frontend/src/scss/material/material-theme.scss index 356c261..5f2d805 100644 --- a/frontend/src/scss/material/material-theme.scss +++ b/frontend/src/scss/material/material-theme.scss @@ -6,9 +6,6 @@ mat.$theme-ignore-duplication-warnings: true; @include mat.core(); -$dark-primary-text: rgba(black, 0.87); -$light-primary-text: white; - $picsur-primary: mat.define-palette(mat.$green-palette, 600, 100, 900); $picsur-accent: mat.define-palette(mat.$blue-grey-palette, 600, 200, 800); $picsur-warn: mat.define-palette(mat.$red-palette); @@ -132,10 +129,11 @@ $mat-theme: ( warn: $picsur-warn, background: $mat-dark-theme-background-palette, foreground: $mat-dark-theme-foreground-palette, + is-dark: true, ), ); -$mat-theme-light: mat.define-light-theme( +$mat-theme-light: ( ( color: ( primary: $picsur-primary, @@ -151,10 +149,10 @@ $mat-theme-light: mat.define-light-theme( @include mat.all-component-typographies($mat-theme); @include custom-mat.custom-material($mat-theme); -.theme-alternate { - @include mat.all-component-colors($mat-theme-light); - @include custom-mat.custom-material($mat-theme-light); -} +// .theme-alternate { +// @include mat.all-component-colors($mat-theme-light); +// @include custom-mat.custom-material($mat-theme-light); +// } .mat-standard-chip { padding: 0.5em 0.85em;