diff --git a/src/mainwindow_ui.cpp b/src/mainwindow_ui.cpp index 7b18d82..db06fc8 100644 --- a/src/mainwindow_ui.cpp +++ b/src/mainwindow_ui.cpp @@ -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) diff --git a/styles.qss b/styles.qss index 0c8fdc2..fff8f53 100644 --- a/styles.qss +++ b/styles.qss @@ -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;