@@ -427,3 +427,93 @@ func SolarizedLightTheme() Theme {
427427
428428 return theme
429429}
430+
431+ // NoneTheme paints no background and uses the terminal's ANSI palette, so the
432+ // terminal's own color scheme and transparency show through.
433+ func NoneTheme () Theme {
434+ theme := Theme {}
435+
436+ theme .Colors .Base .Background = lipgloss.NoColor {}
437+ theme .Colors .Base .Foreground = lipgloss.NoColor {}
438+ theme .Colors .Base .Surface = lipgloss.NoColor {}
439+ theme .Colors .Base .Border = lipgloss .Color ("8" )
440+ theme .Colors .Base .Accent = lipgloss .Color ("4" )
441+ theme .Colors .Base .Error = lipgloss .Color ("1" )
442+ theme .Colors .Base .Dimmed = lipgloss .Color ("8" )
443+ theme .Colors .Base .Subtle = lipgloss .Color ("8" )
444+ theme .Colors .Base .OnAccent = lipgloss .Color ("0" )
445+ theme .Colors .Base .Divider = lipgloss .Color ("8" )
446+
447+ theme .Colors .Sidebar .Server = lipgloss .Color ("4" )
448+ theme .Colors .Sidebar .Unread = lipgloss .Color ("6" )
449+ theme .Colors .Sidebar .Notification = lipgloss .Color ("3" )
450+ theme .Colors .Sidebar .Mention = lipgloss .Color ("1" )
451+ theme .Colors .Sidebar .Selection = lipgloss.NoColor {}
452+
453+ theme .Colors .Chat .Nickname = lipgloss .Color ("4" )
454+ theme .Colors .Chat .InactiveNickname = lipgloss .Color ("8" )
455+ theme .Colors .Chat .Mention = lipgloss .Color ("1" )
456+ theme .Colors .Chat .Separator = lipgloss .Color ("8" )
457+ theme .Colors .Chat .Self = lipgloss .Color ("2" )
458+ theme .Colors .Chat .Connected = lipgloss .Color ("2" )
459+ theme .Colors .Chat .Disconnected = lipgloss .Color ("1" )
460+ theme .Colors .Chat .UserEvents = lipgloss .Color ("8" )
461+ theme .Colors .Chat .ServerMessage = lipgloss .Color ("3" )
462+
463+ theme .Colors .Palette .Border = lipgloss .Color ("4" )
464+ theme .Colors .Palette .Highlight = lipgloss .Color ("4" )
465+
466+ theme .Colors .Nicknames = []Color {
467+ lipgloss .Color ("2" ),
468+ lipgloss .Color ("3" ),
469+ lipgloss .Color ("4" ),
470+ lipgloss .Color ("5" ),
471+ lipgloss .Color ("6" ),
472+ lipgloss .Color ("10" ),
473+ lipgloss .Color ("11" ),
474+ lipgloss .Color ("12" ),
475+ lipgloss .Color ("13" ),
476+ lipgloss .Color ("14" ),
477+ }
478+
479+ theme .Styles .App = lipgloss .NewStyle ().
480+ Background (theme .Colors .Base .Background ).
481+ Foreground (theme .Colors .Base .Foreground )
482+
483+ theme .Styles .Sidebar = lipgloss .NewStyle ().
484+ Background (theme .Colors .Base .Background ).
485+ Foreground (theme .Colors .Base .Foreground ).
486+ BorderStyle (lipgloss .HiddenBorder ()).
487+ BorderBackground (theme .Colors .Base .Background )
488+
489+ theme .Styles .UnreadItem = lipgloss .NewStyle ().
490+ Background (theme .Colors .Base .Background ).
491+ Foreground (theme .Colors .Sidebar .Unread )
492+
493+ theme .Styles .NotifiedItem = lipgloss .NewStyle ().
494+ Background (theme .Colors .Base .Background ).
495+ Foreground (theme .Colors .Sidebar .Notification ).
496+ Bold (true )
497+
498+ theme .Styles .MentionedItem = lipgloss .NewStyle ().
499+ Background (theme .Colors .Base .Background ).
500+ Foreground (theme .Colors .Sidebar .Mention ).
501+ Bold (true )
502+
503+ theme .Styles .ServerItem = lipgloss .NewStyle ().
504+ Background (theme .Colors .Base .Background ).
505+ Foreground (theme .Colors .Sidebar .Server ).
506+ Bold (true )
507+
508+ theme .Styles .ChatArea = lipgloss .NewStyle ().
509+ Background (theme .Colors .Base .Background ).
510+ Foreground (theme .Colors .Base .Foreground ).
511+ BorderBackground (theme .Colors .Base .Background ).
512+ Border (lipgloss .HiddenBorder ())
513+
514+ theme .Styles .InputField = lipgloss .NewStyle ().
515+ Background (theme .Colors .Base .Surface ).
516+ Foreground (theme .Colors .Base .Foreground )
517+
518+ return theme
519+ }
0 commit comments