additional settings for vector theme

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2020-05-26 20:12:54 +03:00
parent ad209ac209
commit 59c3764c27
2 changed files with 12 additions and 7 deletions

View File

@ -614,12 +614,12 @@ extern CHAR16* DsdtsList[20];
extern UINTN DsdtsNum;
extern UINTN ThemesNum;
extern UINTN ConfigsNum;
extern INTN ScrollButtonsHeight;
extern INTN ScrollBarDecorationsHeight;
extern INTN ScrollScrollDecorationsHeight;
extern INTN LayoutBannerOffset;
extern INTN LayoutButtonOffset;
extern INTN LayoutTextOffset;
//extern INTN ScrollButtonsHeight;
//extern INTN ScrollBarDecorationsHeight;
//extern INTN ScrollScrollDecorationsHeight;
//extern INTN LayoutBannerOffset;
//extern INTN LayoutButtonOffset;
//extern INTN LayoutTextOffset;
// this should go in a globals, not in settings
extern INTN OldChosenTheme;
@ -635,7 +635,7 @@ extern HDA_PROPERTIES gAudios[];
extern UINTN NGFX;
extern UINTN NHDA;
extern CONST CHAR16 **SystemPlists;
extern CONST CHAR16 **InstallPlists;
extern CONST CHAR16 **InstallPlists;
extern CONST CHAR16 **RecoveryPlists;
//extern UINT16 gCPUtype;
extern SETTINGS_DATA gSettings;

View File

@ -3484,6 +3484,11 @@ void XTheme::parseTheme(void* parser, const char** dict)
BadgeOffsetX = getIntegerDict(dict[i + 1]);
} else if (strcmp(dict[i], "BadgeOffsetY") == 0) {
BadgeOffsetY = getIntegerDict(dict[i + 1]);
} else if (strcmp(dict[i], "LayoutBannerOffset") == 0) {
LayoutBannerOffset = getIntegerDict(dict[i + 1]);
} else if (strcmp(dict[i], "LayoutButtonOffset") == 0) {
LayoutButtonOffset = getIntegerDict(dict[i + 1]);
} else if (strcmp(dict[i], "NonSelectedGrey") == 0) {
NonSelectedGrey = getIntegerDict(dict[i + 1]) > 0;
} else if (strcmp(dict[i], "CharWidth") == 0) {