Skip to content

Commit

Permalink
Merge pull request #11 from bomzheg/test
Browse files Browse the repository at this point in the history
added tg color scheme
  • Loading branch information
bomzheg authored Jun 14, 2024
2 parents 4da54cf + df24bdb commit dd5f1d6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ShvatkaUIBuild

on:
push:
branches: [ master ]
branches: [ master, test ]
tags: ["*.*.*"]

jobs:
Expand Down
2 changes: 1 addition & 1 deletion src/app/games/games.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

.games-list-item a {
text-decoration: none;
color: #000;
color: var(--tg-theme-text-color);
box-sizing: border-box;
display: block;
}
Expand Down
5 changes: 3 additions & 2 deletions src/app/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ export class HeaderComponent implements OnInit {
console.debug("let's try to auth with webapp")
this.authService.authenticateWebApp(this.tgWa)
.subscribe({
next: () => {
next: async () => {
console.debug("success webapp auth, let's load profile")
this.userService.loadMe()
await this.userService.loadMe()
this.tgWa.ready()
},
error: async (err) => {
console.error("webapp auth error " + err.message);
Expand Down
9 changes: 8 additions & 1 deletion src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ $shvatka_green: #4CAF50;
}

html, body { height: 100%; }
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
body {
margin: 0;
font-family: Roboto, "Helvetica Neue", sans-serif;

color: var(--tg-theme-text-color);
background-color: var(--tg-theme-bg-color);
}

0 comments on commit dd5f1d6

Please sign in to comment.