Skip to content

Commit

Permalink
explicitly define spacing and margins of all layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Aug 22, 2024
1 parent aa4bca8 commit 56ff546
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/ayon_common/connection/ui/login_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ def __init__(self, *args, **kwargs):
# --- Credentials inputs ---
user_cred_layout = QtWidgets.QGridLayout(user_cred_widget)
user_cred_layout.setContentsMargins(0, 0, 0, 0)
user_cred_layout.setSpacing(6)
row = 0

user_cred_layout.addWidget(url_label, row, 0, 1, 1)
Expand Down Expand Up @@ -445,19 +446,23 @@ def __init__(self, *args, **kwargs):

footer_layout = QtWidgets.QHBoxLayout(footer_widget)
footer_layout.setContentsMargins(0, 0, 0, 0)
footer_layout.setSpacing(6)
footer_layout.addWidget(logout_btn, 0)
footer_layout.addWidget(user_message, 1)
footer_layout.addWidget(login_btn, 0)
footer_layout.addWidget(confirm_btn, 0)

login_bg_layout = QtWidgets.QVBoxLayout(login_bg_widget)
login_bg_layout.setContentsMargins(0, 0, 0, 0)
login_bg_layout.setSpacing(6)
login_bg_layout.addWidget(login_widget, 0)
login_bg_layout.addWidget(message_label, 0)
login_bg_layout.addStretch(1)
login_bg_layout.addWidget(footer_widget, 0)

main_layout = QtWidgets.QVBoxLayout(self)
main_layout.setContentsMargins(10, 10, 10, 10)
main_layout.setSpacing(6)
main_layout.addWidget(login_bg_widget, 1)

# --- Overlay ---
Expand Down

0 comments on commit 56ff546

Please sign in to comment.