Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ComboBox editable #4366

Open
zhasir opened this issue Jan 18, 2024 · 1 comment
Open

Make ComboBox editable #4366

zhasir opened this issue Jan 18, 2024 · 1 comment
Labels
a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) enhancement New feature or request

Comments

@zhasir
Copy link

zhasir commented Jan 18, 2024

Make the value of ComboBox editable.

Needs #112

original description:

text := Text {
horizontal-alignment: left;
vertical-alignment: center;
font-size: CosmicFontSettings.body.font-size;
font-weight: CosmicFontSettings.body.font-weight;
color: CosmicPalette.control-foreground;
text: root.current-value;
}

replace with

text := TextInput {
horizontal-alignment: left;
vertical-alignment: center;
font-size: CosmicFontSettings.body.font-size;
font-weight: CosmicFontSettings.body.font-weight;
color: CosmicPalette.control-foreground;
text: root.current-value;
}

@hunger hunger added the a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) label Jan 18, 2024
@hunger
Copy link
Member

hunger commented Jan 18, 2024

Is this specific to the Cosmic style?

@FloVanGH FloVanGH added the enhancement New feature or request label Jan 18, 2024
@FloVanGH FloVanGH changed the title In the ComboBox component of the source code, replace the Text component with the TextInput component, manually edit the content, and select the dropdown again, which will not echo properly Make ComboBox editable Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants