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