diff --git a/public/static/images/logo_twitter.png b/public/static/images/logo_twitter.png deleted file mode 100644 index 7b470c3bc331..000000000000 Binary files a/public/static/images/logo_twitter.png and /dev/null differ diff --git a/public/static/images/logo_x.svg b/public/static/images/logo_x.svg new file mode 100644 index 000000000000..d3f4154fb2fa --- /dev/null +++ b/public/static/images/logo_x.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/onboarding/dialogs/community-dialog.ts b/src/onboarding/dialogs/community-dialog.ts index f2bffcb3cc4a..6715b3ff242d 100644 --- a/src/onboarding/dialogs/community-dialog.ts +++ b/src/onboarding/dialogs/community-dialog.ts @@ -72,11 +72,11 @@ class DialogCommunity extends LitElement { - - ${this.localize("ui.panel.page-onboarding.welcome.twitter")} + + ${this.localize("ui.panel.page-onboarding.welcome.x")} @@ -96,6 +96,12 @@ class DialogCommunity extends LitElement { a { text-decoration: none; } + + @media (prefers-color-scheme: light) { + img.x { + filter: invert(1) hue-rotate(180deg); + } + } `; } diff --git a/src/panels/config/dashboard/ha-config-dashboard.ts b/src/panels/config/dashboard/ha-config-dashboard.ts index 6b11299a6418..6d0b05595aeb 100644 --- a/src/panels/config/dashboard/ha-config-dashboard.ts +++ b/src/panels/config/dashboard/ha-config-dashboard.ts @@ -61,32 +61,32 @@ const randomTip = (hass: HomeAssistant, narrow: boolean) => { href="https://community.home-assistant.io" target="_blank" rel="noreferrer" - >Forums${hass.localize("ui.panel.config.tips.join_forums")}`, twitter: html`Twitter${hass.localize("ui.panel.config.tips.join_x")}`, discord: html`Chat${hass.localize("ui.panel.config.tips.join_chat")}`, blog: html`Blog${hass.localize("ui.panel.config.tips.join_blog")}`, newsletter: html`Newsletter${hass.localize("ui.panel.config.tips.join_newsletter")} `, }), diff --git a/src/translations/en.json b/src/translations/en.json index f28231447e1e..e3b8135c1cb5 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1875,7 +1875,9 @@ "editor": { "confirm_unsaved": "You have unsaved changes. Are you sure you want to leave?" }, - "multiselect": { "failed": "Failed to update {number} items." }, + "multiselect": { + "failed": "Failed to update {number} items." + }, "learn_more": "Learn more" }, "updates": { @@ -5049,6 +5051,11 @@ "tips": { "tip": "Tip!", "join": "Join the community on our {forums}, {twitter}, {discord}, {blog} or {newsletter}", + "join_x": "X (formerly Twitter)", + "join_forums": "Forums", + "join_chat": "Chat", + "join_blog": "Blog", + "join_newsletter": "Newsletter", "media_storage": "You can add network storage to your Home Assistant instance in the {storage} panel." }, "analytics": { @@ -6816,7 +6823,7 @@ "forums": "Home Assistant forums", "open_home_newsletter": "Building the Open Home newsletter", "discord": "Discord chat", - "twitter": "Twitter", + "x": "[%key:ui::panel::config::tips::join_x%]", "playstore": "Get it on Google Play", "appstore": "Download on the App Store" },