Implement more Style

This commit is contained in:
2025-02-19 16:54:36 -06:00
parent e607db2ae2
commit efb89dbcee
2 changed files with 14 additions and 3 deletions

View File

@@ -8,7 +8,6 @@
namespace JUI {
namespace DefaultStyle {
const Color4 BackgroundColor = {128, 128, 128};
const Color4 BorderColor = {192, 192, 192};
const float BorderLineWidth = 1.f;
@@ -39,10 +38,22 @@ namespace JUI {
}
}
namespace InputForm {
const Color4 AutocompleteTextColor = Colors::Black;
}
namespace Collapsible {
const UDim HeaderHeight = 16_px;
}
namespace Checkbox {
const Color4 CheckmarkColor = Colors::Red;
}
namespace Window {
}
#pragma endregion

View File

@@ -31,8 +31,8 @@ namespace JUI
void SetChecked(bool value) { checked = value; }
Tween* TweenCheckedColor(const Color4& goal, TweenInfo info = {});
protected:
bool checked;
Color4 check_color = Colors::Red;
bool checked = false;
Color4 check_color = Style::Checkbox::CheckmarkColor;
};
class Checkbox : public Button, public CheckboxBase {