From 8809ef1f6e8b145b97033d0fd2aa346f29eee5eb Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Tue, 5 Jun 2018 23:58:14 +0300 Subject: [PATCH] minor ui fixes --- toxygen/ui/groups_widgets.py | 1 + toxygen/ui/login_screen.py | 2 +- toxygen/ui/views/login_screen.ui | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/toxygen/ui/groups_widgets.py b/toxygen/ui/groups_widgets.py index d666614..aa91935 100644 --- a/toxygen/ui/groups_widgets.py +++ b/toxygen/ui/groups_widgets.py @@ -26,6 +26,7 @@ class CreateGroupScreen(CenteredWidget): self.addGroupButton.setText(util_ui.tr('Create group')) self.groupTypeComboBox.addItem(util_ui.tr('Public')) self.groupTypeComboBox.addItem(util_ui.tr('Private')) + self.groupTypeComboBox.setCurrentIndex(1) def _create_group(self): name = self.groupNameLineEdit.text() diff --git a/toxygen/ui/login_screen.py b/toxygen/ui/login_screen.py index 7198c36..35e33b5 100644 --- a/toxygen/ui/login_screen.py +++ b/toxygen/ui/login_screen.py @@ -49,7 +49,7 @@ class LoginScreen(CenteredWidget, DialogWithResult): def _update_ui(self): self.profileNameLineEdit = LineEditWithEnterSupport(self._create_profile, self) - self.profileNameLineEdit.setGeometry(QtCore.QRect(20, 100, 170, 30)) + self.profileNameLineEdit.setGeometry(QtCore.QRect(20, 100, 160, 30)) self._retranslate_ui() self.createProfilePushButton.clicked.connect(self._create_profile) self.loadProfilePushButton.clicked.connect(self._load_existing_profile) diff --git a/toxygen/ui/views/login_screen.ui b/toxygen/ui/views/login_screen.ui index 524b7b7..50ca1e0 100644 --- a/toxygen/ui/views/login_screen.ui +++ b/toxygen/ui/views/login_screen.ui @@ -67,9 +67,9 @@ - 20 + 10 110 - 150 + 160 27 @@ -119,9 +119,9 @@ - 20 + 10 110 - 150 + 160 27