Skip to content

Commit

Permalink
darkmode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
silicia-apps committed Nov 15, 2023
1 parent d9b6e13 commit e2b25f2
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 27 deletions.
3 changes: 2 additions & 1 deletion apps/demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
tabMobilePosition="bottom"
color="primary"
>
<sio-darkmode-toggle slot="left_content"></sio-darkmode-toggle>
<sio-darkmode-toggle slot="left_footer"></sio-darkmode-toggle>

</sio-app>
6 changes: 2 additions & 4 deletions apps/demo/src/app/home/home.page.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<sio-page title="Home">

<sio-input name="app_title"></sio-input>

<sio-page title="Home">

</sio-page>
5 changes: 4 additions & 1 deletion apps/demo/src/app/home/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import { SioCommonModule } from '@silicia/core';
imports: [SioCommonModule],
})
export class HomePageComponent {
public html: string;
// eslint-disable-next-line @typescript-eslint/no-empty-function
constructor() {}
constructor() {
this.html = '<sio-app></sio-app>';
}
}
4 changes: 2 additions & 2 deletions apps/demo/src/theme/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
--ion-tab-bar-background: #1f1f1f;

--ion-card-background: #1e1e1e;
}
}}

body.dark {
--ion-color-primary: #428cff;
Expand Down Expand Up @@ -384,4 +384,4 @@

--ion-card-background: #1e1e1e;
}
}

6 changes: 3 additions & 3 deletions libs/core/src/lib/components/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
</ng-container>
</ion-content>
<ion-footer class="ion-no-border">
<div #side_footer>
<ng-content select="[slot='side_footer']"></ng-content>
<div #left_footer>
<ng-content select="[slot='left_footer']"></ng-content>
</div>
<ng-container *ngIf="!side_footer.hasChildNodes()">
<ng-container *ngIf="!left_footer.hasChildNodes()">
<ion-toolbar class="ion-no-border" [color]="this.color">
<ion-item lines="none" [color]="this.color"
><ion-label>powered by Sio</ion-label></ion-item
Expand Down
3 changes: 2 additions & 1 deletion libs/core/src/lib/components/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
--side-width: 300px;
--side-max-width: 300px;
--border: 0px 0px 0px 0px;

ion-menu[side='start'] {
--background: var(--sio-left-menu-content-color);
ion-header {
Expand All @@ -31,6 +31,7 @@
--background: var(--sio-left-menu-header-color);
}
}

ion-content {
--background: var(--sio-left-menu-content-color);
}
Expand Down
6 changes: 3 additions & 3 deletions libs/core/src/lib/components/menu/menu.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:host {
ion-list {
background-color: transparent;
}
ion-list {
background-color: transparent;
}
}
2 changes: 1 addition & 1 deletion libs/core/src/lib/components/page/page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>
<ng-container *ngIf="!content.hasChildNodes()">
<div id="container">
<h1>{{ 'PAGE_COMPONENT_DEFAULT_1' | translate }}</h1>
<h1>{{ 'PAGE_COMPONENT_DEFAULT_1' | translate }} {{ this.title | translate }}</h1>
<strong>{{ 'PAGE_COMPONENT_DEFAULT_2' | translate }}</strong>
<p>
{{ 'PAGE_COMPONENT_LINK' | translate }}
Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e2b25f2

Please sign in to comment.