Skip to content

Commit

Permalink
Merge pull request #8 from elecordapp/react-changes
Browse files Browse the repository at this point in the history
React changes
  • Loading branch information
hazzuk authored Dec 10, 2024
2 parents 227b0d2 + edafc36 commit a48d238
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Binary file added res/vector-icons/128-mono.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/components/structures/auth/LoginSplashView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ export function LoginSplashView(props: Props): React.JSX.Element {
{errorBox}
{spinnerOrProgress}
<div className="mx_LoginSplashView_splashButtons">

{/* elecord mono icon on loading screen */}
<div>
<img src="vector-icons/128-mono.png" />
</div>

<AccessibleButton kind="link_inline" onClick={props.onLogoutClick}>
{_t("action|logout")}
</AccessibleButton>
Expand Down
9 changes: 5 additions & 4 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,11 @@ export async function setTheme(theme?: string): Promise<void> {
a.disabled = true;
});
const bodyStyles = global.getComputedStyle(document.body);
if (bodyStyles.backgroundColor) {
const metaElement = document.querySelector<HTMLMetaElement>('meta[name="theme-color"]')!;
metaElement.content = bodyStyles.backgroundColor;
}
// disable meta theme color, done statically in index.html
// if (bodyStyles.backgroundColor) {
// const metaElement = document.querySelector<HTMLMetaElement>('meta[name="theme-color"]')!;
// metaElement.content = bodyStyles.backgroundColor;
// }
resolve();
};

Expand Down

0 comments on commit a48d238

Please sign in to comment.