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;

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) {