You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dark theme: tertiary_bg_color and segmented_control_active_bg use hardcoded greys instead of Telegram theme colors #114
In dark mode, --tgui--tertiary_bg_color is hardcoded to #2a2a2a and --tgui--segmented_control_active_bg to #2f2f2f. These are neutral greys that don't match Telegram's actual dark theme palette.
These are blue-grey tones, not neutral greys. The hardcoded #2a2a2a and #2f2f2f visually clash with the actual Telegram dark theme.
This affects SegmentedControl, Avatar, Cell hover states, PinInput, and other components that use --tgui--tertiary_bg_color.
Expected behavior
These variables should derive from the Telegram theme CSS variables (e.g. --tg-theme-secondary-bg-color) rather than being hardcoded, so they match the user's actual Telegram theme — including custom themes.
Precedent
This is the same class of issue as #53 and #59, where Section was using the wrong color variable instead of the Telegram theme-aware one.
Activity