style: refine flow dialog text selection
This commit is contained in:
parent
d527f8ff24
commit
798ac83a8e
@ -216,7 +216,7 @@ QString requestFlowNodeName(QWidget *parent, const QString &title,
|
||||
QObject::connect(nameEdit, &QLineEdit::returnPressed, &dialog, &QDialog::accept);
|
||||
QTimer::singleShot(0, nameEdit, [nameEdit]() {
|
||||
nameEdit->setFocus();
|
||||
nameEdit->selectAll();
|
||||
nameEdit->setCursorPosition(nameEdit->text().size());
|
||||
});
|
||||
const bool ok = dialog.exec() == QDialog::Accepted;
|
||||
if (accepted)
|
||||
|
||||
@ -1650,7 +1650,8 @@ QWidget#jointFlowChildContent QLineEdit {
|
||||
background: #ffffff;
|
||||
border: 1px solid #bfc9d4;
|
||||
border-radius: 5px;
|
||||
selection-background-color: #1b6ef3;
|
||||
selection-background-color: #dbeafe;
|
||||
selection-color: #155dcc;
|
||||
}
|
||||
QWidget#jointFlowChildContent QLineEdit:focus {
|
||||
border: 1px solid #1b6ef3;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user