2024-03-26 22:48:23 +01:00
|
|
|
diff --git ui/views/controls/textfield/textfield.cc ui/views/controls/textfield/textfield.cc
|
2024-07-29 19:09:20 +02:00
|
|
|
index d2ababefae343..423eff10fe3d1 100644
|
2024-03-26 22:48:23 +01:00
|
|
|
--- ui/views/controls/textfield/textfield.cc
|
|
|
|
+++ ui/views/controls/textfield/textfield.cc
|
2024-07-29 19:09:20 +02:00
|
|
|
@@ -3006,6 +3006,10 @@ void Textfield::OnCursorBlinkTimerFired() {
|
2024-03-26 22:48:23 +01:00
|
|
|
void Textfield::OnEnabledChanged() {
|
|
|
|
if (GetInputMethod())
|
|
|
|
GetInputMethod()->OnTextInputTypeChanged(this);
|
|
|
|
+ if (GetWidget()) {
|
|
|
|
+ SetColor(GetTextColor());
|
|
|
|
+ UpdateBackgroundColor();
|
|
|
|
+ }
|
|
|
|
UpdateDefaultBorder();
|
|
|
|
|
2024-07-29 19:09:20 +02:00
|
|
|
// Only expose readonly if enabled. Don't overwrite the disabled restriction.
|