master ohmu/fastfetch-openbsd / src / detection / theme / theme_apple.c
ohmu  ·  2026-10-15
 1#include "theme.h"
 2
 3#include "detection/os/os.h"
 4
 5const char* ffDetectTheme(FFThemeResult* result) {
 6    const FFOSResult* os = ffDetectOS();
 7
 8    char* str_end;
 9    const char* version = os->version.chars;
10    unsigned long osNum = strtoul(version, &str_end, 10);
11    if (str_end != version) {
12        if (osNum > 15) { // Tahoe
13            ffStrbufSetStatic(&result->theme1, "Liquid Glass");
14        } else if (osNum < 10) {
15            ffStrbufSetStatic(&result->theme1, "Platinum");
16        } else {
17            ffStrbufSetStatic(&result->theme1, "Aqua");
18        }
19    }
20
21    return nullptr;
22}