mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 23:24:15 +02:00
[root dialog] input style improvement
This commit is contained in:
@@ -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)
|
- Catalan contributions by [fitojb](https://github.com/fitojb)
|
||||||
- German contributions by [JonasLoos](https://github.com/JonasLoos)
|
- German contributions by [JonasLoos](https://github.com/JonasLoos)
|
||||||
- Italian contributions by [albanobattistella](https://github.com/albanobattistella)
|
- Italian contributions by [albanobattistella](https://github.com/albanobattistella)
|
||||||
|
- minor UI improvements
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
- New command line argument to clean the configuration and cache files: `--clean`
|
- New command line argument to clean the configuration and cache files: `--clean`
|
||||||
|
|||||||
@@ -16,12 +16,13 @@ def is_root():
|
|||||||
|
|
||||||
def ask_root_password(i18n: I18n):
|
def ask_root_password(i18n: I18n):
|
||||||
diag = QInputDialog()
|
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.setInputMode(QInputDialog.TextInput)
|
||||||
diag.setTextEchoMode(QLineEdit.Password)
|
diag.setTextEchoMode(QLineEdit.Password)
|
||||||
diag.setWindowIcon(QIcon(resource.get_path('img/lock.png')))
|
diag.setWindowIcon(QIcon(resource.get_path('img/lock.png')))
|
||||||
diag.setWindowTitle(i18n['popup.root.title'])
|
diag.setWindowTitle(i18n['popup.root.title'])
|
||||||
diag.setLabelText('')
|
diag.setLabelText('')
|
||||||
|
diag.setOkButtonText(i18n['continue'].capitalize())
|
||||||
diag.setCancelButtonText(i18n['popup.button.cancel'])
|
diag.setCancelButtonText(i18n['popup.button.cancel'])
|
||||||
diag.resize(400, 200)
|
diag.resize(400, 200)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user