[root dialog] input style improvement

This commit is contained in:
Vinicius Moreira
2019-11-28 16:01:41 -03:00
parent 8cd07aec2c
commit 19d0126521
2 changed files with 3 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Catalan contributions by [fitojb](https://github.com/fitojb)
- German contributions by [JonasLoos](https://github.com/JonasLoos)
- Italian contributions by [albanobattistella](https://github.com/albanobattistella)
- minor UI improvements
### Features
- New command line argument to clean the configuration and cache files: `--clean`

View File

@@ -16,12 +16,13 @@ def is_root():
def ask_root_password(i18n: I18n):
diag = QInputDialog()
diag.setStyleSheet("""QLineEdit { border-radius: 5px; font-size: 16px }""")
diag.setStyleSheet("""QLineEdit { border-radius: 5px; font-size: 16px; border: 1px solid lightblue }""")
diag.setInputMode(QInputDialog.TextInput)
diag.setTextEchoMode(QLineEdit.Password)
diag.setWindowIcon(QIcon(resource.get_path('img/lock.png')))
diag.setWindowTitle(i18n['popup.root.title'])
diag.setLabelText('')
diag.setOkButtonText(i18n['continue'].capitalize())
diag.setCancelButtonText(i18n['popup.button.cancel'])
diag.resize(400, 200)