refactor: Consolidate theme rendering into ThemeMetrics (#1868)
This commit is contained in:
@@ -43,7 +43,30 @@ constexpr ThemeMetrics values = {.batteryWidth = 15,
|
||||
.keyboardVerticalOffset = 0,
|
||||
.keyboardTextFieldWidthPercent = 85,
|
||||
.keyboardWidthPercent = 90,
|
||||
.keyboardKeyCornerRadius = 0};
|
||||
.keyboardKeyCornerRadius = 10,
|
||||
.keyboardFillUnselected = true,
|
||||
.keyboardOutlineAllUnselected = true,
|
||||
.keyboardDrawSpecialOutlineWhenUnselected = true,
|
||||
.keyboardSecondaryLabelRightPadding = 3,
|
||||
.keyboardSecondaryLabelTopPadding = 1,
|
||||
.keyboardMinArrowHeadSize = 1,
|
||||
.popupTopOffsetRatio = 0.12f,
|
||||
.popupMarginX = 20,
|
||||
.popupMarginY = 14,
|
||||
.popupFrameThickness = 2,
|
||||
.popupCornerRadius = 18,
|
||||
.popupTextBold = true,
|
||||
.popupTextInverted = false,
|
||||
.popupTextBaselineOffsetY = -2,
|
||||
.popupProgressBarHeight = 4,
|
||||
.popupProgressDrawOutline = true,
|
||||
.popupProgressClampPercent = true,
|
||||
.popupProgressFillInverted = false,
|
||||
.popupProgressOutlineInverted = false,
|
||||
.textFieldHorizontalPadding = 8,
|
||||
.textFieldNormalThickness = 2,
|
||||
.textFieldCursorThickness = 3,
|
||||
.textFieldLineEndOffset = -1};
|
||||
}
|
||||
|
||||
class RoundedRaffTheme : public BaseTheme {
|
||||
|
||||
Reference in New Issue
Block a user