From 04bba4954878b281462fca593036b8d0cc272b1b Mon Sep 17 00:00:00 2001 From: Ali Riza KESKIN Date: Wed, 24 Apr 2024 18:06:07 +0300 Subject: [PATCH] button height scale --- src/data/main.ui | 6 ++---- src/module/gtkwindow.py | 5 ++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/data/main.ui b/src/data/main.ui index 7f0f71c..44ab409 100644 --- a/src/data/main.ui +++ b/src/data/main.ui @@ -145,8 +145,7 @@ vertical 5 - - 250 + True True @@ -279,7 +278,6 @@ Login 128 - 31 True False True @@ -403,7 +401,7 @@ - + True False 5 diff --git a/src/module/gtkwindow.py b/src/module/gtkwindow.py index 25547c9..ebff396 100644 --- a/src/module/gtkwindow.py +++ b/src/module/gtkwindow.py @@ -360,7 +360,10 @@ def apply_scale(self): # login box width self.o("ui_box_reset_passwd").set_size_request(250*scale, -1) self.o("ui_box_login").set_size_request(250*scale, -1) - self.o("ui_button_login").set_size_request(128*scale, -1) + # login button & entry 128 x 31 + for but in ["ui_button_login", "ui_box_username", "ui_entry_reset_username", "ui_entry_password", + "ui_entry_new_password1", "ui_entry_new_password2", "ui_box_reset_buttons"]: + self.o(but).set_size_request(128*scale, 31*scale) # user list self.o("ui_popover_userlist").set_size_request(200*scale, self.height/3)