Skip to content

fix(talk): title bar controls color is not inline with theming#1657

Merged
ShGKme merged 1 commit intomainfrom
fix/title-bar-symbols-theming
Feb 6, 2026
Merged

fix(talk): title bar controls color is not inline with theming#1657
ShGKme merged 1 commit intomainfrom
fix/title-bar-symbols-theming

Conversation

@ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Feb 6, 2026

☑️ Resolves

  • OS determines the title bar control color based on the background color (dark/light)
  • But we have a different calculation in theming
  • It may result in a wrong color, different from other app elements
  • Before it was fixed by hardcoding #FFFFFF
  • After it is calculated the same way theming does

🖼️ Screenshots

🏚️ Before 🏡 After
OS-defined image
Before on blue image
Before on bright image
After on blue image
After on bright image

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme added this to the 🪴 Next Release milestone Feb 6, 2026
@ShGKme ShGKme self-assigned this Feb 6, 2026
@ShGKme ShGKme added the bug Something isn't working label Feb 6, 2026
Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise nice. Need to check if it can be applied to notifications app red badge dot

Comment on lines +135 to +136
export function getTitleBarSymbolColor(backgroundColor: string = BUILD_CONFIG.backgroundColor): string {
return invertTextColor(backgroundColor) ? '#000000' : '#FFFFFF'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know scoped functions will be hoisted, but it's weird to read 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to keep them scoped because they are only used for this specific utility (for now) and their names are taken from the server.

Until we create x100/x1000 application Windows per second, this optimisation is a micro-optimisation.

@ShGKme ShGKme merged commit 3643aa7 into main Feb 6, 2026
11 checks passed
@ShGKme ShGKme deleted the fix/title-bar-symbols-theming branch February 6, 2026 22:23
@ShGKme
Copy link
Contributor Author

ShGKme commented Feb 6, 2026

Need to check if it can be applied to notifications app red badge dot

At the moment we don't have it in the Talk Desktop anyway... But yeah, it would be good to test on the server.

@ShGKme ShGKme mentioned this pull request Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants