diff options
Diffstat (limited to 'core/Core.zig')
| -rw-r--r-- | core/Core.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Core.zig b/core/Core.zig index e458dab4..9cd58c50 100644 --- a/core/Core.zig +++ b/core/Core.zig @@ -2155,10 +2155,11 @@ fn sizes(p: *const Pardes, pane: *const Pane) bool { return pane.sized_by == p.live; } +/// The theme in the old names, for what still reads a theme's own +/// fields (colors.ChromeTheme.view). pub fn theme(p: *const Pardes) *const LegacyTheme { - if (p.theme_preview) |i| return &colors.legacy_themes[i]; - if (p.custom_theme) |*custom| return custom; - return &colors.legacy_themes[p.settings.theme]; + if (p.theme_preview == null) if (p.custom_theme) |*custom| return custom; + return &p.chromeTheme().view; } /// The colours of the chrome: the theme's, set as it changes. |
