-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The TextEdit cannot be configured as it takes its color from the |
Beta Was this translation helpful? Give feedback.
-
@ogoffart And wouldn't it be nice if this could be included in the TextEdit component itself? without having to make a component using the TextEditBase? since it is something simple and doesn't require much maintenance. I have the code changes already done. import { TextEdit } from "std-widgets.slint";
export component AppWindow inherits Window {
width: 800px;
height: 600px;
title: "Test Component Example";
VerticalLayout {
width: 100%;
height: 100%;
padding: 10px;
spacing: 10px;
TextEdit {
text: "Custom selection colors text.";
selection-background-color: #3fbc3b;
selection-foreground-color: #000000;
}
TextEdit {
text: "Default colors for selection";
}
}
} I don't want it to feel as a lack of respect, I don't know if this breaks with Slint's philosophy, I propose this more than anything because I think it is very unnecessary to have to create components from scratch just for this feature (in my opinion). |
Beta Was this translation helpful? Give feedback.
Right now, the widgets cannot be themed easily. They are meant to look native.
This is something we may want to revisit. See #4372