Skip to content

Commit

Permalink
ui standardization is done
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartondock committed Oct 27, 2024
1 parent 978404a commit 4c4dd4e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
15 changes: 8 additions & 7 deletions src/renderer/components/nav-parsers.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,14 @@ export class NavParsersComponent implements OnDestroy {
this.changeRef.detectChanges();
}),
);

this.subscriptions.add(
this.navClick.subscribe(()=>{
this.currentId="";
this.changeRef.detectChanges();
})
)
if(this.appSettings.theme == 'Deck') {
this.subscriptions.add(
this.navClick.subscribe(()=>{
this.currentId="";
this.changeRef.detectChanges();
})
)
}

this.languageService.observeChanges().subscribe((lang) => {
this.changeRef.detectChanges();
Expand Down
8 changes: 4 additions & 4 deletions src/renderer/styles/themes.global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -867,9 +867,9 @@

&.EmuDeck.EmuDeck log {
grid-template-areas:
"messages bugreport"
"messages bugreport"
"menu menu";
"options messages bugreport"
"options messages bugreport"
"menu menu menu";
.menu {
margin: 0;
padding: 28px;
Expand Down Expand Up @@ -1155,7 +1155,7 @@
--color-preview-separator: transparent;
--padding-preview-separator: 18px;
--color-preview-text: var(--color-nav-link-text-active);
--color-preview-user-background: var(--color-nav-link-background-active);
--color-preview-user-background: rgb(128, 193, 243);
--color-preview-app-button: #8d8d8d;
--color-preview-app-button-active: #ffffff;
--color-preview-app-button-hover: #cccccc;
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/templates/nav-parsers.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
>
<div>
<p>
<img width="120" src="{{imageMap[parserId].img}}"/>
@if(imageMap[parserId]) {
<img width="120" src="{{imageMap[parserId].img}}"/>
}
<span *ngIf="imageMap[parserId].alternative">Non-EmuDeck</span>
</p>
<small>{{imageMap[parserId].details}}</small>
Expand Down

0 comments on commit 4c4dd4e

Please sign in to comment.