Deprecate TextInputPassword and its aliases.

This commit is contained in:
Martín Lucas Golini
2026-04-04 22:03:03 -03:00
parent 98088dd44d
commit c3135e0b84
6 changed files with 5 additions and 15 deletions

View File

@@ -49,8 +49,8 @@
<ScrollBar id="scrollbar" orientation="horizontal" layout_width="200dp" layout_height="wrap_content" layout_to_bottom_of="slider" />
<SpinBox id="spinbox" layout_width="200dp" layout_height="wrap_content" layout_to_bottom_of="scrollbar" />
<InputPassword id="spinbox" layout_width="200dp" layout_height="wrap_content" layout_to_bottom_of="spinbox" text="test" margin-top="8dp" />
<TextInput id="spinbox" layout_width="200dp" layout_height="wrap_content" layout_to_bottom_of="spinbox" text="test" margin-top="8dp" input-mode="password" />
<TextEdit layout_width="200dp" layout_height="50dp" layout_gravity="bottom|center_horizontal" />
</RelativeLayout>

View File

@@ -31,7 +31,7 @@
<item>Test 4</item><item>Test 5</item><item>Test 6</item><item>Test 7</item><item>Test 8</item>
</ComboBox>
<TextInput layout_width="300dp" layout_height="wrap_content" margin-top="8dp" text="Testing TextInput" />
<TextInputPassword layout_width="300dp" layout_height="wrap_content" margin-top="8dp" hint="Password" />
<TextInput layout_width="300dp" layout_height="wrap_content" margin-top="8dp" hint="Password" input-mode="password" />
<TextEdit word-wrap="true" layout_width="300dp" layout_height="100dp" margin-top="8dp" text="Testing TextEdit Text Texted with text as text is the way to test the text.&#10;Multi line&#10;Texts" />
<SelectButton layout_width="wrap_content" layout_height="wrap_content" text="Testing SelectButton" margin-top="8dp" />
<SpinBox id="spinbox" layout_width="200dp" layout_height="wrap_content" margin-top="8dp" />

View File

@@ -245,7 +245,6 @@ Tab,
TextEdit,
TextInput,
TextArea,
TextInputPassword,
TextView,
Anchor,
Tooltip,
@@ -264,7 +263,6 @@ Anchor,
TextEdit,
TextArea,
TextInput,
TextInputPassword,
ComboBox::DropDownList,
SpinBox::input, {
selection-color: var(--font-selected-pressed);
@@ -477,8 +475,7 @@ ComboBox::DropDownList::ListBox::item:selected {
tint: var(--font-selected-pressed);
}
TextInput,
TextInputPassword {
TextInput {
padding-left: var(--base-horizontal-padding);
padding-right: var(--base-horizontal-padding);
padding-top: var(--base-vertical-padding);
@@ -506,8 +503,6 @@ ComboBox::DropDownList {
padding-bottom: var(--base-vertical-padding);
}
TextInputPassword:hover,
TextInputPassword:focus,
TextInput:hover,
TextInput:focus,
SpinBox:hover,

View File

@@ -188,7 +188,6 @@ void addCSS() {
{ "rosybrown", "literal" },
{ "viewpager", "keyword" },
{ "tab", "keyword" },
{ "inputpassword", "keyword" },
{ "window", "keyword" },
{ "tooltip", "keyword" },
{ "scrollview", "keyword" },
@@ -261,7 +260,6 @@ void addCSS() {
{ "true", "literal" },
{ "sizens", "literal" },
{ "magenta", "literal" },
{ "textinputpassword", "keyword" },
{ "important", "literal" },
{ "a", "keyword" },
{ "abbr", "keyword" },
@@ -399,7 +397,6 @@ void addCSS() {
{ "TabWidget", "keyword" },
{ "TextEdit", "keyword" },
{ "TextInput", "keyword" },
{ "TextInputPassword", "keyword" },
{ "Loader", "keyword" },
{ "SelectButton", "keyword" },
{ "Window", "keyword" },

View File

@@ -85,7 +85,6 @@ void UIWidgetCreator::createBaseWidgetList() {
registeredWidget["tabwidget"] = UITabWidget::New;
registeredWidget["textedit"] = UITextEdit::New;
registeredWidget["textinput"] = UITextInput::New;
registeredWidget["textinputpassword"] = UITextInput::NewPassword;
registeredWidget["loader"] = UILoader::New;
registeredWidget["selectbutton"] = UISelectButton::New;
registeredWidget["window"] = UIWindow::New;
@@ -121,7 +120,6 @@ void UIWidgetCreator::createBaseWidgetList() {
// Aliases
registeredWidget["hbox"] = UILinearLayout::NewHorizontal;
registeredWidget["vbox"] = UILinearLayout::NewVertical;
registeredWidget["inputpassword"] = UITextInput::NewPassword;
registeredWidget["viewpagerhorizontal"] = UIViewPager::NewHorizontal;
registeredWidget["viewpagervertical"] = UIViewPager::NewHorizontal;
registeredWidget["vslider"] = UISlider::NewHorizontal;

View File

@@ -385,7 +385,7 @@ static const auto SETTINGS_PANEL_XML = R"xml(
</hbox>
<Widget class="separator" lw="mp" lh="1dp" />
<TextView class="subtitle" text="@string(build_name, Build Name)" focusable="false" />
<Input id="build_name" lw="mp" lh="wc" text="new_name" />
<TextInput id="build_name" lw="mp" lh="wc" text="new_name" />
<TextView class="subtitle" text="@string(supported_platforms, Supported Platforms)" focusable="false" />
<TextView lw="mp" lh="wc" word-wrap="true" text="@string(supported_platforms_desc, Selecting none means that the build settings will work and be available on any Operating System)" />
<StackLayout id="os_select" class="os_select" lw="wc" lh="wc">