Implement more Style
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user